"wtff" wrote : ah, ok. my mistake. them abbrevations...

First of all let me thank you for so detailed reply.

Now, I'm using Hibernate as my persistence layer. I have my business methods in 
classes.
I want to have a service layer with Session Beans to execute those business methods 
and have CMT control my transactions.
I've deployed Hibernate as a SAR with the following jboss-service.xml:


  | <server>
  | <mbean code="net.sf.hibernate.jmx.HibernateService" 
name="jboss.jca:service=ArsolHibernateFactory,
  |                             name=ArsolHibernateFactory">
  |     <depends>jboss.jca:service=RARDeployer</depends>
  |     <depends>jboss.jca:service=LocalTxCM,name=arsolDS</depends>    
  |     <!-- Make it deploy ONLY after DataSource had been started -->
  |     <attribute name="MapResources">
  |       mapping/ArmazemMistura.hbm.xml,
  |       mapping/ArmazemMp.hbm.xml,
  |       mapping/ArmazemPa.hbm.xml,
  |       mapping/ArmazemPeca.hbm.xml
  |     </attribute>
  |     <attribute name="JndiName">java:/hibernate/ArsolHibernateFactory</attribute>
  |     <attribute name="Datasource">java:/arsolDS</attribute>
  |     <attribute 
name="Dialect">net.sf.hibernate.dialect.PostgreSQLDialect</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">false</attribute>
  |     <attribute name="UserTransactionName">UserTransaction</attribute>
  | </mbean>
  | </server>
  | 

Here's my datasource:


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>arsolDS</jndi-name>
  |     <connection-url>jdbc:postgresql://localhost:5432/devdb</connection-url>
  |     <driver-class>org.postgresql.Driver</driver-class>
  |     <user-name>user</user-name>
  |     <password>pwd</password>
  |   </local-tx-datasource>
  | 
  | </datasources>
  | 

Apparently, everithing gets deployed with no errors.
The SAR above is working for a trasaction-per-method style. Now I want to use CMT with 
Session Beans.

Any ideas please?

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

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


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to