![]() |
![]() |
| Home > Discussion Forum | ![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Please guys i need your help.
I appreciate any idea. Thanks |
|
#3
|
|||
|
|||
|
Could you post your code here
__________________
time is money |
|
#4
|
|||
|
|||
|
Hi6
Hello everyone!Do you like this page?!L like it!_______________________________________________ __________________Wholesale Rhinestone Barrettes
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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, |
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
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 |
|
#11
|
|||
|
|||
|
Please guys if any one can help
Thanks so much Sergi. I really appreciate your help.
Please guys if any one can help. Thanks, |
![]() |
| Thread Tools | |
| Display Modes | |
|
|