Hi,

"Walter M. Yuan" wrote:
> Got a newbie question on DataSource--
> 
> what's the difference among XADataSource, JDBCDataSource and DataSource in jboss?

They are all resources that you can use in
your enterprise bean. And the above are all
datasources, ie. factories for database
connections.

DataSource is just the interface of (non-XA)
datasources.
XADataSource is an XA datasource, and JDBCDataSource
is a non-XA datasource.

XA resources differ from non-XA resources in
how they work with the transaction manager.
An XA resource can handle the two phase
transaction commit protocol that is needed
for correct operation when a transaction is
terminated. Non-XA resources only support
one phase commit, and are not really meant
for EJB.

Unless you know what you are doing, stay
away from the JDBCDataSource.


Best Regards,

Ole Husgaard.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to