org.ow2.easybeans.examples.pool
Class MDBAnnotationBean
java.lang.Object
org.ow2.easybeans.examples.pool.AbsBean
org.ow2.easybeans.examples.pool.AbsMDBBean
org.ow2.easybeans.examples.pool.MDBAnnotationBean
- All Implemented Interfaces:
- javax.jms.MessageListener
public class MDBAnnotationBean
- extends AbsMDBBean
Message Driven Bean that is configured through annotation.
- Author:
- Florent BENOIT
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_INSTANCE_ANNOTATION
public static final int MAX_INSTANCE_ANNOTATION
- Max for Bean configured by annotation.
- See Also:
- Constant Field Values
MDBAnnotationBean
public MDBAnnotationBean()
- Constructor.
onMessage
public void onMessage(javax.jms.Message message)
- Check instances.
- Specified by:
onMessage
in interface javax.jms.MessageListener
- Overrides:
onMessage
in class AbsMDBBean
- Parameters:
message
- - the message passed to the listener
getInstances
public int getInstances()
- Specified by:
getInstances
in class AbsBean
- Returns:
- the number of instances built.
Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.