Author |
Message |
Topic: Create Queue Manager through Java |
ram_2000
Replies: 1 Views: 2232
|
Forum: IBM MQ Java / JMS Posted: Fri Sep 13, 2002 8:33 pm Subject: Create Queue Manager through Java |
i'm not sure what you are trying to do....Why do you want to create a QM based on user input ?
Anyways...if you really have to do it (still cant digest the idea of creating QM's dynamically), you c ... |
Topic: how to Transmit a XMLMessage by MQ |
ram_2000
Replies: 1 Views: 1991
|
Forum: IBM MQ Java / JMS Posted: Fri Sep 13, 2002 8:21 pm Subject: how to Transmit a XMLMessage by MQ |
Sending XML should be no different from sending any other String (XML is still a string..). Please see the software repository in this site for examples on sending text messages. |
Topic: JMS & Cluster - URGENT |
ram_2000
Replies: 2 Views: 2880
|
Forum: IBM MQ Java / JMS Posted: Fri Sep 13, 2002 8:12 pm Subject: JMS & Cluster - URGENT |
What is the value for queueManagerName ?
I suspect you are using 'queueManager B'.
Try removing the queueManagerName in your call to createQueue()
"queue:///" + queueName + "?targetClient=1"
... |
Topic: Java MQ polling mysteriously vanishes |
ram_2000
Replies: 10 Views: 10057
|
Forum: IBM MQ Java / JMS Posted: Fri Sep 13, 2002 12:33 pm Subject: Java MQ polling mysteriously vanishes |
Are you catching Exception or Throwable ?
I have seen cases where only Exception is caught...but this does not include any runtime errors (like OutOfMemoryError)... |
Topic: Sending a message causing a rollback to another queue |
ram_2000
Replies: 3 Views: 2966
|
Forum: IBM MQ Java / JMS Posted: Thu Sep 12, 2002 9:43 pm Subject: Sending a message causing a rollback to another queue |
i'm confused on what you are trying to do (Session bean reading message in a queue...what if the message is not available???...do you wait for the message?....MDBs maybe more suitable for what you are ... |
Topic: Java MQ polling mysteriously vanishes |
ram_2000
Replies: 10 Views: 10057
|
Forum: IBM MQ Java / JMS Posted: Thu Sep 12, 2002 9:34 pm Subject: Java MQ polling mysteriously vanishes |
I suspect the thread quit (could be due to an exception)...
Make sure you are catching all exceptions/errors in the run() method of your thread..
run() {
try {
// do yo ... |
Topic: MDBs and setRollbackOnly |
ram_2000
Replies: 2 Views: 2489
|
Forum: IBM MQ Java / JMS Posted: Thu Sep 12, 2002 8:48 pm Subject: MDBs and setRollbackOnly |
as far as i know Weblogic does not support transactions on foreign JMS providers (in this case MQ Series)....doesn't matter whether you use binding mode or client mode...
But...even if it did, if t ... |
Topic: How to set User ID in MQMD through java(JMS)? |
ram_2000
Replies: 3 Views: 4674
|
Forum: IBM MQ Java / JMS Posted: Thu Sep 12, 2002 8:35 pm Subject: How to set User ID in MQMD through java(JMS)? |
I think you can set the user id field.....
Try this...when you create the connection from the connection factory (say QueueConnectionFactory), use the createQueueConnection() method where you can s ... |
Topic: Multithreaded MQ design help needed |
ram_2000
Replies: 2 Views: 2690
|
Forum: IBM MQ Java / JMS Posted: Wed Sep 11, 2002 1:38 am Subject: Multithreaded MQ design help needed |
First to answer your questions.....
1. Yes...you need one queueSession (queueSender) per thread. Session is not thread safe...
2. you could use the same qcf and queue connection...You can do thi ... |
Topic: JMS and MQINQ - doable? |
ram_2000
Replies: 1 Views: 2027
|
Forum: IBM MQ Java / JMS Posted: Wed Sep 11, 2002 1:13 am Subject: JMS and MQINQ - doable? |
we do it a little differently....we don't check before we send....We just send and if we get a JMSException (make sure its not MessageFormatException or InvalidDestinationException), we just ditch thi ... |
Topic: JMS & MQRFH2 |
ram_2000
Replies: 1 Views: 2080
|
Forum: IBM MQ Java / JMS Posted: Wed Sep 11, 2002 1:02 am Subject: JMS & MQRFH2 |
you don't have to create anything if you are using JMS....
You should read the documentation about mapping JMS messages to MQ messages...this explains how MQMD and RFH2 fit into the JMS world...
... |
Topic: Can't get BackoutCount from MQJMS API! |
ram_2000
Replies: 2 Views: 3067
|
Forum: IBM MQ Java / JMS Posted: Wed Sep 11, 2002 12:56 am Subject: Can't get BackoutCount from MQJMS API! |
you should be able to get this attribute with the getStringProperty() method in the Message interface.
Just try listing all the properties using the getPropertyNames() method....you will see the De ... |