Re: C-JDBC and OJB

2005-09-02 Thread Thomas Mahler

Hi Andy,

I did not use it in production, but I evaluated it as a lowcost 
clustering solution two years ago.


I didn't find any issues and assume that it will work like a charm with 
the latest versions of OJB and C-JDBC too!


cheers,
Thomas


Andy Malakov wrote:

Hello All,

Anybody successfully used OJB with C-JDBC ( database cluster middleware that allows any Java application  to transparently access a cluster of databases through JDBC [http://c-jdbc.objectweb.org]) ? 



Thanks,
Andy 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FieldConversion in ReportQueryByCriteria

2005-09-02 Thread JML (Brujula)

Hi!

When I use a ReportQueryByCriteria about a field of a table, I have seen 
that OJB doesn't use FieldConversion class defined in repository.xml. Is 
it possible or is a problem of my configuration?


Thank you very much for your help!

Joan
Brujula Telecom


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to check if database is available

2005-09-02 Thread Hiller, Frank RD-AS2
Hi Tom,

ok, I did that.
I read the parameters for the database (protocol, subprotocol, ...) from 
database_repository.xml.
Then I try to establish a connection to the DB. If that fails the DB is not 
available.

You don't think this could be a functionality that PB API could provide?

Frank 

-Ursprüngliche Nachricht-
Von: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. August 2005 09:48
An: OJB Users List
Betreff: Re: How to check if database is available

On 8/19/05, Hiller, Frank RD-AS2 [EMAIL PROTECTED] wrote:

 how can one check via OJB whether the database is avaialable before 
 establishing a connection to it?

I think that in JDBC you'd have to try to establish a connection to it and if 
that fails, then likely the database is not available (for whatever reason). 
AFAIK there is no other generic way (though individual databases may provide 
other means).
Since OJB builds upon JDBC, you probably got to try to establish a connection 
and execute the query that you've defined as the keep-alive query, and see 
whether this is possible.

Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Confidentiality note:
The information in this email and any attachment may contain confidential and 
proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates 
and may be privileged or otherwise protected from disclosure. If you are not 
the intended recipient, you are hereby notified that any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may cause liability. In case you have received this message due 
to an error in transmission, we kindly ask you to notify the sender immediately 
and to delete this email and any attachment from your system.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to check if database is available

2005-09-02 Thread Ribi Roland
A simpler way could be:

// depends on how you handle the PB
PersistanceBroker br = PersistenceBrokerFactory.defaultPersistenceBroker();


Connection conn = br.serviceConnectionManager().getConnection();
// here you can do any checks on the conn Object  (is closed, sample query
...).

Roland Ribi  

 -Original Message-
 From: Hiller, Frank RD-AS2 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 9:50 AM
 To: OJB Users List
 Subject: AW: How to check if database is available
 
 
 Hi Tom,
 
 ok, I did that.
 I read the parameters for the database (protocol, 
 subprotocol, ...) from database_repository.xml.
 Then I try to establish a connection to the DB. If that fails 
 the DB is not available.
 
 You don't think this could be a functionality that PB API 
 could provide?
 
 Frank 
 
 -Ursprüngliche Nachricht-
 Von: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
 Gesendet: Freitag, 19. August 2005 09:48
 An: OJB Users List
 Betreff: Re: How to check if database is available
 
 On 8/19/05, Hiller, Frank RD-AS2 [EMAIL PROTECTED] wrote:
 
  how can one check via OJB whether the database is avaialable before 
  establishing a connection to it?
 
 I think that in JDBC you'd have to try to establish a 
 connection to it and if that fails, then likely the database 
 is not available (for whatever reason). AFAIK there is no 
 other generic way (though individual databases may provide 
 other means).
 Since OJB builds upon JDBC, you probably got to try to 
 establish a connection and execute the query that you've 
 defined as the keep-alive query, and see whether this is possible.
 
 Tom
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 Confidentiality note:
 The information in this email and any attachment may contain 
 confidential and proprietary information of Heidelberger 
 Druckmaschinen AG and/or its affiliates and may be privileged 
 or otherwise protected from disclosure. If you are not the 
 intended recipient, you are hereby notified that any review, 
 reliance or distribution by others or forwarding without 
 express permission is strictly prohibited and may cause 
 liability. In case you have received this message due to an 
 error in transmission, we kindly ask you to notify the sender 
 immediately and to delete this email and any attachment from 
 your system.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to check if database is available

2005-09-02 Thread Thomas Dudziak
On 9/2/05, Hiller, Frank RD-AS2 [EMAIL PROTECTED] wrote:

 ok, I did that.
 I read the parameters for the database (protocol, subprotocol, ...) from 
 database_repository.xml.
 Then I try to establish a connection to the DB. If that fails the DB is not 
 available.
 
 You don't think this could be a functionality that PB API could provide?

You misunderstood me, I was suggesting that you simply try to
establish a connection *via* the PB - much in the same way as Ribi was
suggesting, or perhaps by executing a simple query with the broker
instance - not outside of OJB (of course this would work too).

Tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]