Here is a sample.

Have fun - Andy

----- Original Message ----- 
From: "Hunter Hillegas" <[EMAIL PROTECTED]>
To: "JBoss Dev" <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 10:18 AM
Subject: [JBoss-dev] Rabbit Hole with PostgreSQL


> I am starting to test my app on RH/3.0alpha so I need to get it running
> against Postgres 7.1. It looks like the config for datasources has
> changed/moved quite a bit.
> 
> What files do I need to generate and where do I need to put them to get
> Rabbit Hole running against PostgreSQL?
> 
> 
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
<?xml version="1.0" encoding="UTF-8"?>


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

<!-- $Id: foo-postgres-service.xml,v 1.0 2001/09/20 20:00:05 icoloma Exp $ -->

<server>

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

  <classpath archives="
	 jdbc7.0-1.2.jar, 
	 jbosscx.sar"/>

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

  <mbean code="org.jboss.resource.ConnectionFactoryLoader" 
	 name="DefaultDomain:service=ConnectionFactoryLoader,name=FooPostgresDS">
    <attribute name="ManagedConnectionFactoryProperties">ConnectionURL=jdbc:postgresql://192.168.0.4:5432/foo
  DriverClass=org.postgresql.Driver
  UserName=postgres
  Password=postgres</attribute>
    <attribute name="JndiName">FooPostgresDS</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