Hi,

I am trying to perform a jndi lookup of a stateless session bean (which is 
deployed separately in a ejb jar file) from a web application. I can do a 
normal JNDI as below:


  |             try{
  |             InitialContext ctx = new InitialContext();
  |             cacheSession = (SessionCache) 
ctx.lookup("SessionCacheSLB/local");
  |             }
  |             catch(Exception e){
  |                     e.printStackTrace();
  |             }
  | 

But I wonder if I can instead do something like 


  | @JndiLookup("SessionCacheSLB/local")
  | SessionCache mySession;
  | 

That would really make my day! ;-)

And congrats to the JBoss Seam team for the launch of version 2.0 GA!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102779#4102779

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102779
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to