• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 2.1 in 3.0 Container

 
MI Mohammed
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can someone help me out.
In EJB 2.1, a session can expose both local
and remote client view. Does the same hold for
3.0. And will a 3.0 container support EJB 2.1
session beans that exposes both client views ?

Thanks
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the same hold for
3.0. And will a 3.0 container support EJB 2.1
session beans that exposes both client views ?


EJB 3.0 session beans only expose a "business interface", there are no distinction between remote and local interfaces. However, all EJB 3 containers must provide support for EJB 2.1 remote and local interfaces (see EJB core specification section 3.6)
 
MI Mohammed
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Valentin
Thanks for the correction. I am preparing for the
SCBCD 5.0 beta exam. Deployed a 2.1 seesion bean that
exposes both local and remote clien view on Sun
Application Server 9.1. But was only able to call
the remote interface from my client without any error.
Or was it wrong to call both interfaces from the same
client.
Thanks
 
Rajan Murugan
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mi Mohammed:
@Valentin
Thanks for the correction. I am preparing for the
SCBCD 5.0 beta exam. Deployed a 2.1 seesion bean that
exposes both local and remote clien view on Sun
Application Server 9.1. But was only able to call
the remote interface from my client without any error.
Or was it wrong to call both interfaces from the same
client.
Thanks


Yes it was wrong to call.How can you call a (local client view) bean from a remote client ? You need to call from a local client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic