[jboss-user] @DataSource not registed on the correct JNDI locaton
fernando at lozano.eti.br
fernando at lozano.eti.br
Tue Oct 11 18:32:16 EDT 2011
Hi there,
According to my understanding of
http://javahowto.blogspot.com/2010/04/datasourcedefinition-examples-in-javaee.html
and
http://java.sun.com/javaee/6/docs/api/javax/annotation/sql/DataSourceDefinition.html
The following annotation, which is part of a no-interface SLSB defined
inside a test.war package:
@DataSourceDefinition(
name="java:global/ClientesDS",
className="org.hsqldb.jdbcDriver",
url="jdbc:hsqldb:file:/tmp/data/cliente",
user="sa", password="")
Should register "java:global/ClientesDS" on the application server JNDI
three. But when I deploy under JBoss AS 6.1.0.Final, the DataSource is
registed as "java:internal/test/test/ClienteDAO/ClientesDS"
Am I wrong or is JBoss AS violating the spec?
[]s, Fernando Lozano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111011/98367ebe/attachment.html
More information about the jboss-user
mailing list