-->
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.  [ 4 posts ] 
Author Message
 Post subject: Problem with Websphere 5.1
PostPosted: Wed Oct 06, 2004 3:31 am 
Newbie

Joined: Sun Oct 03, 2004 9:00 am
Posts: 7
Following is the code iam executing from a stateless session bean in Websphere 5.1:

Session s = Singleton.getInstance().getSessionFactory().openSession();
Dept d = new Dept();
d.setName("IT");
System.out.println("Dept ID:" + d.getId());
s.save(d);
System.out.println("Dept ID:" + d.getId());
s.close();

This method is running under CMT but after completion of method execution, the row is not inserted into Database but sequence is get forwarded.

Following is the excerpt from hibernet.cfg.xml:

<!-- Data Source -->
<property name="connection.datasource">jdbc/hrds</property>

<!-- Database Settings -->
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">true</property>
<!--
<property name="use_outer_join">true</property>
-->

<!-- Transaction API -->
<property name="transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory
</property>
<property name="transaction.manager_lookup_class">
net.sf.hibernate.transaction.WebSphereTransactionManagerLookup
</property>


Thanx
Muhammad Aamir


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 5:20 am 
Senior
Senior

Joined: Tue Aug 03, 2004 2:11 pm
Posts: 142
Location: Somerset
Turn on JDBC trace and hibernate debugging as a first line of attack

_________________
On the information super B road


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 5:49 am 
Newbie

Joined: Sun Oct 03, 2004 9:00 am
Posts: 7
How ??

Paul Newport wrote:
Turn on JDBC trace and hibernate debugging as a first line of attack


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 13, 2004 8:30 am 
Newbie

Joined: Sun Oct 03, 2004 9:00 am
Posts: 7
repost


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.