WebSphere Application Server - Re: Standalone JMS Client problem getting the connection - Please

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2006 > Re: Standalone JMS Client problem getting the connection - Please





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Standalone JMS Client problem getting the connection - Please

2006-09-29, 1:53 pm

1. Created Bus ->myBus
2. Bus members -> assigned server to bus(Node=GSO0495809DNode01, Server=server1 )
message engine is running.
3. JMS Providers -> Default messaging -> Queue Connection Factory
Name : My Queue Connection Factory
JNDI Name: myQCF
BusName : myBus
Provider endpoints : 167.230.98.52:7276:BootstrapBasicMessaging

I am not putting queue info because my problem is on QCF.createConnection()

Standalone Client Program runing from RAD after adding all jars of websphere in the classpath
----------------------------------------------------------------------------------------------

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
Context initialContext = new InitialContext(env);

ConnectionFactory connectionFactory = (ConnectionFactory)initialContext.lookup("myQCF");

log("creating connection ..");
Connection conn = connectionFactory.createConnection();

To verify my JMS Configuration, I tested with JSP and MDB, all working fine except Standalone client.

If you need, any more info please let me know.

Thanks
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com