Hi Sara,

I currently have juddi deployed to jboss as well... my deploy/*-ds.xml
file (I'm using postgres) begins with:
<datasources>
  <local-tx-datasource>
    <jndi-name>JuddiDS</jndi-name>

and then in the juddiv3.war/WEB-INF/classes/META-INF/persistence.xml
file, I have:
  <persistence-unit name="juddiDatabase"
transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <non-jta-data-source>java:JuddiDS</non-jta-data-source>


I did have
<jta-data-source>java:comp/env/jdbc/JuddiDS</jta-data-source> but was
advised to change it to non-jta-data-source (it worked but was still
throwing a warning since I was using RESOURCE_LOCAL.

This line remains the same in the juddiv3.properties:
juddi.persistenceunit.name=juddiDatabase


Hope this helps.  I've only done this with jboss-eap, juddiv3 and
postgres, but hopefully it is similar between different DB
configurations. 

Natalie







On Thu, 2009-12-10 at 17:14 -0800, SARA1232007 wrote: 

> Hi,
> 
> I am trying to deploy juddi to jboss. I can only succeed to set the  jboss
> datasource with name "java:jdbc/juddiDB" while "java:comp/env/jdbc/juddiDB"
> is which juddi required. I have tried to modify the name of datasource in
> juddi.properties to "java:jdbc/juddiDB" , but when I started the jboss
> server, juddi is still looking for datasource "java:comp/env/jdbc/juddiDB". 
> My question is what configuration file should I modify to set
> "java:jdbc/juddiDB" to be the datasource which juddi needs?
> 
> Thanks.
> 
> Sara

Reply via email to