Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

access entity bean by local interface  RSS feed

 
zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i write a stateless session bean "PubsOperator",and a CMP entity bean
"Authors" with both remote and local interface.in the test client that is
generated by jbuilder5,i access the session bean by its remote interface,and
in the session bean,i call the entity bean by the remote interface like
this:

Context ctx=new InitialContext();
Object ref=ctx.lookup("AuthorsRemote");
AuhtorsRemoteHome authorsRemoteHome=..........

it works well,but if i modify the session bean to access the entity bean by
local interface,like this:

Context ctx=new InitialContext();
Object ref=ctx.lookup("Authors");
AuthorsHome authorsHome=(AuthorsHome)ref;
Authors authors=authorsHome.findByPrimaryKey(id);

the jbuilder throw a "NameNotFoundException",why the session bean can't
access entity bean by local interface in jbuilder6+bes5.0.0?
thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!