Hello,
I have a stateless session bean. I inject the SessionContext as follows
private @Resource javax.ejb.SessionContext ctx;
In a method I want to get the host name:
System.out.println("Host:" + (String) ctx.lookup("java:comp/env/host"));
The problem is that host (and other properties) are always null!
What I am doing wrong?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916881#3916881
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916881
-------------------------------------------------------
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