|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.jms.trader.TraderReceive
Receives messages and invokes an EJBean to process them.
| Field Summary | |
static java.lang.String |
EJB_HOME
Defines EJB stateless session. |
static java.lang.String |
JMS_FACTORY
Defines JMS connection factory. |
static java.lang.String |
JNDI_FACTORY
Defines JNDI context factory. |
static java.lang.String |
TOPIC
Defines JMS topic. |
static java.lang.String |
TX
Defines JTA user transaction. |
| Constructor Summary | |
TraderReceive()
|
|
| Method Summary | |
void |
close()
Closes JMS objects. |
void |
init(javax.naming.Context ctx,
java.lang.String topicName)
Creates all the necessary objects for receiving messages from a JMS topic. |
static void |
main(java.lang.String[] args)
main() method. |
void |
processMessages()
Message listener interface. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String EJB_HOME
public static final java.lang.String JMS_FACTORY
public static final java.lang.String JNDI_FACTORY
public static final java.lang.String TOPIC
public static final java.lang.String TX
| Constructor Detail |
public TraderReceive()
| Method Detail |
public void close()
throws javax.jms.JMSException
javax.jms.JMSException - if JMS fails to close objects due to internal error
public void init(javax.naming.Context ctx,
java.lang.String topicName)
throws javax.naming.NamingException,
javax.jms.JMSException,
java.rmi.RemoteException,
javax.ejb.CreateException
ctx - JNDI initial contexttopicName - name of topicjavax.naming.NamingException - if problem with JNDI context interfacejavax.jms.JMSException - if JMS fails during initialization due to an internal errorjava.rmi.RemoteException - if problem occurs during remote operationjavax.ejb.CreateException - if problem occurs during creation
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - WebLogic URLjava.lang.Exception - if problem occurspublic void processMessages()
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||