-
1. Re: i am getting an exception in workbook ex04_1 (remote not
primalsuaris Aug 12, 2008 4:48 AM (in response to maaz_ejb)this error comes because of your ejb name is not correctly define in remotelookup;
eg:-
think ur ejb interface name is GenaralEJB and u implement it and creat ur ejb called GenaralEJBBean like i shown in below;
@Stateful(name = "GenaralEJB")
public class GenaralEJBBean implements GenaralEJB {
}
and then ur contex lookup must like this;
ctx.lookup("GenaralEJB"+ REMOTE);
if not
ctx.lookup(" GenaralEJB"+ REMOTE);
this is wrong bcoz it has additional space in the begining of the ejbname.like i make with a * below.this cause a above error(remote not bound ).
ctx.lookup("*GenaralEJB"+ REMOTE); -
2. Re: i am getting an exception in workbook ex04_1 (remote not
primalsuaris Aug 12, 2008 4:56 AM (in response to maaz_ejb)this error comes because of your ejb name is not correctly define in remotelookup;
eg:-
think ur ejb interface name is GenaralEJB and u implement it and creat ur ejb called GenaralEJBBean like i shown in below;
@Stateful(name = "GenaralEJB")
public class GenaralEJBBean implements GenaralEJB {
}
and then ur contex lookup must like this;
ctx.lookup("GenaralEJB"+ REMOTE);
if not
ctx.lookup(" GenaralEJB"+ REMOTE);
this is wrong bcoz it has additional space in the begining of the ejbname.like i make with a * below.this cause a above error(remote not bound ).
ctx.lookup("*GenaralEJB"+ REMOTE);