JBoss Community

Re: Conexión MySQL y JBoss 7.1.1

created by Jose Moreno in Datasource Configuration - View the full discussion

I have seen the web that you say and I have copied it, but I have the same problem...

 

I have questions:

 

     1. What do I do in the META-INF directory? Where is it?

     2. Is neccesary that I declare the datasource again in the file domain.xml?

 

My module.xml is in the directory: C:\Documents and Settings\Administrador\Mis documentos\jboss-as-7.1.1.Final\modules\com\mysql\main

It is together the MySQL connector and his .INDEX.

 

standalone.xml

<datasource jndi-name="java:jboss/datasources/MySqlDS" pool-name="MySqlDS">

                    <connection-url>jdbc:mysql://localhost:3306/login</connection-url>

                    <driver>com.mysql</driver>

                    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>

                    <pool>

                        <min-pool-size>10</min-pool-size>

                        <max-pool-size>100</max-pool-size>

                        <prefill>true</prefill>

                    </pool>

                    <security>

                        <user-name>root</user-name>

                    </security>

                    <statement>

                        <prepared-statement-cache-size>32</prepared-statement-cache-size>

                        <share-prepared-statements>true</share-prepared-statements>

                    </statement>

                </datasource>

 

and my module.xml is the same that the module.xml of your web.

 

My console says:

JBAS014775:    New missing/unsatisfied dependencies:

      service jboss.jdbc-driver.com_mysql (missing) dependents: [service jboss.data-source.java:jboss/datasources/MySqlDS]

 

But when I stop it says:

JBAS014776:    Newly corrected services:

      service jboss.jdbc-driver.com_mysql (new available)

      service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication (new available)

 

Sorry for my poor English level.

 

Thanks,

yours sincerely.

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community