|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Program terminates when setting MQEnvironment |
« View previous topic :: View next topic » |
Author |
Message
|
cycotron69 |
Posted: Thu Jan 19, 2006 9:53 am Post subject: Program terminates when setting MQEnvironment |
|
|
Newbie
Joined: 19 Jan 2006 Posts: 1
|
Without going to too much detail, the section of my code that's generating the problem looks like this.
try {
MQEnvironment.hostname = mqConfiguration.getHostName();
MQEnvironment.port = mqConfiguration.getPort();
MQEnvironment.channel = mqConfiguration.getServerConnection();
...
...
} catch (Exception e) {
/* printing exception message here */
}
Right now the program exists when trying to set hostname. No exception is generated or caught. I've used print statement to verify that the mqConfiguration methods are not returning null values. This code works when ran from the IntelliJ IDE environment, but when it's put into a jar and ran from the command prompt using a DOS batch program, the code fails, and no exceptions are caught by the above catch block, I've verified that by putting print line statements in the above catch block. The only exceptions I get are from calling classes, indicating a javax/resource/ResourceException. I can only think of environment setting problems, but I'm not sure what. I will continue to explore, but any insight to why this is happening would be greatly appreciated. |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jan 19, 2006 11:06 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
are the classpath's the same in both environments? _________________ -wayne |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|