Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Removing session bean twice - strange effects in JBoss

Thread Tools

Removing session bean twice - strange effects in JBoss

Alex Molochnikov
Posts: n/a
My code erroneously sent remove() call to a stateful session bean's remote
interface twice. The first call triggered ejbRemove() method on the bean,
but the second call (to an already removed bean) sent it into a new creation
cycle, calling setSessionContext() method (and the stack trace shows create
methods from the container).

Should it not have thrown an exception instead? Did anyone experience
something like this? I am running JBoss 4.0.1 SP1 on Win XP Pro under Java

Alex Molochnikov
Gestalt Corporation

Reply With Quote

Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modelling an object as Session Bean or Entity Bean ? Francesco Java 3 12-07-2006 04:22 PM
[ejb][jboss]Bean inside a serialized object in another bean Java 1 09-13-2006 08:10 PM
EJB Transaction (Session Bean - Entitiy Bean) X3 Java 0 10-01-2004 07:41 AM
strange jboss exception while deploying entity bean tmaus Java 1 09-17-2004 05:08 PM
can a session bean return a local entity bean object? David Thielen Java 2 09-12-2003 07:45 AM