Hi all,

I have a very simple question...

- I use Servlet and EJB (JOnAS 2.3).
- From the servlets I just call Stateless Session Beans,
  nothing else, like this:

// Get Home
MyHome home = ...

try {
  // Create Stateless SB
  MyObject myObject = home.create();
  // Call the method
  Vector myList = myObject.myMethod();
}
catch (Exception ex) {
  throw new bla bla...
}

My question:
- Do I have to set myObject to null after using the 
  EJB? Like this:

// Get Home
MyHome home = ...

try {
  // Create Stateless SB
  MyObject myObject = home.create();
  // Call the method
  Vector myList = myObject.myMethod();
  
  // Do I have to explicitly free this object?
  myObject = null;
}
catch (Exception ex) {
  throw new bla bla...
}

As long as I know, this is not a must because
the EJB container would take care the creation
and deletion of all beans...

The problem I encounter is that JOnAS 2.3 does
not free all the beans it has created (memory leak). 
I've done these until now:
- I increased the heap memory for JVM. JOnAS works
  well at the first time and after a while (depends
  on the number of users, who access the system)
  it makes this heap memory full. 
  After the heap memory is full, it will crash 
  (out of memory) or it won't respond any longer, 
  so you have to restart JOnAS. 
- I turned on the GC of that JVM. This does not
  help. 
- Also use JonasAdmin to garbage collect the ejbs 
  does not help.

I just wonder, whether someone also has this
experience with JOnAS? 

Please answer also to my mail address:
[EMAIL PROTECTED]

Thanx!
-- 
---------------------------------------------------
Blasius Lofi Dewanto
---------------------------------------------------
OpenUSS - Open University Support System
http://openuss.sourceforge.net
---------------------------------------------------
E-Mail   : [EMAIL PROTECTED]
ICQ      : 39343280
---------------------------------------------------


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to