The case of the bean name in the first answer is incorrect.
(YLocal) sctx.lookup("java:global/EJBD-ToyApp/EJBD-ToyApp-ejb/XYSessionbean!YLocal");
Please change XYSessionbean to XYSessionBean, so the answer would be 100% correct.
Regards
About Question enthuware.oce-ejbd.v6.2.376 :
Moderator: admin
-
- Posts: 2
- Joined: Tue Mar 04, 2014 7:03 pm
- Contact:
-
- Posts: 5
- Joined: Wed Dec 16, 2015 3:16 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.376 :
"YLocal yl = (YLocal) sctx.lookup("YLocal");"
I suppose this option is not correct because of the name String. What String would be correct?
I suppose this option is not correct because of the name String. What String would be correct?
-
- Posts: 5
- Joined: Wed Dec 16, 2015 3:16 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.376 :
Please, someone answer my question!
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.376 :
Yes, the name is incorrect. The correct string is already given in option 1: "java:global/EJBD-ToyApp/EJBD-ToyApp-ejb/XYSessionbean!YLocal"
You should also go through section 4.4 of Global JNDI Access of EJB 3.1 for complete details.
HTH,
Paul.
You should also go through section 4.4 of Global JNDI Access of EJB 3.1 for complete details.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.376 :
Fixed.negociadordns wrote:The case of the bean name in the first answer is incorrect.
(YLocal) sctx.lookup("java:global/EJBD-ToyApp/EJBD-ToyApp-ejb/XYSessionbean!YLocal");
Please change XYSessionbean to XYSessionBean, so the answer would be 100% correct.
Regards
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 84 guests