| java.lang.Object org.objectweb.jonas.jtests.beans.message.Sender1_1SF
Sender1_1SF | public class Sender1_1SF implements SessionBean(Code) | | This Session Bean is equivalent to the SenderF bean
the only difference is it is written in JMS1.1
it is using ConnectionFactory, Connection, Session and MessageProducer
|
Method Summary | |
public int | check(int val, int nb, int sec) | public void | clean(int val) | public void | ejbActivate() A container invokes this method when the instance is taken out of
the pool of available instances to become associated with a specific
EJB object. | public void | ejbCreate() The Session bean must define 1 or more ejbCreate methods. | public void | ejbPassivate() A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object. | public void | ejbRemove() A container invokes this method before it ends the life of the session object. | public void | sendOnDestination(String dst, int val, int nb) | public void | sendOnDestinationTx(String dest, int val, int nb) | public void | setSessionContext(SessionContext ctx) Set the associated session context. |
ejbContext | SessionContext ejbContext(Code) | | |
logger | protected static Logger logger(Code) | | |
check | public int check(int val, int nb, int sec)(Code) | | Checking send methods
int value looked in messages received int nb of messages that could be received int nb of seconds max to wait for all messages actual nb of messages received |
clean | public void clean(int val)(Code) | | Clean all entity beans for this value
|
ejbActivate | public void ejbActivate()(Code) | | A container invokes this method when the instance is taken out of
the pool of available instances to become associated with a specific
EJB object.
|
ejbCreate | public void ejbCreate() throws CreateException(Code) | | The Session bean must define 1 or more ejbCreate methods.
throws: CreateException - Failure to create a session EJB object. |
ejbPassivate | public void ejbPassivate()(Code) | | A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object.
|
ejbRemove | public void ejbRemove()(Code) | | A container invokes this method before it ends the life of the session object.
This happens as a result of a client's invoking a remove operation, or when a
container decides to terminate the session object after a timeout.
This method is called with no transaction context.
throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
sendOnDestination | public void sendOnDestination(String dst, int val, int nb)(Code) | | send a message on destination (topic or queue)
Parameters: String - destination int value set in message int nb of messages sent |
sendOnDestinationTx | public void sendOnDestinationTx(String dest, int val, int nb)(Code) | | send messages on destination (topic or queue) (transacted)
Parameters: String - destination int value set in message int nb of messages sent |
setSessionContext | public void setSessionContext(SessionContext ctx)(Code) | | Set the associated session context. The container calls this method
after the instance creation.
The enterprise Bean instance should store the reference to the context
object in an instance variable.
This method is called with no transaction context.
Parameters: sessionContext - A SessionContext interface for the instance. throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
|
|