thanks gary for the reply.
you are right that camel route is consuming all messages. so i can not see
messages in DB.
but when i chang my route to some wrong endpoint which does not exist. which
mean i am sending my message to a wrong consumer e.g
on place of this if i write
then message will
my suspicion is that your camel route is consuming all the messages.
logging is your friend here.
configure the http://activemq.apache.org/logging-interceptor.html
Or go back to first principals with a simple jms producer/consumer to
validate persistence.
use the examples from a distro:
http://act
no-one knows about it...??
i think there might be some configuration missing or something else.
please check it.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/message-clears-from-db-if-application-or-activemq-restarts-tp3491807p3500297.html
Sent from the ActiveMQ - User
i think in this line
http://activemq.apache.org/schema/core";
brokerName="localhost" persistent="true"
dataDirectory="${activemq.base}/data" >
persistent="true" is enough for making messages persistance.
please correct me if I am wrong.. or if there is any other solution?
--
View this message
please reply anyone, i need to fix it quickly.
Thanks in advance.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/message-clears-from-db-if-application-or-activemq-restarts-tp3491807p3494583.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
hey martin thanx for reply..
as you have mentioned in my framework i did not change the default
persistent setting of message
other configurations which i am using are:
this is my camel route:
and in readData & read
Hi,
you broker's persistence settings are only used if you send your
messages as persistent and not as non-persistent. See
http://download.oracle.com/javaee/1.4/api/javax/jms/MessageProducer.html
for persistence settings. The JMS default is persistent, but I don't
know how you configured your fram
Hey martin
as i shown my config file, i am using persistency using
jdbcpersistenceadapter in oracle.
& only undelivered messages i can see in the activemq_msgs table.
for making messages undeliver i give a wrong route address which does not
exist, so i can see that message in db. until now i think
Hi,
are you using persistent or non-persistent delivery for your messages?
Any non-persistent message will be discarded on broker restart
(however, I don't know why it would go to the storage in the first
place, though).
And are you using a time-to-live on your messages, which might have
expired
I am using camel for routing & test Activemq i am testing by sending jms
message -
this is my junit test
public class JmsTest extends CamelSpringTestSupport{
private static Logger logger = LoggerFactory.getLogger(JmsTest.class);
@Test
public void testJMS() {
ArrayList listObj = n
10 matches
Mail list logo