-
1. Re: Migrating Stateful Bean from EJB 2 to EJB 3 (org.jboss.invocation.CannotProceedException)
wdfink May 7, 2013 10:54 AM (in response to mbuamuh)How do you call it? remote or local.
Do you try a simple SFSB instead, i.e. from the ejb-remote quickstart?
-
2. Re: Migrating Stateful Bean from EJB 2 to EJB 3 (org.jboss.invocation.CannotProceedException)
mbuamuh May 8, 2013 3:42 AM (in response to wdfink)Hi Wolf, It is local. My ejb has ejbcreate, ejbremove, ejbload and ejbstore methods implemented. Thus i am using a home interface which is different from the implementation in ejb-remote quickstart.
-
3. Re: Migrating Stateful Bean from EJB 2 to EJB 3 (org.jboss.invocation.CannotProceedException)
wdfink May 8, 2013 5:17 AM (in response to mbuamuh)I'm puzzled
What you deploy? The SFSB as an EJB2 application? Or do you implement it as EJB3?
Could you attach an example?
You can't package EJB2 and EJB3 in one jar.
-
4. Re: Migrating Stateful Bean from EJB 2 to EJB 3 (org.jboss.invocation.CannotProceedException)
mbuamuh May 8, 2013 6:05 AM (in response to wdfink)its a SFSB implemented as EJB3, migrated from EJB2. See my Bean java class attached.
-
SystemMessageEJB.java.zip 6.0 KB
-
-
5. Re: Migrating Stateful Bean from EJB 2 to EJB 3 (org.jboss.invocation.CannotProceedException)
sfcoy May 12, 2013 4:42 AM (in response to mbuamuh)This looks like you have migrated some CMP ejbFindXXX methods to an EJB3 SFSB.
I think if you just change all of those to findXXX methods and call them from a session bean reference (not the home reference) then it may resolve your problem.
-
6. Re: Migrating Stateful Bean from EJB 2 to EJB 3 (org.jboss.invocation.CannotProceedException)
wdfink May 12, 2013 3:26 PM (in response to mbuamuh)As it looks like that it is something related to persistence I would recommend to use a SLSB and a JPA bean to migrate.