Hi
I'm not sure if this question is a bit heretic as it's about a Jboss 4.2.2
/ JPA Problem.
I'm evaluating a integration of JPA into a EJB 2.1 world with stateless
session beans as controls and boundaries and JPA for the persistence.
This shouldn't be very strange:) For this I'm using the Jboss 4.2.2 and
toplink 2.0-58g. The funny thing is that toplink tries to lookup the
database by CompositeName which leads to an
?gjavax.naming.InvalidNameException: Not a compound name”
exception. In line 125 of the
?goracle.toplink.essentials.jndi.JNDIConnector”
I found the following comment:
?g//bug#2761428 and 4405389 JBoss needs to look up datasources based on a
string not a composite or compound name”
Now I got two questions.
From which bug database are the numbers?
What can I do to get out of this problem?
My persistence.xml is something linke this:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="
http://java.sun.com/xml/ns/persistence"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="TestEJB" transaction-type="JTA">
<jta-data-source>java:comp/env/jdbc/DataSource</jta-data-source>
</persistence-unit>
</persistence>
Can somebody help me?
regards
Johannes
P Please consider the environmental impact of needlessly printing this
e-mail.
--
RSC Commercial Services OHG
Wanheimer Strasse 70, D-40468 Duesseldorf
Registergericht: Duesseldorf, HRA 12655