|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.objectweb.jonas.jtests.beans.message.SenderSF
Field Summary | |
protected static org.objectweb.util.monolog.api.Logger |
logger
|
Constructor Summary | |
SenderSF()
|
Method Summary | |
int |
check(int val,
int nb,
int sec)
Checking send methods |
void |
clean(int val)
Clean all entity beans for this value |
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. |
void |
ejbCreate()
The Session bean must define 1 or more ejbCreate methods. |
void |
ejbPassivate()
A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object. |
void |
ejbRemove()
A container invokes this method before it ends the life of the session object. |
void |
sendOnQueue(java.lang.String dest,
int val,
int nb)
send a message on queue |
void |
sendOnQueueTx(java.lang.String dest,
int val,
int nb)
send messages on queue (transacted) |
void |
sendOnTopic(java.lang.String dest,
int val,
int nb)
send a message on topic |
void |
sendOnTopicTx(java.lang.String dest,
int val,
int nb)
send messages on topic (transacted) |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Set the associated session context. |
Field Detail |
protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
public SenderSF()
Method Detail |
public void setSessionContext(javax.ejb.SessionContext ctx)
sessionContext
- A SessionContext interface for the instance.EJBException
- Thrown by the method to indicate a failure caused by
a system-level error.public void ejbRemove()
EJBException
- Thrown by the method to indicate a failure caused by
a system-level error.public void ejbCreate() throws javax.ejb.CreateException
CreateException
- Failure to create a session EJB object.public void ejbPassivate()
public void ejbActivate()
public void sendOnTopic(java.lang.String dest, int val, int nb)
String
- destinationint
- value set in messageint
- nb of messages sentpublic void sendOnTopicTx(java.lang.String dest, int val, int nb)
String
- destinationint
- value set in messageint
- nb of messages sentpublic void sendOnQueue(java.lang.String dest, int val, int nb)
String
- destinationint
- value set in messageint
- nb of messages sentpublic void sendOnQueueTx(java.lang.String dest, int val, int nb)
String
- destinationint
- value set in messageint
- nb of messages sentpublic int check(int val, int nb, int sec)
int
- value looked in messages receivedint
- nb of messages that could be receivedint
- nb of seconds max to wait for all messagespublic void clean(int val)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |