• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help me in developing BMP entity bean

 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:


 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic