MiddlewareOnline
IS-IT--Management
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
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