Solved

How to find Provider URL for websphere

Posted on 2011-03-11
3
219 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

680 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