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 » General IBM MQ Support » WebSphere MQ 6 - ORACLE 10g connection

Post new topic  Reply to topic
 WebSphere MQ 6 - ORACLE 10g connection « View previous topic :: View next topic » 
Author Message
tbenyacs
PostPosted: Wed Oct 03, 2007 8:01 am    Post subject: WebSphere MQ 6 - ORACLE 10g connection Reply with quote

Novice

Joined: 19 Apr 2007
Posts: 18
Location: Budapest, HU

Hi, Everybody,

I dealing with WebSphere MQ 6 - ORACLE 10g connection.
I have to PUT / GET messages to / from a remote QM via ORACLE Messaging Gateway.

The Ora scripts are the following:

'
DECLARE
v_options sys.mgw_properties;
v_prop sys.mgw_mqseries_properties;
BEGIN
v_prop := sys.mgw_mqseries_properties.construct();
v_prop.max_connections := 1;

v_prop.interface_type := Dbms_Mgwadm.JMS_QUEUE_CONNECTION; --MQSERIES_BASE_JAVA_INTERFACE
v_prop.username := 'UserName';
v_prop.PASSWORD := 'Password';
v_prop.hostname := '192.168.0.77';
v_prop.port := 1417;
v_prop.channel := 'SYSTEM.DEF.SVRCON';
v_prop.queue_manager := 'QM_GENCS';

v_prop.outbound_log_queue := 'SYSTEM.JMS.D.SUBSCRIBER.QUEUE';

-- Specify a WebSphere MQ durable subscriber queue to be used with the
-- log topic.
-- v_options := sys.mgw_properties(
-- sys.mgw_property('MQ_JMSDurSubQueue', 'ORA_LOG'));

Dbms_Mgwadm.create_msgsystem_link(
linkname => 'mqjms', properties => v_prop, options => v_options );
END;

------------------------

BEGIN
Dbms_Mgwadm.register_foreign_queue(
NAME => 'testmq',
linkname => 'MQJMS',
provider_queue => 'ORA_IN',
domain => Dbms_Mgwadm.DOMAIN_QUEUE);
END;

------------------------

BEGIN
Dbms_Mgwadm.add_subscriber(
subscriber_id => 'sub_aq2mq',
propagation_type => Dbms_Mgwadm.outbound_propagation,
queue_name => 'ADMIN.QUEUE',
destination => 'TESTMQ@MQJMS');
END;
'

The error message in the oramgw*.log (Messaging Gateway log) is the following:

'
>>2007-10-03 17:29:18 MGW Engine 0 EXCEPTION main
java.lang.NoClassDefFoundError: com/ibm/mq/jms/MQConnectionFactory
at oracle.mgw.drivers.mq.jms.MQJmsLink.<init>(MQJmsLink.java:9
at oracle.mgw.drivers.mq.MQLinkParamsNFactory.createMsgLink(MQLinkParamsNFactory.java:339)
at oracle.mgw.engine.MsgLinkMgr.addLink(MsgLinkMgr.java:64)
at oracle.mgw.engine.Agent.initAgent(Agent.java:468)
at oracle.mgw.engine.Agent.start(Agent.java:132)
at oracle.mgw.engine.Agent.agentMain(Agent.java:698)

'

The 'v_prop.channel := 'SYSTEM.DEF.SVRCON';' is OK.? If NOK, which type of channel have to specify?

What is the trouble?

Thanks for the help!
_________________
Tamas Benyacs
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Wed Oct 03, 2007 8:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The trouble maybe is that you don't have the MQ client installed on the Oracle machine, and have all the necessary MQ classes on the classpath.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 03, 2007 8:18 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Does the user starting the gateway / oracle have the jars needed on the classpath?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tbenyacs
PostPosted: Thu Oct 04, 2007 12:33 am    Post subject: Reply with quote

Novice

Joined: 19 Apr 2007
Posts: 18
Location: Budapest, HU

jefflowrey wrote:
The trouble maybe is that you don't have the MQ client installed on the Oracle machine, and have all the necessary MQ classes on the classpath.


The Oracle database, Messaging Gateway and the Websphere queue manager are in the same host therefore there is not a MQ client in this machine. It is maybe a problem?
_________________
Tamas Benyacs
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vitor
PostPosted: Thu Oct 04, 2007 12:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

You'd still need the client installed if you're trying to establish a client connection.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Oct 04, 2007 12:55 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

I am not sure, whether IBM has come up with the fix pack for 2 Phase commit transactions with Oracle Database.

As there is an issue with MQ 6 at first...


Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 04, 2007 3:14 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Gayathri - I don't see how that would result in a noClassDefFoundError...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
tbenyacs
PostPosted: Thu Oct 04, 2007 4:56 am    Post subject: Ora10 - WMQ6 connection Reply with quote

Novice

Joined: 19 Apr 2007
Posts: 18
Location: Budapest, HU

Vitor wrote:
You'd still need the client installed if you're trying to establish a client connection.

I have an MQ 6 Client on the host.
The question is that the Ora 10 MGW knows the WebSphere MQ V6 or only V5.3?
_________________
Tamas Benyacs
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Gaya3
PostPosted: Thu Oct 04, 2007 5:05 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Sorry Jeff, thats only an information.

CLASSPATH haven't exported properly i believe in this part.

request you to check the proper jar files are present in the respective dir

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 04, 2007 2:15 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

tbenyacs wrote:
jefflowrey wrote:
The trouble maybe is that you don't have the MQ client installed on the Oracle machine, and have all the necessary MQ classes on the classpath.


The Oracle database, Messaging Gateway and the Websphere queue manager are in the same host therefore there is not a MQ client in this machine. It is maybe a problem?


Sure seems one to me. AFAIK the Oracle Messaging Gateway tries to establish a client connection to MQ...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tbenyacs
PostPosted: Tue Oct 09, 2007 6:52 am    Post subject: Reply with quote

Novice

Joined: 19 Apr 2007
Posts: 18
Location: Budapest, HU

fjb_saper wrote:
tbenyacs wrote:
jefflowrey wrote:
The trouble maybe is that you don't have the MQ client installed on the Oracle machine, and have all the necessary MQ classes on the classpath.


The Oracle database, Messaging Gateway and the Websphere queue manager are in the same host therefore there is not a MQ client in this machine. It is maybe a problem?


Sure seems one to me. AFAIK the Oracle Messaging Gateway tries to establish a client connection to MQ...


Thanks for the advices!
I have succeeded in connection the Ora Msg and WS MQ via Srvr Conn channel and java SYSTEM queues.
_________________
Tamas Benyacs
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » WebSphere MQ 6 - ORACLE 10g connection
Jump to:  



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
Protected by Anti-Spam ACP
 
 


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

Copyright © MQSeries.net. All rights reserved.