This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

EJB 2.0 in JBoss 5.0

Julien Flotté
Greenhorn

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 ?

Cordialy,
Leethor.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5852
    
    7

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é
Greenhorn

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 ?

 
 
subject: EJB 2.0 in JBoss 5.0
 
It's not a secret anymore!