org.superbiz.counter
Class CounterImpl
java.lang.Object
org.superbiz.counter.CounterImpl
- All Implemented Interfaces:
- CounterLocal, CounterRemote
public class CounterImpl
- extends Object
- implements CounterLocal, CounterRemote
This is an EJB 3 style pojo stateful session bean
Every stateful session bean implementation must be annotated
using the annotation @Stateful
This EJB has 2 business interfaces: CounterRemote, a remote business
interface, and CounterLocal, a local business interface
Per EJB3 rules when the @Remote or @Local annotation isn't present
in the bean class (this class), all interfaces are considered
local unless explicitly annotated otherwise. If you look
in the CounterRemote interface, you'll notice it uses the @Remote
annotation while the CounterLocal interface is not annotated relying
on the EJB3 default rules to make it a local interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CounterImpl
public CounterImpl()
increment
public int increment()
- Specified by:
increment
in interface CounterLocal
- Specified by:
increment
in interface CounterRemote
reset
public int reset()
- Specified by:
reset
in interface CounterLocal
- Specified by:
reset
in interface CounterRemote
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.