Re: persistence problems in consumer having java exception

2008-10-23 Thread Imagine_David
i think the main problem is how can i make JMS and JDBC operations in one transaction. if the answer is yes. can i solve the problem by using Jenck? Hans Bausewein wrote: > > Which ActiveMQ version do you use? > > Where does the exception occur? > > During a MessageConsumer.receive() ? > In t

Re: persistence problems in consumer having java exception

2008-10-23 Thread Imagine_David
Thank you for the replied Hans, i used version 5.1. it's during MessageConsumer.receive() just simply have NullPointerException. at first, i got XFireRuntimeException when i try to visit web service at consumer code by use xfire. these only one way i can get a persist message at db is i mark a de

Re: persistence problems in consumer having java exception

2008-10-23 Thread Hans Bausewein
Which ActiveMQ version do you use? Where does the exception occur? During a MessageConsumer.receive() ? In that case: what exception do you get? If the exception occurred after it was received, the message can only be retrieved later if the session was transacted and if the transaction was rol

Re: persistence problems in consumer having java exception

2008-10-23 Thread Imagine_David
Am i need to use JDBCMessageStore which activemq provided to persist error message by myself when the java exception occured? if the answer is yes, how can i get the instance of JDBCMessageStore? should i config the activemq as non-persistent server? i pretty sure i shouldn't persist message by my