The -service.xml type deployment of connection factories hasn't been
suported since 3.0.8. You should use the -ds.xml format.

Assuming you are using the old example from docs/examples/jca

  |   <!-- ==================================================================== -->
  |   <!-- ConnectionManager setup for CICS ECI Resource Adapter                -->
  |   <!-- Add cicseci.rar to the deploy folder                                 -->
  |   <!-- Configuration supplied by [EMAIL PROTECTED], tested with 4.0.2          -->
  |   <!-- ==================================================================== -->
  | 
  | <server>
  |   <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
  |     name="jboss.jca:service=LocalTxCM,name=cicsr9s">
  |     <attribute name="JndiName">ra/cicsr9s</attribute>
  |     <depends 
optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
  |     <depends>jboss.jca:service=RARDeployer</depends>
  | 
  |     <depends optional-attribute-name="ManagedConnectionPool">
  |       <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
  |       name="jboss.jca:service=LocalTxPool,name=cicsr9s">
  |       <depends optional-attribute-name="ManagedConnectionFactoryName">
  |         <mbean code="org.jboss.resource.connectionmanager.RARDeployment"
  |           name="jboss.jca:service=LocalTxPF,name=cicsr9s">
  |   
  |           <depends optional-attribute-name="OldRarDeployment">
  |           jboss.jca:service=RARDeployment,name=ECIResourceAdapter
  |           </depends>
  |   
  |   
  |           <attribute name="ManagedConnectionFactoryProperties">
  |                <properties>
  |                   <config-property>
  |                      <config-property-name>ConnectionURL</config-property-name>
  |                      <config-property-type>java.lang.String</config-property-type>
  |                      <config-property-value>tcp://arno</config-property-value>
  |                   </config-property>
  |                   <config-property>
  |                      <config-property-name>PortNumber</config-property-name>
  |                      <config-property-type>java.lang.String</config-property-type>
  |                      <config-property-value>2006</config-property-value>
  |                   </config-property>
  |                   <config-property>
  |                      <config-property-name>ServerName</config-property-name>
  |                      <config-property-type>java.lang.String</config-property-type>
  |                      <config-property-value>CICSR9S</config-property-value>
  |                   </config-property>
  |                   <config-property>
  |                      <config-property-name>UserName</config-property-name>
  |                      <config-property-type>java.lang.String</config-property-type>
  |                      <config-property-value>CICSUSER</config-property-value>
  |                   </config-property>
  |                </properties>
  |           </attribute>
  |   
  |         </mbean>
  |       </depends>
  |       <attribute name="MinSize">0</attribute>
  |       <attribute name="MaxSize">50</attribute>
  |       <attribute name="BlockingTimeoutMillis">5000</attribute>
  |       <attribute name="IdleTimeoutMinutes">1</attribute>
  |         <!-- sql to call when connection is created
  |         <new-connection-sql>some arbitrary sql</new-connection-sql>
  |         -->
  | 
  |         <!-- sql to call on an existing pooled connection when it is obtained from 
pool 
  |         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
  |         -->
  | 
  |       <attribute name="Criteria">ByContainer</attribute>
  |       </mbean>
  |     </depends>
  |     <depends optional-attribute-name="CachedConnectionManager">
  |     jboss.jca:service=CachedConnectionManager
  |     </depends>
  |     <depends optional-attribute-name="JaasSecurityManagerService">
  |     jboss.security:service=JaasSecurityManager
  |     </depends>
  |   </mbean>
  | </server>
  | 

In 3.2.x this would be:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <connection-factories>
  |   <tx-connection-factory>
  |     <jndi-name>ra/cicsr9s</jndi-name>
  |     <adapter-display-name>ECIResourceAdapter</adapter-display-name>
  |     <config-property name="ConnectionURL" 
type="java.lang.String">tcp://arno</config-property>
  |     <config-property name="PortNumber" 
type="java.lang.String">2006</config-property>
  |     <config-property name="ServerName" 
type="java.lang.String">CICSR9S</config-property>
  |     <config-property name="UserName" 
type="java.lang.String">CICSUSER</config-property>
  |     <max-pool-size>50</max-pool-size>
  |   </tx-connection-factory>
  | 
  | </connection-factories>
  | 

In 4.0.x there is a slight change because multiple connections definitions
(connection factory classes) are allowed per resource adapter:

XXXXXXXXXX is the name of the rar deployment, e.g. cics9rs.rar?
YYYYYYYYYY is the name of the connection factory class from the ra.xml inside
the rar


  | <?xml version="1.0" encoding="UTF-8"?>
  | <connection-factories>
  |   <tx-connection-factory>
  |     <jndi-name>ra/cicsr9s</jndi-name>
  |     <rar-name>XXXXXXXXXX</rar-name>
  |     <connection-definition>YYYYYYYY</connection-definition>
  |     <config-property name="ConnectionURL" 
type="java.lang.String">tcp://arno</config-property>
  |     <config-property name="PortNumber" 
type="java.lang.String">2006</config-property>
  |     <config-property name="ServerName" 
type="java.lang.String">CICSR9S</config-property>
  |     <config-property name="UserName" 
type="java.lang.String">CICSUSER</config-property>
  |     <max-pool-size>50</max-pool-size>
  |   </tx-connection-factory>
  | 
  | </connection-factories>
  | 

See jms-ds.xml or 
http://www.jboss.org/wiki/Wiki.jsp?page=ConfigConnectionFactory
for more info.

Once you have a working version, please post it back so I can add it to
docs/examples/jca for others to use.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to