[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [jboss-user] [Management,
From: toni <do-not-reply () jboss ! com>
Date: 2007-01-31 21:19:27
Message-ID: 4813021.1170278367114.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]
Well, that's pretty obvious but I was wondering about the naming convention. Here is \
the code and naming convention:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, \
"org.jnp.interfaces.NamingContextFactory"); p.put(Context.PROVIDER_URL, \
"localhost:1099"); context = new InitialContext(p);
Object object = context.lookup("/applicationNameOfEarWithoutExtension/NameOfSessionBeanInNameAnnotation/local");
So if you work with Seam and deploy a ear called "myapp.ear" and tag a bean with \
@Name("testSessionBean"), the you need to call:
Object object = context.lookup("/myapp/testSessionBean/local");
View the original post : \
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009031#4009031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009031
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic