Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / February 2006

Tip: Looking for answers? Try searching our database.

JBOSS problem

Thread view: 
Sandy - 08 Feb 2006 15:32 GMT
Hi All,

I Have the following code

Properties properties = new Properties();
properties.put("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
properties.put("java.naming.factory.host", "IPAddress of MY computer");
properties.put("java.naming.factory.port", 16400);

jndiContext = new InitialContext(properties);

queueConnectionFactory = (QueueConnectionFactory)
jndiContext.lookup("QueueConnectionFactory");
queue = (Queue) jndiContext.lookup(queueName);

I tried to give it some wrong IPAddress for "java.naming.factory.host" but
it worked fine then also. And connected to the JBOSS running on my system.

I want to know how is it working when the IPAddress is wrong.

Thanks in Advance
Sandy - 09 Feb 2006 04:22 GMT
> Hi All,
>
[quoted text clipped - 19 lines]
>
> Thanks in Advance

Actually MY problem is ,
How do i specify the IPAddress/HostName of the system where JBOSS (JMS) is
running.
Heiko W. Rupp - 12 Feb 2006 09:57 GMT
>> properties.put("java.naming.factory.host", "IPAddress of MY computer");
>> properties.put("java.naming.factory.port", 16400);
> Actually MY problem is ,
> How do i specify the IPAddress/HostName of the system where JBOSS (JMS) is
> running.

Use the java.naming.provider.url:

p.put("java.naming.provider.url","jnp://localhost:1099");

Signature

Heiko W. Rupp <hwr@pilhuhn.de>  - http://www.pilhuhn.de/hwr/
     Begleitseite zum JBoss-Buch: http://bsd.de/jbb/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.