|
|
| WebLogic Server 6.1 Code Examples, BEA Systems, Inc. |
|
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
examples.ejb20.message
Class MessageTraderBean
java.lang.Object
|
+--examples.ejb20.message.MessageTraderBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener, java.io.Serializable
- public class MessageTraderBean
- extends java.lang.Object
- implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener
- Author:
- Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved., Copyright (c) 1999-2001 by BEA Systems, Inc. All Rights Reserved.
|
Method Summary |
void |
ejbActivate()
This method is required by the EJB Specification,
but is not used by this example. |
void |
ejbCreate()
This method corresponds to the create method in the home interface
"TraderHome.java". |
void |
ejbPassivate()
This method is required by the EJB Specification,
but is not used by this example. |
void |
ejbRemove()
This method is required by the EJB Specification,
but is not used by this example. |
void |
onMessage(javax.jms.Message msg)
Retrieve the int value of the TextMessage and increment the RMI counter by
that much. |
(package private) static void |
p(java.lang.String s)
|
void |
setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
Sets the session context. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageTraderBean
public MessageTraderBean()
ejbActivate
public void ejbActivate()
- This method is required by the EJB Specification,
but is not used by this example.
ejbCreate
public void ejbCreate()
throws javax.ejb.CreateException
- This method corresponds to the create method in the home interface
"TraderHome.java".
The parameter sets of the two methods are identical. When the client calls
TraderHome.create(), the container allocates an instance of
the EJBean and calls ejbCreate().
- Throws:
javax.ejb.CreateException - if there is
a communications or systems failure- See Also:
examples.ejb.basic.statelessMessageDriven.Trader
ejbPassivate
public void ejbPassivate()
- This method is required by the EJB Specification,
but is not used by this example.
ejbRemove
public void ejbRemove()
- This method is required by the EJB Specification,
but is not used by this example.
- Specified by:
ejbRemove in interface javax.ejb.MessageDrivenBean
onMessage
public void onMessage(javax.jms.Message msg)
- Retrieve the int value of the TextMessage and increment the RMI counter by
that much.
- Specified by:
onMessage in interface javax.jms.MessageListener
p
static void p(java.lang.String s)
setMessageDrivenContext
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
- Sets the session context.
- Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean
- Parameters:
ctx - MessageDrivenContext Context for session
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.