Page 1 of 1

Re: About Question enthuware.oce-ejbd.v6.2.376 :

Posted: Mon May 04, 2015 10:54 am
by negociadordns
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

Re: About Question enthuware.oce-ejbd.v6.2.376 :

Posted: Sun Mar 18, 2018 4:23 pm
by peter.varga
"YLocal yl = (YLocal) sctx.lookup("YLocal");"
I suppose this option is not correct because of the name String. What String would be correct?

Re: About Question enthuware.oce-ejbd.v6.2.376 :

Posted: Sun Apr 08, 2018 2:38 pm
by peter.varga
Please, someone answer my question!

Re: About Question enthuware.oce-ejbd.v6.2.376 :

Posted: Sun Apr 08, 2018 9:58 pm
by admin
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.

Re: About Question enthuware.oce-ejbd.v6.2.376 :

Posted: Sun Apr 08, 2018 10:05 pm
by admin
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
Fixed.
thank you for your feedback!
Paul.