|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.superbiz.counter.CounterImpl
public class CounterImpl
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.
Constructor Summary | |
---|---|
CounterImpl()
|
Method Summary | |
---|---|
int |
increment()
|
int |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CounterImpl()
Method Detail |
---|
public int increment()
increment
in interface CounterLocal
increment
in interface CounterRemote
public int reset()
reset
in interface CounterLocal
reset
in interface CounterRemote
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |