This content has been marked as final.
Show 4 replies
-
1. Re: Custom DataSource configuration (instantiation)
vickyk Sep 14, 2007 12:35 PM (in response to puravidaaustin)"wwebber" wrote:
but none where you specify a vendor specific DataSource Impl.
If you look at the xa-datasource you will find that we specify the vendor specific DataSource implementation , but that is different concept :)
Now what you have been doing is simply trying to you the pool implementation by different vendor .
You can create a MBean which would create your custom DataSource and make this available to the Application deployed in Jboss . -
2. Re: Custom DataSource configuration (instantiation)
puravidaaustin Sep 18, 2007 9:14 AM (in response to puravidaaustin)I don't think using the XA configuration will work. The DataSource wrapper we use (thew 'standard' one everyone here is supposed to be using) is not an 'XA" type connection. Also, we use a scheduler called Quartz that requires you to give it a non-transactional (i.e.: 'manual commit') type connection for it to use. My thought so far is that some technique involving firing something up manually using an MBean is what might be a solution. It's tough for me to believe no-one has had the need so far to use their own DataSource implmentation stuff in JBoss.
-
3. Re: Custom DataSource configuration (instantiation)
vickyk Sep 19, 2007 2:27 AM (in response to puravidaaustin)"wwebber" wrote:
I don't think using the XA configuration will work. The DataSource wrapper we use (thew 'standard' one everyone here is supposed to be using) is not an 'XA" type connection. Also, we use a scheduler called Quartz that requires you to give it a non-transactional (i.e.: 'manual commit') type connection for it to use. My thought so far is that some technique involving firing something up manually using an MBean is what might be a solution. It's tough for me to believe no-one has had the need so far to use their own DataSource implmentation stuff in JBoss.
If you so keen to use it in a jboss style which is a JCA way , then you would need to write your own ResourceAdapter and configure the vendor specific DataSource implementation through the conf-property in the connection factory definition xml .
Have a look at
http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch7.chapt.html -
4. Re: Custom DataSource configuration (instantiation)
adrian.brock Sep 21, 2007 10:39 AM (in response to puravidaaustin)"wwebber" wrote:
It's tough for me to believe no-one has had the need so far to use their own DataSource implmentation stuff in JBoss.
They have, and it's in the FAQ.
Tomcat doesn't have JCA, so you can't play that card.
What you describe is NOT JCA.