File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes EJB 2.0 in JBoss 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "EJB 2.0 in JBoss 5.0" Watch "EJB 2.0 in JBoss 5.0" New topic

EJB 2.0 in JBoss 5.0

Julien Flotté

Joined: Jul 15, 2009
Posts: 2
Hi everybody,

I try to migrate a JBoss 3.2 application with EJB 2.0 to JBoss 5.0.

I wonder if it's possible without adding annotations. I have error when I try to access an EJB. The names are not bound.

There's is something I have to change to make it work ?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

You do not have to add annotations to get EJB 2.0 to run in JBoss AS 5.x

For name not bound errors, use JNDIView to determine the name for your EJB.

JBoss In Action
Julien Flotté

Joined: Jul 15, 2009
Posts: 2
I use JNDIview and my EJB is not here.

Do I have to make any change if I use context.lookup(MyBean.class.getName()) ?

Can I cast directly or should I have to use the narrow function ?

I agree. Here's the link:
subject: EJB 2.0 in JBoss 5.0
It's not a secret anymore!