i checked the faq's, dtd, google and took a jboss advanced training but 
couldn't find an answer.  maybe i overlooked something and fell asleep at the 
wrong training module...

i want to make the hypersonic database available for tcp connections like this:

(deploy/hsqldb-ds.xml)
<datasources>
  | 
  |    <!-- hypersonic database  -->
  |    <mbean code="org.jboss.jdbc.HypersonicDatabase" 
  |      name="jboss:service=Hypersonic">
  |      <attribute name="Port">1701</attribute>
  |      <attribute name="Silent">true</attribute>
  |      <attribute name="Database">default</attribute>
  |      <attribute name="Trace">false</attribute>
  |      <attribute name="No_system_exit">true</attribute>
  |    </mbean>
  | 
  |    <!-- datasource on top of the hypersonic database -->
  |    <local-tx-datasource>
  |       <jndi-name>DefaultDS</jndi-name>
  |       <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
  |       <driver-class>org.hsqldb.jdbcDriver</driver-class>
  |       <user-name>sa</user-name>
  |       <password></password>
  |       <min-pool-size>5</min-pool-size>
  |       <max-pool-size>20</max-pool-size>
  |       <idle-timeout-minutes>0</idle-timeout-minutes>
  |       <track-statements/>
  |       <security-domain>HsqlDbRealm</security-domain>
  |       <metadata><type-mapping>Hypersonic SQL</type-mapping></metadata>
  |       <depends>jboss:service=Hypersonic</depends>
  |    </local-tx-datasource>
  | 
  | </datasources>

then i want to define a dependency from my new jbpm MBean service on the 
datasource like this:

(deploy/jbpm.sar/META-INF/jboss-server.xml)
<server>
  |   <mbean code="org.jbpm.jmx.JbpmService" 
  |          name="jboss.jbpm:name=DefaultJbpm,service=JbpmService"
  |          description="Default jBPM Service">
  |     <depends>jboss.jca:name=DefaultDS,service=LocalTxCM</depends>
  |     <attribute name="JndiName">java:/jbpm/JbpmSessionFactory</attribute>
  |   </mbean>
  | </server>

still my service is started before the datasource is bound to JNDI.

     [exec] 15:57:16,484 ERROR [URLDeploymentScanner] Incomplete Deployment 
listing:
  |      [exec] --- MBeans waiting for other MBeans ---
  |      [exec] ObjectName: jboss.jbpm:name=DefaultJbpm,service=JbpmService
  |      [exec] State: FAILED
  |      [exec] Reason: org.hibernate.HibernateException: Could not find 
datasource
  |      [exec] I Depend On:
  |      [exec] jboss.jca:name=DefaultDS,service=LocalTxCM
  |      [exec] --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  |      [exec] ObjectName: jboss.jbpm:name=DefaultJbpm,service=JbpmService
  |      [exec] State: FAILED
  |      [exec] Reason: org.hibernate.HibernateException: Could not find 
datasource
  |      [exec] I Depend On:
  |      [exec] jboss.jca:name=DefaultDS,service=LocalTxCM
  |      [exec] 15:57:16,750 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080

any pointer is appreciated. 

i tried to learn about the optional-attribute-name attribute of the depends 
element from the dtd, but don't get it yet.  is that my problem ?  if yes, is 
there another description somewhere ?

regards, tom.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879559#3879559

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879559


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to