I'm using Jboss Messaging with Jboss 4.2.2.GA. I have some problem with QUEUE, when i restart server, some persistent message will continue process. Now I want delete it but i don't know where it store ?
Use a non-persistent queue....
Data will be stored in /server/default/data/hornetq/*.hq file if you are using hornetQ
Related
I would like to directly connect a database to Fuse. My goal is to save all messages received by one or more topics inside a database (MySQL, postgreSQL, MongoDB,...).
I don't need a failover database, basically I would "subscribe" a database to Topics and save all messages for future analysis.
What's the easiest way to do it?
At a high level, the easiest thing to do would be setup a Camel route that consumes from the topic using the JMS component (or ActiveMQ if you're using that for your broker), and then write the message body into the Database using the JDBC Component. You could use PIDs to control the topic (or topics) that are consumed.
To create the JDBC connection you could either setup that up as part of your bundle containing the Camel Route (via blueprint/spring), or you could create a separate bundle that creates a JDBC connection/datasource via blueprint/spring and then exposes it as an OSGi Service for the camel route.
I'd like to host apps that uses queue to communicate with each other on OpenShift.
One kind of apps - producers will put some data to the queue and another type - consumer will process the message. My question is how to implement message queue. I've thought about two approaches:
Create an app with JBoss, HornetQ and consumer and create proxy port for HornetQ, so that producers can send messages there.
Create an app with JBoss and consumer, and make a JBoss's HornetQ available to producers. It sounds a bit better for me, but I don't know if I can make queue available to producers and how it works if there are more instances of consumer on different nodes (and different JBoss instances).
I'm not sure how else to answer you besides showing you a link on how to use Wildfly. You can just use the Wildfly Cartridge:
https://www.openshift.com/quickstarts/wildfly-8
If you provide me some extra context I can try to enrich the answer a bit better. I need to know what is your problem, and what's not working.
If you just want to know how to configure Wildfly with HornetQ, the Wildfly cartridge I posted is the way to go.
We have two applications which is running on Weblogic and JBoss AS respectively. We would like to Keep HornetQ as an intermediate server for Asynchronous messaging.
I would like to write a Publish/Subscriber. Whenever a data Inserted/Modified/Deleted(JPA) or whatever possible messages it could be.
Here Producer will be the Weblogic and consumer will be the JBOSS. How can i achieve it?
On wls end define a foreign jms server. Point it to the hornetq topic. Your application on wls will publish
Messages to foreign jms and your application on jboss can consume it.
When defining foreign jms make sure you provide user credentials for both the topic and jndi look up as needed.
I think You could use JMS bridge between wls and JBoss:
http://docs.jboss.org/hornetq/2.3.0.CR2/docs/user-manual/html/jms-bridge.html
We are in the process of planning our server machine switch. While we are doing the switch, we need to be able to continue to receive traffic and save the JMS messages that are generated.
Is it possible to move the persisted message queue from one JBoss 7.1.1/HornetQ to another?
HornetQ uses a set of binary journal files to store the messages in the queues.
You can use export journal / export data... or you can use bridges to transfer data.
You should find some relevant information at the documentation on hornetq.org
I have declared only One Queue called MyQueue1 in JBoss JMS MQ - jbossmq-destinations-service.xml , But when i view list of Queues via JBoss JMX Console. I see 5 queues there.
How did other Queues get created?
I have been told that Queues get created automatically when we attempt to write to a non-existent queue - is this possible? I am not able to replicate this behavior on my desktop though.
I am using JBoss 4.0.x
Please advice... Thanks.