[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - redeploy har without restarting server?

2005-12-12 Thread sh_sadrai
How can I redeploy har file without restarting server?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - har redeploy without restart?

2005-12-12 Thread sh_sadrai
How can I redeploy har file without restarting?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - I need jta flush the session in the middle of transaction!!!

2005-11-03 Thread sh_sadrai
I use hibernate3 and jta.
In my session bean in first method which is requires_new I save an object in 
db. in second method which is required I want to retrive sth from saved object 
with "." but it is null. how can I make my transaction flush the session or 
close the session and create a new one, before my second method?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: CMP and Transactions

2005-11-03 Thread sh_sadrai
I have the same problem.
My first method that is REQUIRES_NEW creates a new object.
second method that is REQUIRED retrieves some other objects from that obj like 
mypayment.getBookingID().getId(), but it is null. it seems session hasnt been 
flushed yet. How can I access my saved obj?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - Re: jta transaction doesnt rollback hibernate update in case

2005-11-03 Thread sh_sadrai
I solved my problem. I have to use HibernateException.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - with jta,hibernate3 how can I create a new session in my ejb

2005-11-03 Thread sh_sadrai
I am using hibernate3,ejb3 in jboss-4.0.3SP1.and I am using jta.

After inserting sth in , right after it I want to retrieve it again in ejb. 
Because I am in old session I can not retrieve sets of that object. It seems it 
isnt persisted yet.
I need a way to close old session and open a new one to be able to retrieve 
everything about my object.
I dont want to go to my view and call the second method of ejb.
How ?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - jta transaction doesnt rollback hibernate update in case of

2005-11-01 Thread sh_sadrai
I am using hibernate3, EJB3.0 in jboss-4.0.3SP1. I want jta does all 
transaction. But, if my ejb cause an exception my hibernate update doesnt 
rollback.
I dont have any transaction control in my hibernate. and I get  the session 
from session = getSessionFactory().getCurrentSession();
and I dont close session.

Here is my jboss-service.xml:
-


jboss.jca:service=RARDeployer
jboss.jca:service=LocalTxCM,name=MySqlDS
java:/MySqlDS 
org.hibernate.dialect.MySQLDialect 
java:/hibernate/HibernateFactory
true
org.hibernate.cache.EhCacheProvider 
false
org.hibernate.transaction.JTATransactionFactory
org.hibernate.transaction.JBossTransactionManagerLookup
true
true
java:/UserTransaction

mappings/Users.hbm.xml,
mappings/UserTable.hbm.xml,
mappings/ZoneStates.hbm.xml  
...
 

 

And my stateless session bean is like this:

@Stateless
@Local(AdminInt.class)
public class AdminBean implements AdminInt{
...
-
and the method of ejb is like this:

@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public boolean editBedType(BedType bedtype){
BedTypeDAO dao = new BedTypeDAO();
 try {
dao.update(bedtype);
int i=100/0;//here I cause an exception. but the update doesnt 
rollback
   } catch (Exception e) {
e.printStackTrace();
}
...


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user