This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
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: 5823
    
    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 ?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 2.0 in JBoss 5.0