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 » WebSphere Message Broker (ACE) Support » Database connections

Post new topic  Reply to topic
 Database connections « View previous topic :: View next topic » 
Author Message
lppgronw
PostPosted: Tue Sep 11, 2007 11:33 am    Post subject: Database connections Reply with quote

Newbie

Joined: 11 Sep 2007
Posts: 2

I am trying to use a DataInsert node and have created the data definition and data map. I have created the data conncetion using JDBC and have successfully connected. I am using MB toolkit on a Windows XP machine and will eventually deploy to an AIX machine for production. My question is the Data Source property of the DataInsert Node. What should go there, connection URL? Based on some of the answers I've seen do I have to create a windows ODBC connection and use that as the data source? If so, what happens when I deploy to AIX, will I have to create the ODBC definition there as well?

What's the point of creating the database connection in the data perspective if it can't be used with a esql compute node or the database nodes?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 11, 2007 11:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The only reason to create a Database connection in the Toolkit is so that the Toolkit knows about the database. To, for example, not throw warnings when you write ESQL that references database structures.

It's not very much use at all, as long as you know how to ignore warnings.

Broker runtime and Toolkit are entirely separate environments.

Broker runtime only uses ODBC for connections - unless you specifically write java code to create JDBC connections.

All of that should have been covered in your Broker training.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jsware
PostPosted: Wed Sep 12, 2007 3:42 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

How do people overcome the problem of databases in different environments would have different names? For example I might have 3 environments, DEV, TEST and PROD. I have 3 brokers: DEV_BRK, TEST_BRK and PROD_BRK. DEV & TEST brokers are on TEST_HOST and PROD is on its own host.

Each environment has its own application database I need to access; DEV_DB, TEST_DB and PROD_DB.

I have say 6 flows, each with 3 nodes that access the relevant database. How can I deploy the flows between environments without accidentally connecting to the wrong database in an environment.

Promoting properties to be changed in the bar file is not foolproof because I have 9 properties to change each time I do a deploy. Using "aliased" names in the ODBC.INI file does not help because DEV & TEST brokers are on the same host (but need to access different databases).

What do other people do (if anything more than be careful)?
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 12, 2007 3:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There are a lot of ways to "overcome" this "problem".

One is to create the ODBC DSNs to all have the same name.

One is to use mqsiappplybaroverrides - which may be problematic for some properties, but is fine for this situation.

One is to write scripts or use scripts that do the same thing as mqsiapplybaroverrides - change the properties in the broker.xml file.

There are a couple of articles on devworks about this - some are about using Ant and one is about a Java tool for changing BAR properties (it's by Boris Lublinsky).
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Database connections
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.