Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling an ejb from a servlet

 
John Gregory
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a stateless session bean with a remote interface
deployed to a jboss 4.2.2 server. My client code to test
the bean works to perfection.

However, I decided to put it in a web app and use the bean.
My 1st question is if my webapp is deployed to the same
server, does my InitialContext environmentdiffer from that
in my client code?

My next question is What could cause a PortableRemoteObject exception
when I call narrow(). Could it be I need to have a Local interface
vice Remote?

Thanks,

John
 
Fabian Gutierrez
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, are you using ejb 2.x or 3.0, and how did you test your ejb

regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic