Author |
Message |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Thu Jun 23, 2011 6:49 am Subject: JAVA API code in "usning java" is dated ? API is |
"MQCONN" hmmmmm
thanks I will try that once I have little time.
Still I want to see how it works with a code rather then MQ interface.  |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Thu Jun 23, 2011 6:16 am Subject: JAVA API code in "usning java" is dated ? API is |
Dude I know those simple things, I stopped looking into C because initially I thought there were no documentation on remote access. And secondly I am doing this testing for java developers.
I am n ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 2:24 pm Subject: JAVA API code in "usning java" is dated ? API is |
Ok that is me:
Thanks for every ones halp.
.
Hi,
Thanks.
Add an *explicit* import for com.ibm.mq.constants.CMQC.
That worked.
Thanks.
Now follow the thread through and ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 1:13 pm Subject: JAVA API code in "usning java" is dated ? API is |
The userid and password fields are entirely meaningless. Don't set them.
still same. |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 1:07 pm Subject: JAVA API code in "usning java" is dated ? API is |
You have no idea.
I have some ideas. What happens if you re-instate the try/catch block that was present in the working sample?
Just to keep up with ""famous"" "using ja ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 1:01 pm Subject: JAVA API code in "usning java" is dated ? API is |
You have no idea.
Nor, it seems, do you.
If I try to get help from different document I get into a different realm of imports, calls etc etc.... I miss C language
Then write in C.
I mi ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 12:55 pm Subject: JAVA API code in "usning java" is dated ? API is |
I'm not much of a Java programmer, but it looks like you need a try/catch block around the statement listed.
There are quite a few other samples with MQ v7. Have you checked through them to see if ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 12:43 pm Subject: JAVA API code in "usning java" is dated ? API is |
1 import com.ibm.mq.*;
2 import com.ibm.mq.MQEnvironment;
3 import com.ibm.mq.jmqi.JmqiObject;
4 import com.ibm.mq.MQQueueManager;
5 import com.ibm.mq.constants.CMQC;
6
7
8 pu ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 10:38 am Subject: JAVA API code in "usning java" is dated ? API is |
1 import com.ibm.mq.*;
2 import com.ibm.mq.constants.CMQC;
3
4 public class MQSample
5 {
6 private String qManager = "TST";
7 private String hostname = "mq ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 9:30 am Subject: JAVA API code in "usning java" is dated ? API is |
I am glad now I am actually working on MQ errors now its
2035, which is not enough rights.
Thanks for every ones halp.
If I get stuck again. I will post. |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 9:20 am Subject: JAVA API code in "usning java" is dated ? API is |
Thanks but I figured it out.
After setting up
export LD_LIBRARY_PATH=/opt/mqm/java/lib/
that error went away..
Now I am getting
MQJE001: Completion Code '2', Reason '20 ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 8:48 am Subject: JAVA API code in "usning java" is dated ? API is |
ok It compiles fine now.
but when I run it I get following error.
# java MQSample
MQJE001: Completion Code '2', Reason '2495'.
A WebSphere MQ error occurred : Completion code 2 Reason ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 7:47 am Subject: JAVA API code in "usning java" is dated ? API is |
Add an *explicit* import for com.ibm.mq.constants.CMQC.
That worked.
Thanks. |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 6:59 am Subject: JAVA API code in "usning java" is dated ? API is |
nope.
this is my class path.
# echo $CLASSPATH
/opt/mqm/java/lib/com.ibm.mq.jar:
/opt/mqm/java/lib/connector.jar:
/opt/mqm/java/lib:
/opt/mqm/java/lib/com.ibm.mq.tools.ras.jar& ... |
Topic: JAVA API code in "usning java" is dated ? API is |
anotherID
Replies: 38 Views: 22987
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 22, 2011 6:43 am Subject: JAVA API code in "usning java" is dated ? API is |
Ok I do that.
I hope there is a happy ending to all this. |