[JBoss-user] [Persistence & CMP/JBoss] - JTA Transaction doesn't rollback Hibernate sessions

2004-11-16 Thread shanika
Hibernate version: V2.1.6 

Name and version of the database : Oracle 8 

JBoss : V4.0.0 

I have configured Hibernate in JBoss through .har deployer and get the session 
by the JNDI to the session factory. All working fine except for Transactions. 

I use JTA and have given my Transaction demarcation in the deployment 
descripter of my stateless session bean as : 


  |  
  | 
  |Request 
  |Remote 
  |executeProcess  
  |  
  | Required 
  |  
  |  


Ideally i need the container to rolback the transaction if anything goes wrong 
withing the method "executeProcess", which does not happen currently in my 
application. In that method, i call session.save method several times, but if 
one save operation fails, it doesn't rollback all the other save operations, 
which is want i'm trying to acieve. 

I understand that when the : 

  | session = HibernateContext.getSession("java:/hibernate/SessionFactory"); 
  | session.save(dao); 
  | 

- gets called several times withing the same transaction, the sessions used get 
bound to the current context which means to the current JTA transaction. Then 
why won't the transaction gets rolled back with all the save commands that took 
place? 

Am i missing something in my JBoss JTA configurations? If so can anyone give me 
some hints on configuring JTA on JBoss. 

Thanks alot for considering my issue.

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

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


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JMS ConnectionFactory Configuration

2004-10-06 Thread shanika
I have a session bean that writes a message into a Queue (jms/Queue).  I have done the 
following config. settings but getting an exception (name not bound exception) when 
try to acquire a connection from connectionfactory. 
Pls let me know if i'm doing anything wrong in the way i have configured the 
connectionfactory - JNDI in my session bean is "jms/QueueConnectionFactory". JBOSS 
version is 4.0.0.

in jboss.xml: (not too sure of the  tag)


 Request
 RequestBean
 RequestLocal

   
jms/QueueConnectionFactory
jms/QueueConnectionFactory
   
   false
   false
   -1
   0
 
  


 jms/QueueConnectionFactory
   jms/QueueConnectionFactory
   

***

in ejb-jar.xml:


jms/QueueConnectionFactory
javax.jms.QueueConnectionFactory
Container
Shareable




in jms-ds.xml :
   
  
JmsXA

jms-ra.rar

org.jboss.resource.adapter.jms.JmsConnectionFactory
javax.jms.Topic
java:/DefaultJMSProvider
20
JmsXARealm
  

  
jms/QueueConnectionFactory

jms-ra.rar

org.jboss.resource.adapter.jms.JmsConnectionFactory
javax.jms.Queue
java:/DefaultJMSProvider
  


**
in jbossmq-destinations-service.xml  jms/Queue is set
 




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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Specifying an Oracle database schema for CMP beans

2004-04-13 Thread shanika
Hi, I'm sort of new to EJBs. I am working with CMP beans that uses JBOSS 4.0 as the 
application server and Oracle8i as the database. I am able to create and deploy a 
simple CMP bean that creates a table in the Oracle databse. In my Oracle-ds.xml i have 
given the database configuration including the user /password. 
 My problem is that when the bean gets deployed, by default the table gets created in 
a schema named the same as the user name specified in my Oracle-ds.xml. 
 How can I get my tables created in a different schema in the Oracle db other than in 
the "username" schema? Please help.

thanks in advance
wkst

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user