| java.lang.Object org.objectweb.jonas.jtests.beans.message.Sender1_2SF
Sender1_2SF | public class Sender1_2SF implements SessionBean(Code) | | This Session Bean is equivalent to the Sender1_1SF bean
the only difference is it is bean managed transaction
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(Session ss, String dst, int val, int nb) | public void | sendOnDestinationWithTxAfterSession(String dst, int val, int nb, boolean commit) | public void | sendOnDestinationWithTxBeforeSession(String dst, int val, int nb, boolean commit) | 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(Session ss, String dst, int val, int nb)(Code) | | send a message on destination (topic or queue)
Parameters: Session - session Parameters: String - destination int value set in message int nb of messages sent boolean commit transaction if true |
sendOnDestinationWithTxAfterSession | public void sendOnDestinationWithTxAfterSession(String dst, int val, int nb, boolean commit) throws RemoteException(Code) | | send messages on destination (topic or queue)
the transaction is demarcated after the session creation
Parameters: String - destination int value set in message int nb of messages sent boolean commit transaction if true |
sendOnDestinationWithTxBeforeSession | public void sendOnDestinationWithTxBeforeSession(String dst, int val, int nb, boolean commit) throws RemoteException(Code) | | send a message on destination (topic or queue)
the transaction is demarcated before the session creation
Parameters: String - destination int value set in message int nb of messages sent boolean commit transaction if true |
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. |
|
|