[jboss-user] [Beginner's Corner] - default/conf/jndi.properties entries
RS Prasad
do-not-reply at jboss.com
Thu Jul 8 04:12:17 EDT 2010
RS Prasad [http://community.jboss.org/people/rsprasad] replied to the discussion
"default/conf/jndi.properties entries"
To view the discussion, visit: http://community.jboss.org/message/551607#551607
--------------------------------------------------------------
For upgrade, when an application in jboss-4.2.2 was compiled with jdk6 and deployed to Jboss-5.1.0.GA,
jboss5.1.0.GA requires an entry for the property java.naming.provider.url=<*+OurJbossServerAppIPAddress+*>:1099
to make the application work.
When verified with our distribution of existing Jboss-4.2.2 it has the entry for provider.url.
Standard distributions of JBoss-4.2.2 or Jboss-5.1.0.GA both have only
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
My understanding is jndi properties file is referred by runtime
only when InitialContext is instantiated with no args constructor.
Two applications have codes to instantiate IntialContext with no args constructor.
One application works fine in Jboss-5.1.0.GA without the provider.url entry.
The second requires the provider.url.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/551607#551607]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100708/a01635fa/attachment-0001.html
More information about the jboss-user
mailing list