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 » Using Derby database from WMB messageflows

Post new topic  Reply to topic
 Using Derby database from WMB messageflows « View previous topic :: View next topic » 
Author Message
martinrydman
PostPosted: Sat Oct 28, 2006 8:14 am    Post subject: Using Derby database from WMB messageflows Reply with quote

Centurion

Joined: 30 Jan 2004
Posts: 139
Location: Gothenburg, Sweden

Hi,
I've successfully been able to:
1. Create a Derby Db and ODBC Data Connection
2. Create, populate, and query a table in this db using the Data perspective in the toolikit
3. Run a msgflow quering the table

However, it seems that 2 and 3 above are mutually exclusive. When I manage to connect to the db from within the toolkit, the msgflow is unable to connect to the db. If I restart the computer and run the msgflow, it succeeds, but trying to connect to the db from within the toolkit fails.

Since my only reason for using Derby concerns running it locally in order not to have to install something monstrous like DB2, being able to run msgflows and access the db from within the toolkit simultaneously is pretty essential.

Any hints welcome.

TIA!

/Martin
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Oct 28, 2006 10:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Gosh.

Maybe Derby only supports one connection at a time.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
martinrydman
PostPosted: Sat Oct 28, 2006 11:22 am    Post subject: Reply with quote

Centurion

Joined: 30 Jan 2004
Posts: 139
Location: Gothenburg, Sweden

Jeff,

Is this a theory, statement of fact, or joke...?

/Martin
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Oct 28, 2006 11:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://db.apache.org/derby/papers/DerbyTut/ns_intro.html
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Sun Oct 29, 2006 1:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

interesting tutorial, but where does it state to support only 1 concurrent connection?
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
fjb_saper
PostPosted: Sun Oct 29, 2006 4:52 am    Post subject: Reply with quote

Grand High Poobah

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

Michael Dag wrote:
interesting tutorial, but where does it state to support only 1 concurrent connection?
It may be the broker's licence. You are supposed to use the databases connected to the Broker/configmgr (and installed with the broker licence) for the broker/configmgr only and not for storing/manipulating other data....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sun Oct 29, 2006 5:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Quote:
However, an application can also access a Derby database using the more familiar client/server mode. This is achieved via a framework that embeds Derby and handles database requests from applications, including applications running in different JVMs on the same machine or on remote machines.


The default mode for Derby is as an embedded database, that does not accept network connections and does not allow more than one application to connect at a time.

Try using the Derby client to connect to the ConfigMgr's embedded database while the configmgr is running - you can't.

And a little more poking around at the Derby site might have lead to http://db.apache.org/derby/docs/dev/getstart/cgsquck70629.html, which explicitly says
Quote:
An embedded environment is an environment in which only a single application can access a database at one time, and no network access occurs.

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jfluitsm
PostPosted: Wed Feb 07, 2007 3:04 am    Post subject: Reply with quote

Disciple

Joined: 24 Feb 2002
Posts: 160
Location: The Netherlands

For the broker Derby is not embedded.
After creating the database and ODBC connection you can use the DB2 Command Line Processor.
The only trouble is that in case of an error you only see 1 error message (about a failed binding).
_________________
Jan Fluitsma

IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using Derby database from WMB messageflows
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.