Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

EJB JNDI Lookup String?

$
0
0

Hi,

 

just a short question, I try to lookup an EJB from JNDI. I found some JNDI in the documentation of how to use EJB from JSP.

 

Unfortunately the documentation just says:

 

try {  InitialContext ic = new InitialContext();  HelloWorldBean h= (HelloWorldBean)ic.lookup("java:comp/env/<HelloWorldBean_Lookup_String>");  out.println(h.sayHello());
}
catch...

I'm pretty sure "<HelloWorldBean_Lookup_String>" is not the correct lookup string

 

Which one is it?

 

Frank


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>