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 uses of Broker

Post new topic  Reply to topic
 Database uses of Broker « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Tue Apr 17, 2007 5:46 am    Post subject: Database uses of Broker Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

How broker uses database? My question is if two broker created in a singple machine, can they use the same database? Do they create separate table inside the database?


Also, is there a way to have database centrally located in case of windows? The document sayd, the dsn can only use direct database on the same machine.

Thanks a lot
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 17, 2007 6:11 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I am not aware of any document that says that a broker database has to be local, on any platform.

Unless you are talking about Cloudscape/Derby, in which case one needs to remember that Cloudscape/Derby/BERNARD is not accessible from a remote machine.

I'm fairly sure that the Info Center discusses how to share a database between different brokers.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jeevan
PostPosted: Tue Apr 17, 2007 6:17 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

This is what i found


Quote:

The short answer is no; 2 brokers cannot operate on the same sets of database tables concurrently. ActiveMQ is designed for high performance so we want to minimise the amount of pessimistic locking; each broker is designed to work with its own persistent database.

If you want to share the same physical database server across two brokers to simplify your installation & backup procedures then just create 2 different logins for each broker so that they get their own sets of database tables within the same physical database. (i.e. each broker gets its own logical database within the same physical database server)


I am not sure why we need to use two separate database for two databasee. I know we do not create two broker in one machine in general but i am trying to test /document cases if one has to do what should have been done.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 17, 2007 6:24 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can easily create two brokers in one machine. Just like you can easily create more than one qmgr in each machine.

What does ActiveMQ have to do with this?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ah10035_.htm

You can use the same database, with the same user and password, for different brokers. It's not recommended, but it can certainly be done.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/an20140_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
pcelari
PostPosted: Tue Apr 17, 2007 11:15 am    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

you can use the same database for as many brokers as your system can comfortably host. I use it for both DEV, QA and Production, although I plan to split out the production broker out of the system soon.

It's been my understanding that broker database is accessed only during deployment and start of a msgflow, so sharing it among several brokers shouldn't impact performance. Correct me if that's not the case.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Apr 17, 2007 1:09 pm    Post subject: Use of broker Databases Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

From looking at the table names in the broker database, one of the uses of this database apart from storing message sets and flows, is to hold all the required data for pub/sub operations.

I am not sure how these are segregated between brokers sharing the same DB but it seems to work. I guess that the Broker UUID has something to do with it.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 uses of Broker
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.