Two Laptop Bag*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 5812

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 ?

It is sorta covered in the JavaRanch Style Guide.
subject: EJB 2.0 in JBoss 5.0
Similar Threads
Problem with J2EE RI
Weblogic supporting EJB 2.0
EJB 5.0 & Entity Bean
DeploymentException while deploying ear file in JBoss
Manually deploying EJB in JBoss