|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.remote.jms.mdb.ClusteringMDB
public class ClusteringMDB
Purpose: To provide a reference implementation for Message Driven Bean that can listen and process TopLink messages.
Descripton: The Message Driven Bean (MDB) must be deployed along with TopLink application and configured to listener the the same destination that clustering services send their cache sync messages to. User must defines an environment variable named with the value of ClusteringMDB.TOPLINK_SESSION_NAME. This environment variable value is session name used by TopLink to load the cosresponding session from the sessions.xml when the MDB is created.
CacheSynchronizationManager
,
Serialized FormField Summary | |
---|---|
java.lang.String |
TOPLINK_SESSION_NAME
This value is the env-entry-name element of the Message Driven Beand configured in the ejb-jar.xml. |
Constructor Summary | |
---|---|
ClusteringMDB()
|
Method Summary | |
---|---|
void |
ejbCreate()
|
void |
ejbRemove()
|
Session |
getSession()
Return the TopLink session that has the session's name configured as an env-entry element in the ejb-jar.xml. |
void |
onMessage(javax.jms.Message message)
|
void |
setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String TOPLINK_SESSION_NAME
ClusteringMDB
Constructor Detail |
---|
public ClusteringMDB()
Method Detail |
---|
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
setMessageDrivenContext
in interface javax.ejb.MessageDrivenBean
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.MessageDrivenBean
public Session getSession()
JMSProcessingException
- if it is unable to lookup the session's name or the session is nullpublic void onMessage(javax.jms.Message message)
onMessage
in interface javax.jms.MessageListener
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |