::
Ciao, sto usando wildfly ed ho configurato il seguente datasouce:
<datasource jta="true" jndi-name="java:jboss/datasources/MyDS" pool-name="MyDS" enabled="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/gest</connection-url>
<driver>mysql</driver>
<security>
<user-name>admin</user-name>
<password>1234</password>
</security>
</datasource>
quando cerco di invocarlo da codice con:
@Resource(name="java:jboss/datasources/MyDS")
private DataSource ds;
ottengo questa eccezione:
Caused by: java.lang.IllegalArgumentException: WFLYEE0047: Incompatible conflicting binding at java:jboss/datasources/MyDS source: lookup (java:comp/DefaultDataSource)
qualche consiglio?
grazie