-
1. Re: How to setup jndi.properties for AS7
dlofthouse Aug 9, 2011 7:47 AM (in response to saltnlight5)At the moment remote JNDI is not yet supported, the following Jira issue is to address this: -
-
2. Re: How to setup jndi.properties for AS7
beve Aug 30, 2011 10:09 AM (in response to dlofthouse)I'm a little confused about the following comment on that jira:
We need to stop talking about "remote" JNDI. Clients will be able to use JNDI, but it will be a "local" JNDI view. This view will point to remote services and it might in some cases aggregate a very specific section of a remote tree, but there will be no remote access to a server JNDI tree.
I'm not sure I understand the "local" JNDI view
Lets say I have a remote client that needs to lookup JMS destinations from JNDI, what would that look like?
Any chance someone could show a code example of this (does not have to be real or anything that can be used at the moment).
Thanks,
/Daniel
-
3. Re: How to setup jndi.properties for AS7
prasad.deshpande Aug 31, 2011 4:24 AM (in response to beve)I'm not sure I understand the "local" JNDI view
That means looking up JNDI from within your application (ear/war). Outside your application like using Remote clients are not yet supported.
Lets say I have a remote client that needs to lookup JMS destinations from JNDI, what would that look like?
Any chance someone could show a code example of this (does not have to be real or anything that can be used at the moment).
This is not yet developed so nothing is yet available even to show as a sample example. But once it gets developed, code will be something like
@Resource(lookup="java:jboss/jms/topic/testTopic") Topic testTopic; //assuming testTopic is bound to JNDI "java:jboss/jms/topic/testTopic"
-
4. Re: How to setup jndi.properties for AS7
beve Aug 31, 2011 1:50 PM (in response to prasad.deshpande)This is not yet developed so nothing is yet available even to show as a sample example. But once it gets developed, code will be something like
@Resource(lookup="java:jboss/jms/topic/testTopic") Topic testTopic;
//assuming testTopic is bound to JNDI "java:jboss/jms/topic/testTopic"
Ah, got it! Thanks clearing that up for me.
Regards,
/Daniel