• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 2.0 in JBoss 5.0

 
Julien Flotté
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Julien Flotté
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic