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

Moderator: admin

Post Reply
negociadordns
Posts: 2
Joined: Tue Mar 04, 2014 7:03 pm
Contact:

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

Post 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

peter.varga
Posts: 5
Joined: Wed Dec 16, 2015 3:16 am
Contact:

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

Post 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?

peter.varga
Posts: 5
Joined: Wed Dec 16, 2015 3:16 am
Contact:

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

Post by peter.varga »

Please, someone answer my question!

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests