jms

How to remove a JMS MessageListener once started?

How to remove a JMS MessageListener once started? I use queueReceiver.setMessageListener(this); to create a listener. But once I am dome with it I would also like to stop listening. Using queueReceiver.setMessageListener(null); does not seem to work. ...

i want to send 20000 messages from JMeter to JMS Queue through web methods and get/capture responses of all requests

Blockquote Hi i'm trying to post JMS messages to JMS queue through web methods,JNDI. i want to post 20000 messages using one connection. i want to read the responses back once returned by wMethods. i want to capture the request & response for all 20000 messages i'm using JMeter is there any other opensource, easily usable tool av...

What are the alternatives of JMS?

Do we have any alternative for JMS? Problem statement We have a component called Configuration Manager, which contains configuration of the application. This configuration manager is used by 4 instances of the application. Now , any time an administrator changes the configuration, it should get notified to all the instances of the appli...

Delivery of JMS message before the transaction is committed

Hi, I have a very simple scenario involving a database and a JMS in an application server (Glassfish). The scenario is dead simple: 1. an EJB inserts a row in the database and sends a message. 2. when the message is delivered with an MDB, the row is read and updated. The problem is that sometimes the message is delivered before the...

WS-AT with SOAP/JMS

Hello All, Can a web service with SOAP/JMS binding participate in WS-AT (Web service Atomic Transaction) ? Assuming this service is invoked synchronous. I know SOAP/Http does. Any help appreciated. ...

Problem in creation MDB Queue connection at Jboss StartUp

I am not able to create a Queue connection in JBOSS4.2.3GA Version & Java1.5, as I am using MDB as per the below details. I am putting this MDB in a jar file(named utsJar.jar) and copied it in deploy folder of JBOSS, In the test env. this MDB works well but in another env. [ env settings and jboss/java ver is same ] it is throwing erro...

JMS - common uses

What is common and useful uses of JMS and Message Driven Beans? ...

Writing a JMS Publisher without "public static void main"

Hi guys, Every example I've seen on the web, e.g. http://www.codeproject.com/KB/docview/jms_to_jms_bridge_activem.aspx, creates a publisher and subscriber with a public static void main method. I don't think that'll work for my web application. I'm learning JMS and I've setup Apache ActiveMQ to run on JBoss 5 and Tomcat 6 (with no glit...

Message Driven Bean with Java Message Queue down

I have the following problem deploying my application. It uses JMS and a remote openMQ for communication between servers. The problem is that the connection is not fully reliable so it can be up or down. For reconnecting I set the jms reconnect glassfish property so it reconnects if at some moment the connection gets lost. The problem ...

EJB web services transactions

We have a few products that communicate using various forms of web services. Some use straight XML passed through http requests (HttpClient). Others make remote EJB calls and some use EJB 3 web services on EJB session bean methods. In the HttpClient versions we have problems where the remote end takes 10+ minutes to complete a databas...

Is ActiveMQ built on top of / wraps around JSSE, or does it implement its own secure connections?

I've used ActiveMQ in the past for nonsecure connections. I now have to write a secure distributed application, and was required to "write it on top of JSSE". I'm wondering whether using JMS and ActiveMQ will transparently let me do that, or whether ActiveMQ has its own implementation for SSL, authentication, etc. ...

What's the best Communication Pattern for EJB3-based applications?

I'm starting a JEE project that needs to be strongly scalable. So far, the concept was: several Message Driven Beans, responsible for different parts of the architecture each MDB has a Session Bean injected, handling the business logic a couple of Entity Beans, providing access to the persistence layer communication between the differe...

What is the best way to reject messages with the same body in AMQ queue?

I have a single AMQ queue that receives simple messages with string body. Consider I'm sending CLSIDs as message bodies. CLSIDs could be not unique, but I'd like to reject all messages with not unique bodies and keep only single instance of such messages in the queue. Is there any simple way to do it? Currently I'm using a workaround. M...

JMS template credentials default value

Hello everyone I'm trying to work with jboss messaging, does anyone knows the default value for these java.naming.security.principal and java.naming.security.credentials or how can I set them? <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"> <property name="environment"> <props> <prop key="jav...

Jboss Messaging JMS

I successfully managed to send the message to queue name ReceiverQueue on my localhost Jboss server, how can I retrieve message I sent to it or how do I check if there is any messages in the queue if any retrieve them. or can I get an explanation of some sort what is the best way to do this. Thank you A working send/receive tutorial wou...

Use Glassfish JMS from remote client

Hi, I have glassfish installed on a server with a JMS ConnectionFactory set up jms/MyConnectionFactory with a resource type or javax.jms.ConnectionFactory. I now want to access this from a client application on my local machine for this I have the following: public static void main(String[] args) { try{ Properties ...

Generic JMS Client

Does anyone know if it is feasible to write a Generic JMS client - ie. one that works with JMS from different providers (eg. Sonic, IBM SIB, Jboss etc)? Every time I've written JMS client code it is always very implementation specific with dependent JARs and Context classes. Thanks. ...

Using a JMS Session from different threads

From the javadoc for Session it states: A Session object is a single-threaded context for producing and consuming messages. So I understand that you shouldn't use a Session object from two different threads at the same time. What I'm unclear on is if you could use the Session object (or children such as a Queue) from a different th...

Why does ActiveMQ hold messages that should be deleted from Topic?

I use ActiveMQ as Notification System(Pub/Sub model). On server: if any changes of data occur, Server send this updated data (File) to Topic using BlobMessages. There are few Clients, that subscribe on this Topic and get updated File if it exsist in Topic. The problem is that all of BlobMessages, that were sent to Topic, are hold by A...

JMS messaging implementation

I've been struggling with this "simple" task for more expirienced people, I'm stuck for 2 days now need help. I've changed things arround like zillion times now, finally I stumbled upon this spring JMS tutorial. What I want to do, Send a message and receive it. I've been also reading this book chapter 8 on messaging. It really nicely ex...