-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate 2 working on WebLogic 8.1 like a service (MBean).
PostPosted: Mon Dec 27, 2004 6:05 pm 
Newbie

Joined: Mon Dec 27, 2004 5:57 pm
Posts: 2
Hi my name is Julio Helden and i am a brazilian guy. I would like to configure the hibernate like a service in Weblogic.
In JBoss, i create a file named JBoss-service.xml and i put the following text in it:

<!-- SESSION FACTORY : Brasil -->
<mbean code="net.sf.hibernate.jmx.HibernateService"
name="net:service=HibernateFactory_BR,name=HibernateFact ory_BR">

<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=BCV_BRASIL_DS</depends>
<!-- JDNI -->
<attribute name="JndiName">java:/hibernate/HibernateFactory_BR</attribute>

<attribute name="MapResources">
br/com/netservicos/core/bean/rh/PessoaBean.hbm.xml
</attribute>

<attribute name="Datasource">java:/BCV_BRASIL_DS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.OracleDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">
net.sf.hibernate.transaction.JBossTransactionManagerLookup
</attribute>

<attribute name="CacheProvider">net.sf.hibernate.cache.HashtableCacheProvider</attribute>

<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">java:/UserTransaction</attribute>
</mbean>

This works fine in JBoss. When the server starts up it activates the Hibernate like a service.
Do you know how can i do it in Weblogic ?

My best regards and sorry for my english.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 9:18 am 
Newbie

Joined: Mon Dec 27, 2004 5:57 pm
Posts: 2
Please anyone can help me about that ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.