Solved

How to find Provider URL for websphere

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to implement Singleton Design Pattern in Java.

758 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

22 Experts available now in Live!

Get 1:1 Help Now