[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: hibernate and jboss transactionmanager

2006-03-02 Thread JulesVerne
I picked this from the net...

However, in the context of a larger J2EE application, you'll likely want your 
Hibernate objects to take part in an existing JTA transaction. This would be 
the normal case if you wanted to access Hibernate objects in a session bean, 
for example.

anonymous wrote : JBoss provides the 
org.jboss.hibernate.session.HibernateContext class as the integration piece 
that does this. The getSession method returns a Hibernate session that is 
linked to the current JTA transaction. Naturally this requires that a JTA 
transaction exist prior to the call. The following code illustrates the use of 
getSession.
  | 
  | Session hsession = 
HibernateContext.getSession("java:/hibernate/ExampleEmptorSessionFactory");
  |   | 
  | When you get the Hibernate session in this manner, you don't need close the 
Hibernate session or manage a hibernate transaction. You can be sure that all 
access to the Hibernate session from the current transaction will see the same 
state, and you can know that your Hibernate access will be committed to the 
database or rolled back along with the larger JTA transaction.

is this the only way
thnx

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - hibernate and jboss transactionmanager

2006-03-02 Thread JulesVerne
Hi
How do i configure hibernate-sevice.xml which is deployed as a har to use 
Jboss4.0.2 AS servers transaction manger. so that I can use it with my session 
beans...
Here is the current configuration of my hibernate-service.xml

  | 
  | 
  | java:/DefaultDS
  | org.hibernate.dialect.PostgreSQLDialect   
  | java:/HibernateSessionFactory
  | org.hibernate.cache.HashtableCacheProvider
  | update
  | true
  | 
  | 

Thnx for the help
Jubs

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - acessing log4j.xml

2005-07-05 Thread JulesVerne
I have an ear which contains an har,jar and war...
And i am using log4j for logging. I want a single log4j.xml file in my ear so 
my web and ejb application can acess it. how do i go about it. and how do i 
acess the xml file in the code

DOMConfigurator.configureAndWatch("/home/verne/workspace/TxChangeFinal/bin/WEB-INF/log4j.xml",1);

sincerely
verne

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - reconnecting in postgre

2005-07-04 Thread JulesVerne
scenario : there is a stored procedure call from an ejb using one of the two  
local tx datasource for postgres. The database was restarted when the procedure 
call was made and an exception is thrown. 
Is it true the exception wouldn't be raised if  an xa-datasource was used 
instead and the call would be again made from the datasource connection pool 
automatically. 

sorry if it sounds confusing... 

thanks for the help

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - how to configure delegate persistence

2005-03-02 Thread JulesVerne
Hi
could any one tell me how to configure  delegate persistence in 
null-persistence.xml I think it will solve my problem to the previous post.

Very urgent plz.. Help
Jubin

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Persistence in jbossmq

2005-03-01 Thread JulesVerne
Hi 
i am having trouble with persistence . I have written a client that has set its 
deliverymode to NON_PERSISTENCE. but the message still seems to persist. I have 
also set the null-persistence.xml  so the message must be persising in memory.
Can anyone help me out.

Sincerely yours
Jubs


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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user