ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Search

 Search found 18 matches
Author Message
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Wed Jul 07, 2010 10:03 am   Subject: null pointer when new MQConnectionFactory
FINALLY!!!!

switching to the jars from version 6.0.2.9 got me past the null pointer!!

i am now having issues with creating the connection MQJMS:2005, but there's some documentation on th ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Tue Jul 06, 2010 2:07 pm   Subject: null pointer when new MQConnectionFactory
i prolly should have stated this befreo but i am not using MDBs or ejbs of any kind i am trying to start up the connection as a pojo. So i dont know if that is my issue, but i didnt want to u ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Tue Jul 06, 2010 1:22 pm   Subject: null pointer when new MQConnectionFactory
So i have tried the following,

under deploy\jms
deploying the wqm.jmsra.ra and configuring it for NoTransaction, no dice there. And also changing the config of the jms-ds.xml to reference it ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Tue Jul 06, 2010 6:54 am   Subject: null pointer when new MQConnectionFactory
Taking XA out of the references didn't work.

I am not trying to use XA functionality, I am not sure that i am using a resource adapter because i am not defining or deploying and EJBs.

Basically ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Fri Jul 02, 2010 11:30 am   Subject: null pointer when new MQConnectionFactory
I think you may have found my silver bullet...

in deploy/jms/jms-ds.xml file it contains

<!-- The combined connection factory -->
<attribute name="FactoryRef">java:/XA ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Fri Jul 02, 2010 11:11 am   Subject: null pointer when new MQConnectionFactory
wait i think you misunderstood me, i am just connecting out to a MQ server using the MQ jars... the MQ server is hosted by a third party and i have no access to it, however i can connect to it using a ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Fri Jul 02, 2010 11:08 am   Subject: null pointer when new MQConnectionFactory
I am not using the resource adapter.... or at least i don't believe i am.

I am just trying to call the connection factory and then configure it and connect... i will try using the other version of ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Fri Jul 02, 2010 5:32 am   Subject: null pointer when new MQConnectionFactory
It is running in jboss, however removing those two jars still resulted in the same error



when i call new MQConnectionFactory();
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Thu Jul 01, 2010 11:32 am   Subject: null pointer when new MQConnectionFactory
additional info...

i am attempting to bootstrap this class and it is possible that i am clobbering something. but i have no clue what i could be overriding...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Thu Jul 01, 2010 7:58 am   Subject: null pointer when new MQConnectionFactory
com.ibm.mq.runtime_7.0.1.0\lib

jars
com.ibm.mq.headers.jar
com.ibm.mqjms.jar
jms.jar
com.ibm.mq.jar
connector.jar
jta.jar
com.ibm.mq.jmqi.jar
dhbcore.jar
providerutil. ...
  Topic: null pointer when new MQConnectionFactory
hyperspike

Replies: 19
Views: 19425

PostForum: IBM MQ Java / JMS   Posted: Thu Jul 01, 2010 7:31 am   Subject: null pointer when new MQConnectionFactory
I am trying to exicute the following command
[code] MQConnectionFactory connFactory = new MQConnectionFactory(); [/code]

and i get a null pointer that i can't seem to track down, i have attached ...
  Topic: Configuring a message listener as MQGET
hyperspike

Replies: 9
Views: 6573

PostForum: IBM MQ Java / JMS   Posted: Fri Jun 25, 2010 10:47 am   Subject: Configuring a message listener as MQGET


That did it, Thanks so much for your help!

I have done JMS in an OC4J container but never standalone, and that makes a lot more sense now and i see what i was doing wrong.
...
  Topic: Configuring a message listener as MQGET
hyperspike

Replies: 9
Views: 6573

PostForum: IBM MQ Java / JMS   Posted: Fri Jun 25, 2010 10:38 am   Subject: Configuring a message listener as MQGET
So i need to pass teh session into the listener and then commit after each read? but the commit has to be on the session correct?

thanks so much for your help!

Ill post the results....
  Topic: Configuring a message listener as MQGET
hyperspike

Replies: 9
Views: 6573

PostForum: IBM MQ Java / JMS   Posted: Fri Jun 25, 2010 10:29 am   Subject: Configuring a message listener as MQGET
Session ses = con.createSession(true, Session.AUTO_ACKNOWLEDGE);
Destination queue = ses.createQueue("XXXX");
MessageConsumer consumer = ses.createConsumer(queue& ...
  Topic: Configuring a message listener as MQGET
hyperspike

Replies: 9
Views: 6573

PostForum: IBM MQ Java / JMS   Posted: Fri Jun 25, 2010 10:20 am   Subject: Configuring a message listener as MQGET
Its actaully a text message and i can get it and process it, but the message stays on the queue...

So if i connected i get 10 messages...then i disconnect, then reconnect and i get the same 10 mess ...
Goto page 1, 2  Next Page 1 of 2

Jump to:  
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.