Home > Discussion Forum dm_developer Discussion Forum

Go Back   dm_developer Discussion Forum > Documentum Products > DFC

Reply
 
Thread Tools Display Modes
  #1  
Old January 31, 2010, 02:38 AM
DesignStudio DesignStudio is offline
Registered User
 
Join Date: May 2007
Posts: 41
Session Problem Plz Help!

Dears,

I am using documentum 5.4 and created a vb.net DLL that talks to documentum.DFC library. Also, I have created an asp.net application that references this DLL.
Even though I am testing the application by a single user, i encounter the message "No More available sessions!".

- I have increased the no of sessions in the server.ini and dmcl.ini (At the Server).
- I have increased the no of sessions in the dmcl.ini (At the Client)
- I have increased the session time-out.
- In the DLL i have RELEASED the SESSION then CLOSED it the set it to NOTHIGN.
- The DLL is placed inside the ASP.NET Application in the IIS.

What would be the problem?
Please help and thanks in advance.
Reply With Quote
  #2  
Old February 2, 2010, 11:23 AM
DesignStudio DesignStudio is offline
Registered User
 
Join Date: May 2007
Posts: 41
Please guys i need your help.
I appreciate any idea.

Thanks
Reply With Quote
  #3  
Old February 3, 2010, 07:43 AM
sergi sergi is online now
Registered User
 
Join Date: Jan 2008
Location: Saint-Petersburg, Russia
Posts: 271
Could you post your code here
__________________
time is money
Reply With Quote
  #4  
Old February 4, 2010, 09:37 PM
tob0127 tob0127 is offline
Registered User
 
Join Date: Jan 2010
Posts: 9
Hi6

Hello everyone!Do you like this page?!L like it!_______________________________________________ __________________Wholesale Rhinestone Barrettes
Reply With Quote
  #5  
Old February 6, 2010, 07:42 AM
DesignStudio DesignStudio is offline
Registered User
 
Join Date: May 2007
Posts: 41
This my login function:
Function LogIn() As String
Const METHOD_NAME As String = "DocumentumHelper.LogIn"
Dim Resualt As String = Nothing
Try
'*Check if there is any session available
If Not gobjSession Is Nothing Then

Else
'*Creates IDfClientx and IDfClient objects and initating client object
Dim gobjClient As IDfClient
gobjClient = gobjClientX.getLocalClient
gobjSessionManger = gobjClient.newSessionManager()
gobjLoginInfo = gobjClientX.getLoginInfo()

'*setting the required login information attributes and binding the Session Manager to the login info
gobjLoginInfo.setUser(gstrLoginName)
gobjLoginInfo.setPassword(gstrPassword)
gobjLoginInfo.setDomain(gstrDomain)
gobjSessionManger.setIdentity(gstrDocbase, gobjLoginInfo)
gobjSession = gobjSessionManger.getSession(gstrDocbase)
End If
Resualt = gobjSession.getLoginTicket()

If Resualt = "" Then
LogEvent(METHOD_NAME, "Faild LogIn", EventLogEntryType.SuccessAudit)
'Return Resualt
Else
LogEvent(METHOD_NAME, "Successful LogIn", EventLogEntryType.SuccessAudit)
End If
Return Resualt
Catch e As Exception
LogEvent(METHOD_NAME, e.ToString(), EventLogEntryType.Error)
gstrErrorMsg = e.Message
Resualt = ""
Return Resualt
End Try
End Function


And this is my Release Function:

Function ReleaseSession() As String
Const METHOD_NAME As String = "DocumentumHelper.ReleaseSession"
Try
If Not gobjSession Is Nothing Then
gobjSessionManger.release(gobjSession)
gobjSession = Nothing

LogEvent(METHOD_NAME, "session released Successfully ", EventLogEntryType.SuccessAudit)
Return "True"
Else
Me.gstrErrorMsg = " No Session Manager Object Exist"
LogEvent(METHOD_NAME, Me.gstrErrorMsg, EventLogEntryType.Information)
Return "True"
End If

Catch e As Exception
LogEvent(METHOD_NAME, e.ToString(), EventLogEntryType.Error)
Return "False"
End Try

End Function


Thanks for any help.

Last edited by DesignStudio; February 7, 2010 at 01:32 AM.
Reply With Quote
  #6  
Old February 8, 2010, 12:55 AM
sergi sergi is online now
Registered User
 
Join Date: Jan 2008
Location: Saint-Petersburg, Russia
Posts: 271
I'm not familiar with ASP and VB, but you can try not to use gobjSession as global variable. Obtain and release session inside function where you are using it.
__________________
time is money
Reply With Quote
  #7  
Old February 8, 2010, 12:39 PM
DesignStudio DesignStudio is offline
Registered User
 
Join Date: May 2007
Posts: 41
First thank you for the reply. I have to make the session object global because i have to use it in all my functions as get object, checkin/checkout objects,.... etc. Other wise i have to create a session every time i call each function and release it when I finish it, and that's result in slow performance and waste a lot of time.

I would really appreciate any help.

Thanks,
Reply With Quote
  #8  
Old February 8, 2010, 01:44 PM
sergi sergi is online now
Registered User
 
Join Date: Jan 2008
Location: Saint-Petersburg, Russia
Posts: 271
Maybe, create sessionManager variable as global, but the sessions obtain and release in each method with this global manager. If i correct understand, it will faster than obtaining session manager and session each time you need them. Because session manager uses the session pooling.
p.s. Sorry for my English(
__________________
time is money
Reply With Quote
  #9  
Old February 9, 2010, 01:20 AM
DesignStudio DesignStudio is offline
Registered User
 
Join Date: May 2007
Posts: 41
I am sure it is not a global variable problem because the message "No More Sessions Available" comes from documentum. I think the problem is the IIS. In windows applications any session gets released right after you close your application, but in web application the session doesn't get released after you close your web application even though I called the ReleaseSession function. The session only gets released when i restart the IIS.

By the way when i get the message "No More Sessions Available" i can't even create any new session or login to documentum from my application.

I don't know how i can make the IIS releases the DCMT sessions when i call the DCMT ReleaseSession function.

Thanks
Reply With Quote
  #10  
Old February 9, 2010, 07:08 AM
sergi sergi is online now
Registered User
 
Join Date: Jan 2008
Location: Saint-Petersburg, Russia
Posts: 271
Sorry, but i've never worked with IIS, so i have only one thought: maybe your program incorrect work with memory, so garbage collector can't kill sessions.
Maybe other peoples will help you.)
__________________
time is money
Reply With Quote
  #11  
Old February 9, 2010, 09:44 AM
DesignStudio DesignStudio is offline
Registered User
 
Join Date: May 2007
Posts: 41
Please guys if any one can help

Thanks so much Sergi. I really appreciate your help.

Please guys if any one can help.

Thanks,
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is On



All times are GMT -5. The time now is 03:30 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.