Scott, is JCA a standard extension that vendors must follow in order to
claim version x.x compliance? I'm wondering how this mechanism will work,
for example with database connections, if the DBMS vendors don't put the
necessary logic into the drivers. And what happens is someone just cuts the
wire between the JBoss JVM and the DB server? In the case of unexpected
outages, neither the DB server nor the JVM (i.e, the DB client) would have
initiated the close connection, but the connection is lost nonetheless.
Unexpected outages must be detectable. That is why I think a isConnected()
method is preferable (obviously, DBMS vendors must agree to implement that
for it to do any good.)
----- Original Message -----
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 2:44 AM
Subject: Re: [JBoss-user] Strange Behavior When DataSource goes down.
> The JCA architecture provides a standard mechanism for managing
connections.
> It uses a callback mechanism to notify the connection user of changes in
its
> state:
>
> public interface javax.resource.spi.ConnectionEventListener {
>
> public void connectionClosed(ConnectionEvent event);
>
> public void connectionErrorOccurred(ConnectionEvent event);
>
> // Local Transaction Management related events
>
> public void localTransactionStarted(ConnectionEvent event);
>
> public void localTransactionCommitted(ConnectionEvent event);
>
> public void localTransactionRolledback(ConnectionEvent event);
>
> }
>
> ----- Original Message -----
> From: "Guy Rouillier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 02, 2001 11:10 PM
> Subject: Re: [JBoss-user] Strange Behavior When DataSource goes down.
>
>
> > I see one problem here and one issue.
> >
> > Problem: There is no standard, cross-vendor approach that I'm aware of
to
> > test to see if a database connection is still alive.
> >
> > Issue: My opinion is that we should try to standardize a solution whose
> > semantics work for any connection oriented resource, not just databases.
> > Something like a standardized "boolean isConnected()" method that would
> work
> > equally well for connections to an email server or to a database server
> (for
> > example.)
> >
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user