org.ow2.easybeans.examples.pool
Class MDBAnnotationBean

java.lang.Object
  extended by org.ow2.easybeans.examples.pool.AbsBean
      extended by org.ow2.easybeans.examples.pool.AbsMDBBean
          extended by org.ow2.easybeans.examples.pool.MDBAnnotationBean
All Implemented Interfaces:
MessageListener

public class MDBAnnotationBean
extends AbsMDBBean

Message Driven Bean that is configured through annotation.

Author:
Florent BENOIT

Field Summary
static int MAX_INSTANCE_ANNOTATION
          Max for Bean configured by annotation.
 
Constructor Summary
MDBAnnotationBean()
          Constructor.
 
Method Summary
 int getInstances()
           
 void onMessage(Message message)
          Check instances.
 
Methods inherited from class org.ow2.easybeans.examples.pool.AbsBean
dummyWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_INSTANCE_ANNOTATION

public static final int MAX_INSTANCE_ANNOTATION
Max for Bean configured by annotation.

See Also:
Constant Field Values
Constructor Detail

MDBAnnotationBean

public MDBAnnotationBean()
Constructor.

Method Detail

onMessage

public void onMessage(Message message)
Check instances.

Specified by:
onMessage in interface 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-2010 OW2 Consortium. All Rights Reserved.