Migration jboss-ra.xml to weblogic-ra.xml

Migration jboss-ra.xml to weblogic-ra.xml - Java - Programmation

Marsh Posté le 16-06-2009 à 10:14:49    

Bonjour,
J'ai "hérité" (hélas) d'une appli tournant sur JBoss que je dois faire tourner sous WebLogic. Je dis hélas car je ne connais aucun de ces deux serveurs et je découvre aussi les JCA...
Les premiers éléments que j'ai migrés se passent plutôt bien mais la je dois migrer le jboss-ra.xml vers weblo ... et là c'est le drame  :cry:  
 
Voila le jonas-ra.xml

Code :
  1. <?xml version="1.0"?><jonas-connector xmlns="http://www.objectweb.org/jonas/ns"
  2.                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.                  xsi:schemaLocation="http://www.objectweb.org/jonas/ns
  4.                  http://www.objectweb.org/jonas/ns/ [...] &#034;&gt;
  5.   <rarlink></rarlink>
  6.   <native-lib></native-lib>
  7.   <log-enabled>false</log-enabled>
  8.   <log-topic></log-topic>
  9.   <pool-params>
  10.     <pool-init>0</pool-init>
  11.     <pool-min>0</pool-min>
  12.     <pool-max>100</pool-max>
  13.     <pool-max-age-minutes>1</pool-max-age-minutes>
  14.     <pstmt-max>-1</pstmt-max>
  15.     <pool-max-opentime>0</pool-max-opentime>
  16.     <pool-max-waiters>0</pool-max-waiters>
  17.     <pool-max-waittime>0</pool-max-waittime>
  18.     <pool-sampling-period>30</pool-sampling-period>
  19.   </pool-params>
  20.   <jdbc-conn-params>
  21.     <jdbc-check-level>0</jdbc-check-level>
  22.   </jdbc-conn-params>
  23.   <jonas-config-property>
  24.     <jonas-config-property-name>adapterConfigDirSysProperty</jonas-config-property-name>
  25.     <jonas-config-property-value>jonas.conf</jonas-config-property-value>
  26.   </jonas-config-property>
  27.   <jonas-config-property>
  28.     <jonas-config-property-name>adapterConfigFileName</jonas-config-property-name>
  29.     <jonas-config-property-value></jonas-config-property-value>
  30.   </jonas-config-property> 
  31.   <jonas-connection-definition>
  32.     <description>com.deve.tef.ressource.spi.ManagedProviderConnectionFactory</description>
  33.     <jndi-name>ISADMIN</jndi-name>             
  34.   </jonas-connection-definition>
  35.   <jonas-connection-definition>
  36.     <description>com.deve.tef.ressource.spi.ManagedQueueConnectionFactory</description>
  37.     <jndi-name>EXTQCF</jndi-name>   
  38.     <jonas-config-property>
  39.       <jonas-config-property-name>raLinkName</jonas-config-property-name>
  40.       <jonas-config-property-value>EXTQCF</jonas-config-property-value>
  41.     </jonas-config-property>
  42.   </jonas-connection-definition>
  43.   <jonas-connection-definition>
  44.     <description>com.deve.tef.ressource.spi.ManagedTopicConnectionFactory</description>
  45.     <jndi-name>EXTTCF</jndi-name> 
  46.     <jonas-config-property>
  47.       <jonas-config-property-name>raLinkName</jonas-config-property-name>
  48.       <jonas-config-property-value>EXTTCF</jonas-config-property-value>
  49.     </jonas-config-property>     
  50.   </jonas-connection-definition>
  51.   <jonas-connection-definition>
  52.     <description>com.deve.tef.ressource.spi.ManagedConnectionFactory</description>
  53.     <jndi-name>EXTGCF</jndi-name> 
  54.     <jonas-config-property>
  55.       <jonas-config-property-name>raLinkName</jonas-config-property-name>
  56.       <jonas-config-property-value>EXTGCF</jonas-config-property-value>
  57.     </jonas-config-property>     
  58.   </jonas-connection-definition>
  59.   <jonas-activationspec>
  60.     <description>javax.jms.MessageListener</description>
  61.     <jndi-name>tefActivationSpec</jndi-name>
  62.   </jonas-activationspec>
  63. </jonas-connector>


 
et le ra.xml

Code :
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <connector
  3.   xmlns="http://java.sun.com/xml/ns/j2ee"
  4.   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  6.   http://java.sun.com/xml/ns/j2ee/co [...] .xsd&#034;
  7.   version="1.5">
  8.    <vendor-name>Deve</vendor-name>
  9.    <eis-type>JMSRA</eis-type>
  10.    <resourceadapter-version>1.0</resourceadapter-version>
  11.    <resourceadapter>
  12.       <resourceadapter-class>com.deve.tef.ressource.jca.TEFResourceAdapter</resourceadapter-class>
  13.       <config-property>
  14.        <config-property-name>adapterConfigDirSysProperty</config-property-name>
  15.        <config-property-type>java.lang.String</config-property-type>     
  16.       </config-property>   
  17.       <config-property>
  18.        <config-property-name>adapterConfigFileName</config-property-name>
  19.        <config-property-type>java.lang.String</config-property-type> 
  20.        <config-property-value>TEFAdapterConfig.xml</config-property-value> 
  21.       </config-property>   
  22.       <outbound-resourceadapter>
  23.         <connection-definition>
  24.             <managedconnectionfactory-class>com.deve.tef.ressource.spi.ManagedProviderConnectionFactory</managedconnectionfactory-class>             
  25.             <connectionfactory-interface>com.deve.tef.ressource.factory.ProviderConnectionFactoryInterface</connectionfactory-interface>
  26.             <connectionfactory-impl-class>com.deve.tef.ressource.factory.PoviderConnexionfactory</connectionfactory-impl-class>
  27.             <connection-interface>com.deve.tef.ressource.connexion.ProviderConnexionInterface</connection-interface>
  28.             <connection-impl-class>com.deve.tef.ressource.connexion.DefaultProviderConnexion</connection-impl-class>
  29.          </connection-definition>
  30.          <connection-definition>
  31.             <managedconnectionfactory-class>com.deve.tef.ressource.spi.ManagedQueueConnectionFactory</managedconnectionfactory-class>                     
  32.              <config-property>
  33.               <config-property-name>raLinkName</config-property-name>
  34.               <config-property-type>java.lang.String</config-property-type>
  35.               <config-property-value>EXTQCF</config-property-value>
  36.             </config-property>
  37.             <connectionfactory-interface>javax.jms.QueueConnectionFactory</connectionfactory-interface>
  38.             <connectionfactory-impl-class>com.deve.tef.ressource.host.ExternalJMSQueueConnectionFactory</connectionfactory-impl-class>
  39.             <connection-interface>javax.jms.QueueConnection</connection-interface>
  40.             <connection-impl-class>com.deve.tef.ressource.host.ExternalJMSQueueConnection</connection-impl-class>
  41.          </connection-definition>
  42.          <connection-definition>
  43.             <managedconnectionfactory-class>com.deve.tef.ressource.spi.ManagedTopicConnectionFactory</managedconnectionfactory-class>                     
  44.              <config-property>
  45.               <config-property-name>raLinkName</config-property-name>
  46.               <config-property-type>java.lang.String</config-property-type>
  47.               <config-property-value>EXTTCF</config-property-value>           
  48.             </config-property>
  49.             <connectionfactory-interface>javax.jms.TopicConnectionFactory</connectionfactory-interface>
  50.             <connectionfactory-impl-class>com.deve.tef.ressource.host.ExternalJMSTopicConnectionFactory</connectionfactory-impl-class>
  51.             <connection-interface>javax.jms.TopicConnection</connection-interface>
  52.             <connection-impl-class>com.deve.tef.ressource.host.ExternalJMSTopicConnection</connection-impl-class>
  53.          </connection-definition>
  54.          <connection-definition>
  55.             <managedconnectionfactory-class>com.deve.tef.ressource.spi.ManagedConnectionFactory</managedconnectionfactory-class>                     
  56.              <config-property>
  57.               <config-property-name>raLinkName</config-property-name>
  58.               <config-property-type>java.lang.String</config-property-type>
  59.               <config-property-value>EXTGCF</config-property-value>           
  60.             </config-property>
  61.             <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
  62.             <connectionfactory-impl-class>com.deve.tef.ressource.host.ExternalJMSConnectionFactory</connectionfactory-impl-class>
  63.             <connection-interface>javax.jms.Connection</connection-interface>
  64.             <connection-impl-class>com.deve.tef.ressource.host.ExternalJMSConnection</connection-impl-class>
  65.          </connection-definition>
  66.          <transaction-support>LocalTransaction</transaction-support>
  67.          <reauthentication-support>false</reauthentication-support>
  68.       </outbound-resourceadapter>     
  69.       <inbound-resourceadapter>
  70.          <messageadapter>
  71.             <messagelistener>
  72.                <messagelistener-type>javax.jms.MessageListener</messagelistener-type>
  73.                <activationspec>
  74.                   <activationspec-class>com.deve.tef.ressource.jca.JonasJMSActivationSpec</activationspec-class>
  75.                   <required-config-property>
  76.                      <config-property-name>destinationType</config-property-name>
  77.                   </required-config-property>
  78.                   <required-config-property>
  79.                      <config-property-name>destination</config-property-name>
  80.                   </required-config-property>
  81.                </activationspec>
  82.             </messagelistener>
  83.          </messageadapter>
  84.       </inbound-resourceadapter>     
  85.    </resourceadapter>
  86. </connector>


 
Si quelqu'un a déjà fait ce genre de migration, je suis preneur de tout RETEX, aide ...
Je n'y crois pas trop mais au cas ou quelqu'un connait une moulinette de transco je prends aussi.
Par avance merci beaucoup pour votre aide.
 

Reply

Marsh Posté le 16-06-2009 à 10:14:49   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed