Thanks, David.

I still feel more or less lost in the Resource Adapter docs (a little more
of clarity in the dark, though). Could you please add any kind of UML
diagram to help understanding the architecture?

I enclose the service.xml file I have put together for mysql. Some of the
params are (more or less) guessed, but it works. I'll start another one for
postgres this afternoon (GMT), and post it As Soon As It Works(tm).

I'm not sure, but sniffing the code it seems that XA Transactions are
supported in JBoss but not yet implemented as XADataSources (if I'm wrong
correct me). The file that I'm enclosing use Local Transactions.

Regards,

Ignacio Coloma.
P.S.: Yes, I knew the diff between Enhydra and Hypersonic, but my post
almost coincided with the Lutris crisis and made my mind a mess while
writing it. Thanks for the point anyway :))
P.S2.: How do I contribute these files to the docs?

> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]En nombre de David
> Jencks
> Enviado el: mi�rcoles, 19 de septiembre de 2001 19:44
> Para: [EMAIL PROTECTED]
> Asunto: Re: [JBoss-dev] Anyone has tried to make a non-hypersonic
> connection pool?
>
>
> The (new) manual chapter explains the config parameters pretty well I
> think, please let me know if it is unclear.
>
> http://www.jboss.org/documentation/HTML/ch03.html
>
> Please show what you have so far and contribute it to the manual when it
> works.
>
> Thanks
> david jencks
>
> btw hypersonic  != enhydra
>
> On 2001.09.19 13:28:37 -0400 Ignacio Coloma wrote:
> > Anyone has the xxx-service.xml for a database that is not enhydra?
> >
> > I have coded one, but doesn't work. It could be a bug but since I'm not
> > 100%
> > sure of the config parameters I don't dare to post it as a bug yet.
> >
<?xml version="1.0" encoding="UTF-8"?>


<!-- ===================================================================== -->
<!--                                                                       -->
<!--  foo App DataSource                                                   -->
<!--                                                                       -->
<!-- ===================================================================== -->

<!-- $Id: foo-mysql-service.xml,v 1.0 2001/09/19 02:48:05 icoloma Exp $ -->


<server>

  <depends>JBOSS-SYSTEM:service=Naming</depends>
  <depends>JBOSS-SYSTEM:service=TransactionManager</depends>

  <classpath archives="
	 mm.mysql-2.0.4-bin.jar, 
	 jbosscx.sar"/>

  <!-- ==================================================================== -->
  <!-- JDBC - Initialize the databases                                      -->
  <!-- to ConnectionFactoryLoader                                           -->
  <!-- ==================================================================== -->

  <mbean code="org.jboss.resource.ConnectionFactoryLoader" 
	 name="DefaultDomain:service=ConnectionFactoryLoader,name=fooDS">
    <attribute name="ManagedConnectionFactoryProperties">ConnectionURL=jdbc:mysql://localhost/foo
      DriverClass=org.gjt.mm.mysql.Driver
      UserName=</attribute>
    <attribute name="JndiName">fooDS</attribute>
    <attribute name="TransactionManagerName">java:/TransactionManager</attribute>
    <attribute name="ResourceAdapterName">Minerva JDBC LocalTransaction ResourceAdapter</attribute>
    <attribute name="RARDeployerName">JCA:service=RARDeployer</attribute>
    <attribute name="ConnectionManagerFactoryName">MinervaSharedLocalCMFactory</attribute> 
    <attribute name="ConnectionManagerProperties">#
      #Wed Aug 15 16:17:29 EDT 2001
      InvalidateOnError=false
      BlockingTimeoutMillis=500000
      IdleTimeoutMillis=1800000
      MaxSize=10
      TimestampUsed=false
      IdleTimeoutEnabled=false
      CleanupIntervalMillis=120000
      MinSize=0
      GCMinIdleMillis=1200000
      GCEnabled=false
      MaxIdleTimeoutPercent=1.0
    </attribute>
    <attribute name="PrincipalMappingClass">
      org.jboss.resource.security.ManyToOnePrincipalMapping
    </attribute>
    <attribute name="PrincipalMappingProperties">UserName=</attribute>
  </mbean>

</server>

Reply via email to