miscellaneous notes

2 views
Skip to first unread message

andima

unread,
Oct 15, 2007, 4:17:41 AM10/15/07
to SCBCD 5.0 Study Group
hi :-)
some important notes to repeat the certification program:

- business interface must not extend EJBObject/EJBLocalObject
- Not all @ are overridable (ex. @Stateless)
- InvocationContext#getMethod return null for lifecycle interceptor
- private field/setter method in bean superclass may cause injection
- @Timeout method are internal method, so no security contet
- if a @Stateless bean has a ejbCreate method, it's the only method
that can be @PostConstruct
- Interceptors are created before any @PostConstruct, removed after
any @Remove
- lifecycle method on method level interceptor are not invoked
- a dep. inj. method may be final, a field no
- @AroundInvoke method may not throw any Exception
- Timeout, container may/may not call any @PreDestroy from ready/
passivate state
- a bean must not have a superclass that it's an ejb
- MDB must not have any Local/Remote interface
- MDB can call getCallerPrincipal but no isCallerInRole
- entity may not be BMT
- SFSB SES SYNC CMT: only REQUIRED, REQUIRES_NEW, MANDATORY
- MDB CMT ACK: in the trans context
- MDB Topic: durability default: NotDurable
- EntityManager default: on EE JTA, on SE RESOURCE_LOCAL
- Interceptors -> same trans/sec context of the associated method
- all lifecycle on unspecified trans/sec context
- entity listener callback on trans/sec context of the caller
- the same method level interceptor for more than one method ->
created only one instance
- @Resource on class -> not cause dep. inj., must specify name/type
- default conn. manager are shareable across ejb in the same trans
context
- TimerHandle are local object -> not to remote


everybody else have other important notes?

Reply all
Reply to author
Forward
0 new messages