Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me in developing BMP entity bean

 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic