I would be very much thankful to clear me some question about this new EJB3.0 and above version:
1) if suppose I need ejbCreate, ejbActivate and all other events so how can I get it from the new EJB3.0 and above ver.
2) I always have problem to find particular xml file to alocate a JNDI name according to variety of Application Servers so is there any way that I can give JNDI name without xml file and can also be use a portable name that in every Application Server it can be findable of EJB deployed on app server remotely
3)Can any buddy tell me, i have hosting plan of Java/Linux which supports
i) Tomcat – 5.5.xSupport
ii)JDK – 1.6.x Support
iii)JSP/servlet – 2.0 Support
can it be possible that EJB 3.1 be deployed because some where i have got that tomcat is not able to deploy EJB so please give me some advice help…
Thank You…!!!
please Help me…!!!
1)
ejbCreate, ejbActivateetc. are related to EJB 2.x, if you need similar functionality in EJB 3.x, you should decorate your methods with annotations@PostActivate, @PrePassivateetc. Method signature should follow certain rules, example for@PostActivate:2) It seems that you’re referring to
nameandmappedNameattributes of@Statelessand@Statefulannotations. For more details see official documentation. From my experience mappedName is better, but it’s application-server-specific, e.g. on Glassfish it works perfectly. Example: