[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

How to find Provider URL for websphere

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
rnayeneni
Asked:
rnayeneni
1 Solution
 
dhruvpratapCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now