I would to deploy a module in Nukes and use Hibernate to manage persistence...
There is my xml file (jboss-service) of my module :

  | <server>
  |                 <mbean
  |     code="org.jboss.nukes.addons.modules.essaiHibernate.Module"
  |     name="nukes.modules:name=moduleHibernate"
  |     xmbean-dd=""
  |     xmbean-code="org.jboss.nukes.component.NukesMBean">
  |     <depends>nukes.modules:name=core</depends>
  |     <xmbean>
  |             <attribute name="Configuration">
  |                     <module>
  |                             <operation name="main" display-name="ModuleHibernate" 
description="Premier module hibernate" image="" hint=""/>
  |                     </module>
  |             </attribute>
  |     </xmbean>
  |     </mbean>
  | </server>
  | 
However, in the Hibernate site (http://www.hibernate.org) they say that 
jboss-service.xml must be like this to integrate Hibernate in JBoss :

  | <server>
  | <mbean code="net.sf.hibernate.jmx.HibernateService" 
name="jboss.jca:service=HibernateFactory, name=HibernateFactory">
  |     <depends>jboss.jca:service=RARDeployer</depends>
  |     <depends>jboss.jca:service=LocalTxCM,name=NukesDS</depends>
  |     <!-- Make it deploy ONLY after DataSource had been started -->
  |     <attribute name="MapResources">mappings/Style.hbm.xml</attribute>
  |     <attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
  |     <attribute name="Datasource">java:/NukesDS</attribute>
  |     <attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
  |     <attribute 
name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
  |     <attribute 
name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
  |     <attribute name="UseOuterJoin">false</attribute>
  |     <attribute name="ShowSql">true</attribute>
  |     <attribute name="UserTransactionName">UserTransaction</attribute>
  | </mbean>
  | </server>
  | 
What I have to do to deploy my module using Hibernate?

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

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


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to