• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

runtime exceptions and beans & cascade deletes

 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ques #1

When a runtime exception is allowed to propogate through say the session facade bean layer, the spec says that bean instance will be destroyed.
In weblogic the the remote reference still remains valid.
This is definitely the case with SLSB. I dont know what happens with SFSB.
So I guess weblogic must be configuring the EJBObject with another instance of the bean transparent to us?. Is weblogic still being compliant with spec?

Ques #2

what is the exact bhaviour when we specify <cascade-delete> on relations.
The related beans to which the delete needs to be cacaded need to be loaded in the memory? I mean is it necessary to call ejbRemove() on all the related beans? If that is the case , then guess there is no other alternative but to load the beans.
Can somebody confirm this?

I thought weblogic w'd just issue straight forward delete queries on the related beans using the foreign key.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Re: #1

In case of SLSB EJBObject serves as a facade to a pool of SLSB instances. Binding between EJBObject and an instance exists only for duration of a method call. So, yes, next call to a method will/may go to any arbitrary SLSB instance. That's what spec says and that's what weblogic does for you.

In case of SFSB EJBObject is bound to an instance for duration of a session and will become invlaid if runtime exception is thrown.
 
I am displeased. You are no longer allowed to read this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic