Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Session Beans accessing one Entity Bean

Status
Not open for further replies.

MiddlewareOnline

IS-IT--Management
Oct 19, 2001
32
US
Here is what I am trying to do

1. One Entity Bean with a known Primary Key ( e.g. "INTERFACEBEAN")
This bean is created at startup of the weblogic server and creates
connection with backen JMS server.

Q. How do I create an instance of bean at startup with a known
PK ? (so that I can find it in future).

Q. How do I keep this bean from passivating overtime? I want to keep
it activated untill shutdown or some sort of refresh ?


2. Session beans are created as and when required for user sessions and
all they do is locate this Entity Bean by finding it using known PK.

They call a method inside this EntityBean to send a message.

Q. Can multiple session beans calling send method create a problem ?
Does the method have to be synchronized ?

Q. When multiple session bean locate a an Entity Bean, does the container
automatically synchronize the calls ?

3. Is their a mechanism that I can use to trigger an event within EntityBean
at regular interval to validate the connection is good ? Or do I need to
write an external daemon to do this?

Highly appreciate any response.

Chris
IBM MQ Series Certified Consultants
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top