org.ow2.easybeans.examples.pool
Class MDBXMLBean
java.lang.Object
org.ow2.easybeans.examples.pool.AbsBean
org.ow2.easybeans.examples.pool.AbsMDBBean
org.ow2.easybeans.examples.pool.MDBXMLBean
- All Implemented Interfaces:
- javax.jms.MessageListener
public class MDBXMLBean
- extends AbsMDBBean
Message Driven Bean that will be configured using XML file.
- Author:
- Florent BENOIT
|
Field Summary |
static int |
MAX_INSTANCE_XML
Max for Bean configured by annotation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_INSTANCE_XML
public static final int MAX_INSTANCE_XML
- Max for Bean configured by annotation.
- See Also:
- Constant Field Values
MDBXMLBean
public MDBXMLBean()
- 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.