Link to home
Start Free TrialLog in
Avatar of prsubject
prsubjectFlag for India

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
Avatar of prsubject
prsubject
Flag of India image

ASKER

I dont find a default directory in conf.
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
Avatar of Hegemon
Hegemon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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>

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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</datasource>      <!-- optional since 4.0 <datasource-mapping>Hypersonic SQL</datasource-mapping> -->    <datasource-mapping>mysql</datasource-mapping>
DEPLOYMENTS IN ERROR:
  Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **
  Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **
he has given the solution