This content has been marked as final.
Show 4 replies
-
1. Re: How to deploy a connector in an ear file
schlaufuchs Jul 10, 2006 8:07 AM (in response to pegasenz)Did you edit the application.xml in your ear file?
<module> <connector>JcaAdapter.rar</connector> </module>
-
2. Re: How to deploy a connector in an ear file
pegasenz Jul 10, 2006 9:55 AM (in response to pegasenz)I didt it. In the META-INF directory i have the 2 following descriptors :
application.xml :<?xml version="1.0" encoding="UTF-8"?> <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"> <display-name>JcaLaucher_EAR</display-name> <module id="ConnectorModule_1152537779516"> <connector>JcaAdapter.rar</connector> </module> <module id="EjbModule_1152537779546"> <ejb>JcaMDBLauncher.jar</ejb> </module> </application>
JcaAdapter-ds.xml<!DOCTYPE connection-factories PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> <!-- AdocAdpater JBoss configuration File --> <connection-factories> <no-tx-connection-factory> <jndi-name>AdocAdapter</jndi-name> <rar-name>JcaAdapter.rar</rar-name> <connection-definition> javax.resource.cci.ConnectionFactory </connection-definition> </no-tx-connection-factory> </connection-factories>
Everything works well if deploy outside an ear.
Should not be a kind of specific jboss descriptor for an ear file ? -
3. Re: How to deploy a connector in an ear file
dansalt Jul 11, 2006 5:24 AM (in response to pegasenz)Hi,
Yes, it is possible. I deploy one EAR file containing everything.
Put the DS file in the root of the RAR file.
Then in the DS file, you need to use specify the RAR file as [EAR_FILE]#[RAR_FILE].<rar-name>JcaAdapter.rar</rar-name>
with<rar-name>JcaLaucher_EAR.ear#JcaAdapter.rar</rar-name>
(assuming your EAR file is called JcaLaucher_EAR.ear, edit if not)
Hope that helps,
Cheers,
Dan -
4. Re: How to deploy a connector in an ear file
pegasenz Jul 12, 2006 4:54 AM (in response to pegasenz)Thanks a lot. It works.