Solved

How to find Provider URL for websphere

Posted on 2011-03-11
3
202 Views
Last Modified: 2014-10-24
Hi Experts,

I am wrinting a standalone jms program to talk to websphere default messaging provider,
In the below code

 tbl.put("java.naming.factory.initial", "com.ibm.websphere.naming.WsnInitialContextFactory");
        tbl.put("java.naming.provider.url", namingURL);
        Context ctx = new InitialContext(tbl);
        System.out.println(" Initial Context Created ");
        myConnFactory = (QueueConnectionFactory)ctx.lookup(connectionFactoryName);

I am confused about namingURL, can you please help me on how to get namingURL for my websphere server.

thanks
0
Comment
Question by:rnayeneni
3 Comments
 
LVL 1

Accepted Solution

by:
dhruvpratap earned 500 total points
ID: 37052481
In the navigation pane, click Resources > JMS ->JMS providers. This displays a list of JMS providers in the content pane.

It's usually of the format   <protocol>://<host_name >:port_number
where:
- protocol is the protocol the client uses to communicate with the JNDI provider(which in your case is same as the JMS provider)
- host_name is the name of the machine on which the server is running.
- port_number is the port number at which the server is listening.

Example: iiop://localhost:2809, tcp://localhost:7222, t3://localhost:7001
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fix34  challenge 9 105
matchUp  challenge 9 94
website content maintenance 3 81
Widget to get customer remakrs in our website. 3 50
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now