>> All, >> I have a question regarding the passivation of an EJB. After an instance >> of a >> Bean is passivated, supposed a method is invoked on it. Does the container >> activate this instance and invoke the method on it? More specifically, >> suppose >> there is an object inside this instance of the bean listening on an event. >> Will it >> be notified of the event when it occurs, if the bean is passivated? > > >That could get really messy - once the bean is passivated, the container >considers that instance fair game for reuse - a different bean might get >activated into that instance! Your listening object within the bean >might get swapped out of memory completely, or might find himself >suddenly in a different bean. Anything that's dependent on your bean's >identity must be abandoned when the bean is passivated. >What kind of 'event' is the object listening for? Remember that thread >synchronization primitives aren't officially allowed in EJBs. > -danch Thanks Dan. I will need to look more into this. But your reply was certainly helpful. The listener is listening to an ObjectChange event in LDAP. I am making use of JNDI API to try and implement Event Notification. sincerely, Ramesh Mantri _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
