[jboss-user] [JCA/JBoss] - Re: How to configure two ManagedFactorys in ra.xml of one re

liujw2001 do-not-reply at jboss.com
Mon Oct 22 07:02:28 EDT 2007


Hello:
  I now answer this question by myself. If someone who meets the same problem, I hope it can help you. 

  | <?xml version="1.0" encoding="UTF-8"?>
  | <connector xmlns="http://java.sun.com/xml/ns/j2ee"
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |         version="1.5"
  |         >
  | <!-- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"-->
  |     <display-name>FileRA</display-name>
  |     <vendor-name>Vendor Name</vendor-name>
  |     <eis-type>EIS Type</eis-type>
  |     <resourceadapter-version>1.5</resourceadapter-version>
  |     
  |   <resourceadapter>
  |   <resourceadapter-class/>
  |   <outbound-resourceadapter>
  |   	<connection-definition>
  |     <managedconnectionfactory-class>com.jca.FileManagedConnectionFactory</managedconnectionfactory-class>
  |     <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
  |     <connectionfactory-impl-class>com.jca.FileConnectionFactoryImpl</connectionfactory-impl-class>
  |     <connection-interface>com.jca.FileConnection</connection-interface>
  |     <connection-impl-class>com.jca.FileConnectionImpl</connection-impl-class>   
  |     <config-property>
  |       <config-property-name>Server</config-property-name>
  |       <config-property-type>java.lang.String</config-property-type>
  |       <config-property-value>localhost</config-property-value>
  |     </config-property>
  |     <config-property>
  |       <config-property-name>Port</config-property-name>
  |       <config-property-type>java.lang.Integer</config-property-type>
  |       <config-property-value>2008</config-property-value>
  |     </config-property>
  |     <authentication-mechanism>
  |     	<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
  |     	<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
  |     </authentication-mechanism>
  | 	</connection-definition>
  | 	
  | 	<connection-definition>
  |      <managedconnectionfactory-class>com.raredllra.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
  |      <connectionfactory-interface>com.ratedllra.ConnectionFactory</connectionfactory-interface>
  |      <connectionfactory-impl-class>com.ratedllra.ConnectionFactoryImpl</connectionfactory-impl-class>
  |      <connection-interface>javax.resource.cci.Connection</connection-interface>
  |      <connection-impl-class>com.ratedllra.ConnectionImpl</connection-impl-class>
  |      </connection-definition>
  |      
  |      <transaction-support>LocalTransaction</transaction-support>
  |      <reauthentication-support>false</reauthentication-support>    
  |     </outbound-resourceadapter>
  |     </resourceadapter>
  |     
  | </connector>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097403#4097403

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097403



More information about the jboss-user mailing list