prsubject
asked on
where is jaws located in jboss
I am looking for standardjaws.xml or jaws.xml file. I looked in default/conf all the subfolders of conf. I am using jboss-6.0.0.M1 server. Could you please tell me where I am supposed to find them so I can configure jboss according to the article I found at http://onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html
ASKER
On different websites I am finding different process. Can anyone give me a standard process by which can configure mysql on jboss.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I created mysql-ds.xml in deploy folder. What should I do next. Could you guide me. The docs on jboss is appearing superficial, I mean not detailed. The file below is mysql-ds.xml
<datasources>
<local-tx-datasource>
<jndi-name>MSSQLDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/mysql</connection-url>
<driver-class>mysql</driver-class>
<user-name>root</user-name>
<password>helloworld</password>
<!-- 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>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>MS SQLSERVER2000</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am getting the following errors. I created a mysql-ds.xml file. changed mappings in standartjbosscmp-jdbc.xml as below and started the server.
<datasource>java:/MSSQLDS< /datasourc e> <!-- optional since 4.0 <datasource-mapping>Hypers onic SQL</datasource-mapping> --> <datasource-mapping>mysql< /datasourc e-mapping>
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=DefaultDS, service=Da taSourceBi nding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS, service=Da taSourceBi nding' **
Deployment "jboss.jdbc:datasource=Def aultDS,ser vice=metad ata" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=Def aultDS,ser vice=metad ata' **
<datasource>java:/MSSQLDS<
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=DefaultDS,
Deployment "jboss.jdbc:datasource=Def
ASKER
he has given the solution
ASKER