Newbie's Question
Hi all, using ActiveMQ-4.2-Snapshot. After starting the broker and posting a message to a queue I get INFO KahaStore - Kaha Store successfully deleted data directory activemq-data/hatest1/tmp_storage and my former filled queues are empty. I set deleteAllMessagesOnStartup="false" because I want ActiveMQ to hold all messages even after restarting it. When the system is up and I push messages into my queues I can see in jconsole that the messages come into my queues. But deleted data directory activemq-data/hatest1/tmp_storage makes me feel like the messages ar only stored somewhere temporarily. Where is my mistake? TIA -- View this message in context: http://www.nabble.com/Newbie%27s-Question-tf3374846s2354.html#a9391694 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: [Spam: 5.0] Newbie's Question
Hi Rob, sorry, maybe a silly question, but I think my messages not to be "non-persistent". So what makes a messsage "persistent"? I am using a simple script that produces a number of text-messages. While testing an other JMS-System my messages stayed in that store until they were consumed. TIA th rajdavies wrote: > > there's tmp storage for non-persistent messages that have overflowed > the VM - even if that area is empty - its always cleared down on a re- > start - and that's what the message at start-up refers to > > cheers, > > Rob Davies > http://rajdavies.blogspot.com/ > > > On 9 Mar 2007, at 10:08, tabshift wrote: > >> >> Hi all, >> >> using ActiveMQ-4.2-Snapshot. >> >> After starting the broker and posting a message to a queue I get >> INFO KahaStore - Kaha Store successfully >> deleted data >> directory activemq-data/hatest1/tmp_storage >> >> and my former filled queues are empty. >> I set deleteAllMessagesOnStartup="false" because I want ActiveMQ to >> hold all >> messages even after restarting it. >> >> When the system is up and I push messages into my queues I can see in >> jconsole that the messages come into my queues. >> But deleted data directory activemq-data/hatest1/tmp_storage makes >> me feel >> like the messages ar only stored somewhere temporarily. >> >> Where is my mistake? >> >> TIA >> -- >> View this message in context: http://www.nabble.com/Newbie%27s- >> Question-tf3374846s2354.html#a9391694 >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > > > > > > > > -- View this message in context: http://www.nabble.com/Newbie%27s-Question-tf3374846s2354.html#a9393271 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Active MQ 4.2
Hi all, is there a timeline when ActiveMQ 4.2 will be released as stable? TIA Thomas -- View this message in context: http://www.nabble.com/Active-MQ-4.2-tf3396877s2354.html#a9457615 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Persistence
I am using in activemq.xml: Nevertheless, when I ant producer it says: producer: [echo] Running producer against server at $url = tcp://localhost:41414 for subject $subject = TEST.FOO [java] Connecting to URL: tcp://localhost:41414 [java] Publishing a Message with size 1000 to queue: TEST.FOO [java] Using non-persistent messages I am testing on 4.2-SNAPSHOT. Why am I unable to produce persistent messages? They are all gone when I restart the broker! HELP please. TIA Thomas -- View this message in context: http://www.nabble.com/Persistence-tf3414405s2354.html#a9514103 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
ha connect fails
Hi, using apache-activemq-4.2-20070320.165248-33 the following error occurs in the slave when we put messages in the master and run activemq-admin browse --amqurl tcp://localhost:61616 [EMAIL PROTECTED]@xyz. How can we fix this problem ? Tia. Chris ERROR Service- Async error occurred: java.lang.NullPointerException java.lang.NullPointerException at org.apache.activemq.broker.region.RegionBroker.processDispatchNotification(RegionBroker.java:543) at org.apache.activemq.broker.BrokerFilter.processDispatchNotification(BrokerFilter.java:201) at org.apache.activemq.broker.BrokerFilter.processDispatchNotification(BrokerFilter.java:201) at org.apache.activemq.broker.BrokerFilter.processDispatchNotification(BrokerFilter.java:201) at org.apache.activemq.broker.MutableBrokerFilter.processDispatchNotification(MutableBrokerFilter.java:209) at org.apache.activemq.broker.TransportConnection.processMessageDispatchNotification(TransportConnection.java:498) at org.apache.activemq.command.MessageDispatchNotification.visit(MessageDispatchNotification.java:76) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:282) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188) at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:96) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65) at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:224) at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:97) at org.apache.activemq.thread.DedicatedTaskRunner.access$000(DedicatedTaskRunner.java:25) at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:39) -- View this message in context: http://www.nabble.com/ha-connect-fails-tf3447676s2354.html#a9615204 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problems with Persistent Messages
Maybe you should check if the messages are really lost by using the program "browse". You find it in the bin-directory. Since 4.2-Snapshot browse is implemented in activemq-admin. I suggest that your messages are still there but Hermes gives you some strange information. Karthik.Gopalakrishnan wrote: > > Hi > > I am new to activemq and now i am facing a weird problem > with ActiveMQ(integrated with JBoss). I have a c# client which sends > persistent messages to a queue that is created using the file > activemq-jms-ds.xml the contents of which is as follows > > > > PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" > "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd";> > > > > > activemq/QueueConnectionFactory > > > activemq-ra.rar > > javax.jms.QueueConnectionFactory > > JmsXARealm > > > name="activemq.queue:name=queue1"> > queue/queue1 >optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-ra.rar' > javax.jms.Queue > > PhysicalName=queue.queue1 > > > > > This file is dropped in the folder location : jboss/server/default/deploy > to be picked up by jboss. > > when i use hermes to check if the message is actually posted to the queue > i am able to see the messages being arrived there.But when i shutdown > JBoss once and start it again the messages are no more present in that > queue.I understood that by default queues are persistent.Is there > something else i should be doing to make the queue really persistent, in > the sense i dont want the messages to be lost when JBoss is restarted. > > > > I am also including the contents of the files ra.xml and broker-config.xml > incase it might be changed : > > ra.xml > -- > > > > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"; > version="1.5"> > ActiveMQ inbound and outbound JMS > ResourceAdapter > ActiveMQ JMS Resource Adapter > activemq.org > JMS 1.1 > 1.0 > > > > Copyright 2005-2006 The Apache Software Foundation > > Licensed under the Apache License, Version 2.0 (the > "License"); > you may not use this file except in compliance with the > License. > You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, > software > distributed under the License is distributed on an "AS IS" > BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express > or implied. > See the License for the specific language governing > permissions and > limitations under the License. > > > true > > > > org.apache.activemq.ra.ActiveMQResourceAdapter > > > The URL to the ActiveMQ server that you want this connection > to connect to. If using > an embedded broker, this value should be 'vm://localhost'. > > ServerUrl > java.lang.String > > vm://localhost > > > The default user name that will be used to > establish connections to the ActiveMQ server. > UserName > java.lang.String > defaultUser > > > The default password that will be used to log the > default user into the ActiveMQ server. > Password > java.lang.String > defaultPassword > > > The client id that will be set on the connection > that is established to the ActiveMQ server. > Clientid > java.lang.String > > > Boolean to configure if outbound connections > should reuse the inbound connection's session for sending > messages. > UseInboundSession > java.lang.Boolean > false > > > > > > Sets the XML configuration file used to configure the > embedded ActiveMQ broker via > Spring if using embedded mode. > > BrokerXmlConfig is the filename which is assumed to be on > the classpath unless > a URL is specified. So a value of foo/bar.xml would be > assumed to be on the > classpath whereas file:dir/file.xml would use the file > system. > Any valid URL string is supported. > > BrokerXmlConfig > java.lang.String > > xbean:broker-config.xml > > > > >
Re: Problems with Persistent Messages
I am sorry, I do not have any experience in integrating ActiveMQ into JBoss. Karthik.Gopalakrishnan wrote: > > I was not able to configure ActiveMQ4.2 to integrate it with JBoss . I > followed the same set of steps to integrate ActiveMQ with JBoss and i get > an exception "IllegalStateException : could not find Implementation for > 2.0".I faced the same problem with ActiveMQ4.1 also .Is there something > missing in the instructions in > http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html. > Or is it because i took the wrong release and worked on that(If that is > the case can you give me the exact release/link i should be taking to > start all that again ).If i am doing the wrong set of steps please > elaborate on what exactly has to be followed to achieve the goal. > > > tabshift wrote: >> >> Maybe you should check if the messages are really lost by using the >> program "browse". You find it in the bin-directory. >> Since 4.2-Snapshot browse is implemented in activemq-admin. >> I suggest that your messages are still there but Hermes gives you some >> strange information. >> >> >> >> >> Karthik.Gopalakrishnan wrote: >>> >>> Hi >>> >>> I am new to activemq and now i am facing a weird >>> problem with ActiveMQ(integrated with JBoss). I have a c# client which >>> sends persistent messages to a queue that is created using the file >>> activemq-jms-ds.xml the contents of which is as follows >>> >>> >>> >>> >> PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" >>> "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd";> >>> >>> >>> >>> >>> activemq/QueueConnectionFactory >>> >>> >>> activemq-ra.rar >>> >>> javax.jms.QueueConnectionFactory >>> >>> JmsXARealm >>> >>> >>>>> name="activemq.queue:name=queue1"> >>> queue/queue1 >>> >> optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-ra.rar' >>> javax.jms.Queue >>> >>> PhysicalName=queue.queue1 >>> >>> >>> >>> >>> This file is dropped in the folder location : >>> jboss/server/default/deploy to be picked up by jboss. >>> >>> when i use hermes to check if the message is actually posted to the >>> queue i am able to see the messages being arrived there.But when i >>> shutdown JBoss once and start it again the messages are no more present >>> in that queue.I understood that by default queues are persistent.Is >>> there something else i should be doing to make the queue really >>> persistent, in the sense i dont want the messages to be lost when JBoss >>> is restarted. >>> >>> >>> >>> I am also including the contents of the files ra.xml and >>> broker-config.xml incase it might be changed : >>> >>> ra.xml >>> -- >>> >>> >>> >>> >>> http://java.sun.com/xml/ns/j2ee"; >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >>> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"; >>> version="1.5"> >>> ActiveMQ inbound and outbound JMS >>> ResourceAdapter >>> ActiveMQ JMS Resource Adapter >>> activemq.org >>> JMS 1.1 >>> 1.0 >>> >>> >>> >>> Copyright 2005-2006 The Apache Software Foundation >>> >>> Licensed under the Apache License, Version 2.0 (the >>> "License"); >>> you may not use this file except in compliance with the >>> License. >>> You may obtain a copy of the License at >>> >>> http://www.apache.org/licenses/LICENSE-2.0 >>> >>> Unless required by applicable law or agreed to in writing, >>> software >>> distributed under the License is distributed on an "AS IS" >>> BASIS, >>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express >&g
Re: Unable to recognize DB2Driver
You simply need the JDBC Type 4 driver for connecting to DB2 databases. This file is called db2jcc.jar. Get it and put it in ActiveMQ's lib-Dir. garima015 wrote: > > Hi, > > I am using incubator-activemq-4.0.2.jar and is configuring DB2 in > activemq.xml using > > > > > > > > > On start of broker i am getting this error > ClassNotFoundException: com.ibm.db2.jcc.DB2Driver > I searched in forums but seems nobody has got this error before. > Am i missing something in configuration. > Any help will be really appreciated. > -- View this message in context: http://www.nabble.com/Unable-to-recognize-DB2Driver-tf3454188s2354.html#a9638719 Sent from the ActiveMQ - User mailing list archive at Nabble.com.