jms

JMS Destination creation at deployment with Glassfish 3.0.1

I'm currently trying to 'port' my Java EE 5 Application from Jboss 6 M2 to Glassfish 3.0.1 Jboss used to create my JMS Destination Queues a deployment-time thanks to the -service.xml files. I really liked this feature and I would like to find a way to do the same thing on Glassfish. Is this even possible ? ...

How to find out if JMS Connection is there?

In JMS it is easy to find out if a connection is lost, a exception happens. But how do I find out if the connection is there again? Scenario: I use JMS to communicate with my server. Now my connection breaks (server is down), which results in a exception. So far so good. If the server is up again and the connection is reestablished, how...

Spring JmsTemplate + Security

I've just refactored some code that published to a JMS topic to use Spring's JmsTemplate class and now I'm receiving an exception stating I'm not authenticated. Previously I created the factory, made a connection, then session etc as follows: MQTopicConnectionFactory factory = new MQTopicConnectionFactory(); factory.setQueueManager(qMg...

How to design an MQ Server?

I'm unclear as to whether there should be a 1-1 or a 1-* relationship between: Server-Connection Channel and JMS Topic Server-Connection Channel and Listener Listener and Topic Regards the design of our application layer, there is a single MDB that in response to a message, does some work, then publishes messages onto a variety of ou...

How to reduce the time request between producer (Java) and consumer (Flex) with JMS Message?

Hi, I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes t...

JMS Message.acknowledge() on Session.AUTO_ACKNOWLEDGE

What happens in TIBCO when Message.acknowledge() is invoked in a session with AUTO_ACKNOWLEDGE mode? I mean is this call ignored on client-side? or server-side? or does server perform any action on this call? The reason I ask is that there is an application which acks messasges in an auto acknowledge session. And a during highload perio...

ActiveMQ : dead letter queue keeps my messages order

Hi, I use ActiveMQ as a broker to deliver messages. Theses messages are intented to be written in a dabatase. Sometimes, the database is unreachable or down. In that case, I want to rollback my message to retry later this message and I want to continue reading other messages. This code works fine, except one point : the rollbacked mess...

Is it possible to move an MQ message from one queue to another?

I need to move one single message from an MQ queue to another queue. This other queue may already have existing messages in it. Is there a way to do this? ...

How can I get the jndi name of the source of a jms message

Hello. I am using the Spring Session Aware Message Listener to listen to multiple JMS queues. Is there any way to get the JNDI name of the source of an incoming message? I have tried to use the getJMSDestination, but this only gives me the display name. Thank you. ...

JBOSS 5.1 Upgrade - Messaging Issue

I'm trying bring up a hello world MDB in JBOSS 5.1 to see how i can get our messaging application into JBOSS 5.1 Messaging. The simple hellow world MDB gives me a wired issue. The MDB deployed fine and no problem in starting the JBOSS 5.1 AS. However when i tried to send a message from a client which is also running JBOSS 51 is throwing ...

What information does ActiveMQ's message id (getJMSMessageId()) contain?

Details of generating message id are not specified by JMS specification. But when troubleshooting issues with specific JMS implementation, it is useful to know what happens. So I am trying to figure out source of excessive duplicates on our system (activemq 4.1 -- yes, ancient version, but this is production and can't be replaced on shor...

How does RabbitMQ compare to Mule

How does RabbitMQ compare to Mule, I am going to build an application using message oriented architecture and AMQP (RabbitMQ) provides everything i want, but i am perplexed with so many related technology choice and similar concepts like ESB. I am having a doubt if i am making a choice without considering other alternatives. I am mostly...

How can I continue a Drools Flow process when I receive a JMS Message?

I have a very simple flow, a JMS Message starts a process which receives a List of objects. A foreach iterates through this list and sends a JMS Message to component to process the object in the list. This component needs to send a completion notification back to the flow process so it can carry on. Does anyone have any idea of how this ...

Problem with embedding activemq to jboss application server

I'm totally a newbie in Java Enterprise and I have a lot stuff yet to learn. Right now I'm working which involves JMS using JBoss and ActiveMQ. An application sends messages to queues in JBoss and my goal is to access those messages using any message broker (in this case I tried to use ActiveMQ). So I think it's better for me to embed Ac...

What is JVM Bind?

I tried to run example from HornetQ and I got this error: [java] HornetQServer_0 out: Deployment "JNDIServer" is in error due to: java.rmi.server.ExportException: Port already in use: 1098 Actually this is not the first time I got this kind of error. I can verify that port 1098 is indeed already in use (using Netstat command) but I ...

java.lang.UnsatisfiedLinkError

hi guys, i am trying to access MQ queues using JMS. i am getting the below java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path i am passing -Djava.library.path="C:\Program Files\IBM\WebSphere MQ\java\lib" as the VM argument while running the program in eclipse. This issue is discussed quite a lot on the net but with ou...

Can durable subscriptions survive client restart?

If I use durable subscription, can I restart my client and resubscribe without loosing any messages? (Assuming, my client does not unsubscribe in any way. Lets say it just crashes). Let me clarify. JMS 1.1 Spec says the following: 9.3.3.2 Reconnecting to a Topic using a Durable Subscription /* Reconnect to a durable subscription *...

Setting MQ Header in java client

hi, i am looking to set the MQ Header field 'PutApplName' in my java client and access the same in the JMSXAppID field as a JMS header. The documents on the net talk about the MQ Header Fields getting mapped to JMS ones. Has anyone tried this? ...

Greedy threads are grabbing too many JMS messages under WebLogic.

We encountered a problem under WebLogic 8.1 that we lived with but could never fix. We often queue up a hundred or more JMS messages, each of which represents a unit of work. Despite the fact that each message is of the same size and looks the same, one may take only seconds to complete while the next one represents 20 minutes of solid c...

IBM JMS connection

Hi guys, I'm currently working in C# and I need to check the state of the JMS connection that i made (whether it's connected / disconnected). I'm sure that I can connect and disconnect succesfully..its just that i need to display the status of the connection in my UI. Is there any properties of the JMS connection that states connection ...