Hi guys, Just wanted to know when and how often is the ejbCreate() method called on a session bean.Also, what about the ejbRemove() method? When is this called.
Current scenario: I have a session bean primarily responsible for writing some messages to a Queue. Now for every message sent by the bean, it creates a queue receiver and waits for an ACk from the client, for that message for a duration of 3 seconds. When i carefully observe the JBoss log, i can see the ejbCreate() method being called just the very first time, the sendMessage(Message)(an exposed method on the bean) function is revoked on the bean. Now i obviously create a queueConnection, a session and so on for this purpose.SO every time a the sendMessgae is being revoked, does the container talk to the same instance of the session bean.Is this instance persisted in the container when it is first created? Also who should be a assigned the reponsiblity of calling the ejbRemove method() Thanks in advance Any help is much appreciated~ Cheers Dushy ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user