• Post Reply Bookmark Topic Watch Topic
  • New Topic

using SessionBeans to call Enity Beans  RSS feed

 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


Could any one guide me in writing the code to call an Entity Bean through Session Beans.

I have an Entity bean, I have created a normal java client to call the Entity bean.

Now, I wanted to use a bean(session) as a client instead of java.

I need some support.

Thanks and Regards

Jetendra
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works the same way. You get an initial context, a home interface and then the bean.

The difference is that you can choose to use a local interface. And if you are using EJB 3, you can use dependency injection.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!