A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
EJB and other Java EE Technologies
EJB2 to EJB3 migration question.
Joined: May 21, 2013
Jun 17, 2013 10:56:49
Hi, I have my beans written in 2.x. I have a project to convert the session beans (stateless) from 2.x to 3.0.
As soon as I put the below line, the compile breaks at this line.
As a result, I cannot use annotation such as: @Stateless in the code. Can someone tell me what am I doing wrong? I am using JBOSS4.0.1sp1 currently with this web application.
Also, how do i find if my
are 2.0 or 2.1?
In the existing code, I do see: ejbCreate(), ejbActivate(), ejbPassivate(), ejbRemove() code used and no annotations used, so I know it is not
Also, in the same JobServiceBean.java file, I do below code:
* @ejb.bean type="Stateless"
* @ejb.env-entry description="The path for middle-tier files."
which is telling me it is Stateless. if I change it to Stateful, the bean becomes Stateful in the resulting (on the fly made) ejb-jar.xml.
Also, when I compile the code, on the fly using xdoclet, the following 4 files are being generated: JobService.java, JobServiceHome.java, JobServiceLocal.java, JobServiceLocalHome.java
Can someone tell me, what kind of bean am I dealing with? (is it remote/local home/localhome)?
I am new to
, EJB world. I scanned through some documentations about
. Any help would be appreciated. Thanks.
Joined: Nov 08, 2012
Jun 18, 2013 04:16:41
Please look at
4 documentation to see the EJB version supported.
As per their docs, "JBoss AS 4.2 and above supports EJB3 out of the box. Note that JBoss AS 5.0 supports the full EJB3 feature set".
Joined: May 21, 2013
Jun 18, 2013 14:14:15
Thanks Prajakta. Found it. You are right.
I agree. Here's the link:
subject: EJB2 to EJB3 migration question.
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05
How to inject one EJB into another EJB in the same application
New to EJB, advice please
ejb-ref lookup does not work with JBoss 4.2.0GA _CP07, pleas help.
Jboss and Ejb 2.1 ejb-ref lookup
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015