jaikiran pai [
https://community.jboss.org/people/jaikiran] created the discussion
"Re: remote JNDI"
To view the discussion, visit:
https://community.jboss.org/message/717096#717096
--------------------------------------------------------------
justdoit wrote:
thanks for the quick response.
I'm getting ClassNotFoundException for the sentence, on Jboss nightly build 604:
env.put(Context.INITIAL_CONTEXT_FACTORY,
org.jboss.naming.remote.client.InitialContextFactory.class.getName());
Caused by: java.lang.ClassNotFoundException:
org.jboss.naming.remote.client.InitialContextFactory from....
Place the JBOSS_HOME/bin/client/jboss-client-*.jar in the classpath of your
client. By the way, AS 7.1.0.Final has been released
http://lists.jboss.org/pipermail/jboss-as7-dev/2012-February/005331.html
http://lists.jboss.org/pipermail/jboss-as7-dev/2012-February/005331.html, so you might
want to use that.
justdoit wrote:
Another thing, could you please check if this lookup is correct:
context.lookup("remote:" + appName + "/" + moduleName +
"/" + distinctName + "/" + beanName + "!" + viewClassName);
It should be:
context.lookup(appName + "/" + moduleName + "/" + beanName +
"!" + viewClassName);
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/717096#717096]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]