Hi
I'm trying to access a web service from an MBean, but I get
javax.naming.NameNotFoundException: env not bound
My code looks like this:
| InitialContext iniCtx = new InitialContext();
| SmsApiService service = (SmsApiService) iniCtx
| .lookup("java:comp/env/service/SmsApiService");
| SmsApiPort endpoint = service.getSmsApi50();
|
Similar code works in a servlet as I have defined <service-ref> in web.xml. How
could I make my MBean to find the service too?
Harri
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915394#3915394
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915394
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user