my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes help me in developing BMP entity bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "help me in developing BMP entity bean" Watch "help me in developing BMP entity bean" New topic
Author

help me in developing BMP entity bean

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
hi ranchers..
i am developing BMP Entity bean using JDeveloper10g, the sample entity bean is Account Entity Bean from ed Roman Book (master Eneterprise JavaBeans 3d),and i use Rmote Interface , when runing the entity bean, then runing client code, i have this ugly exception:


Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

OK, It simply looks like you are trying to do a remote lookup and bring the entity bean down to the client, which cannot happen. That was a big issue with EJBs before EJB3, is that Entity Beans can only reside on the server, and in order to get the data to the client you had to use the DTO Anti-Pattern.

You can have a Session Bean create and use the Entity Bean, and in your client access the Session Bean.

Good Luck

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: help me in developing BMP entity bean
 
Similar Threads
Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB
Can't access EJB from remote client
Oracle 10.1.3 Standalone: IIOP Broken?
Servlet fails to connect to EJB using ProviderURL property in Initial context look
EJB problem