[jboss-user] [Datasource Configuration] - Re: persistence.xml does not deploy

ora7 do-not-reply at jboss.com
Fri Jun 1 15:54:44 EDT 2012


ora7 [https://community.jboss.org/people/ora7] created the discussion

"Re: persistence.xml does not deploy"

To view the discussion, visit: https://community.jboss.org/message/739421#739421

--------------------------------------------------------------
With the annotation the <local-tx-database/> tag works too.

<?xml version="1.0" encoding="UTF-8"?>
<datasources>

  <!--FBManager can be used to create and drop databases.  
    Drop is especially useful during testing, since it 
    assures a clean start next time. -->
  <mbean code="org.firebirdsql.management.FBManager" name="jboss.jca:service=FirebirdManager">
    <attribute name="FileName">${jboss.server.data.dir}${/}firebird${/}physics.fdb</attribute>
    <attribute name="UserName">einstein</attribute>
    <attribute name="Password">relativity</attribute>
    <attribute name="CreateOnStart">true</attribute>
    <attribute name="DropOnStop">false</attribute>
  </mbean>
  <local-tx-datasource>
    <jndi-name>PhysicsDS</jndi-name>
    <connection-url>jdbc:firebirdsql:localhost/3050:${jboss.server.data.dir}${/}firebird${/}physics.fdb</connection-
url>
    <driver-class>org.firebirdsql.jdbc.FBDriver</driver-class>
    <user-name>einstein</user-name>
    <password>relativity</password>    
    <min-pool-size>5</min-pool-size>
    <max-pool-size>20</max-pool-size>    
      <track-statements></track-statements>
      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
      <metadata>
         <type-mapping>Firebird</type-mapping>
      </metadata>
  </local-tx-datasource>
</datasources>


--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/739421#739421]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120601/a16f2286/attachment.html 


More information about the jboss-user mailing list