jms

How to create a ssljms connection using GlassFish 2.1.1 and OpenMQ ?

Is it possible to configure that? In that case, what parts would be involved, MDBs and Producers? ...

ActiveMQ & Camel - How to create dependency in routing paths

I have a message routing to implement, which has routes that vary according to the message content. Some strands of the route are dependent on other. If for example I have Data_A which has Task_A and Task_B to be performed on it. Whereas Data_B has only Task_B to be performed on it. Here each Task has a queue served by consumers. If T...

Can I use Pub/Sub model with Many Publishers and Only One Subscriber?

I need to send some files from different machines to only one Server. As I understand, I can use JMS api + (for example) ActiveMQ as broker. There are two models: p2p and pub/sub. I would like to use pub/sub model, but the problem is that I haven`t few subscribers, I have only one Subscriber(Server) and many Publishers. The question is t...

Problems creating JMS Queue on Glassfish

i'm get the following error when deploying my application with a JMS producer and consumer com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : QueueName I used the annotations below: Producer @Resource(name = "jms/EmailNotificationQueue", mappedName = "EmailNotificationQueue") private Destination dest...

Does anyone know what these Oracle AQ JMS XA properties do?

I'm using Oracle Advanced Queues via JMS from within Websphere App Server. Does anyone know what effect the following two properties have:- - oracle.jms.useEmulatedXA - oracle.jms.useNativeXA I have seen mentioned in some blogs and quick start guides, usually in sentences along the lines of "Add -Doracle.jms.useEmulatedXA=false -Do...

Should a JMS application create a new session for every message that it sends?

Should a JMS application create a new session for every message that it sends or is it preferable to create a session for a long message sequence? ...

What is the purpose of a JMS session?

What is the purpose of a JMS session? Why isn't a connection alone sufficient to exchange JMS messages between senders and receivers? ...

Is JavaEE really portable?

I'm just implementing a JavaEE assignment I was given on an interview. I have some prior experience with EJB, but nothing related to JMS and MDBs. So here's what I find through the numerous examples: application servers bind their topics and queues to different JNDI names - for example topic/queue, jms the activationConfig property is...

HornetQ on Tomcat

Is that possible to run HornetQ (JBoss JMS implementation) on Tomcat? The HornetQ documentation is all about JBoss AS or standalone scenarios... Update: This is from HornetQ feature list: "HornetQ is architected as a set of Plain Old Java Objects, it can therefore be run in JBoss Microcontainer, Spring, Google Guice or embedded in any...

Lazy loading of ESB in a jruby rails app

I have a jruby/rails app using: jruby 1.4.0 Rails 2.3.5 ActiveMQ 5.3.0 Mule ESB 2.2.1 Currently in our environment.rb file we start up Mule in the initializer. This becomes a big pain when we go to do normal rake tasks that don't require JMS/Mule such as db:migrate as it takes a long time to startup/shutdown Mule everytime. The code...

Which use cases make temporary JMS queues a better choice than persistent queues?

When you are designing a JMS application, which use cases make you pick temporary queues over persistent queues? We use temporary queues for response messages. We're having some issues maintaining connections to the temp queues, though, so I am testing persistent response queues, instead. One clear disadvantage of persistent queues is t...

Message driven bean not responding until client method is complete

Hi, I have a MDB deployed on Jboss 4.2.2 and a client on the same server that produces messages and expects a reply from the MDB via a temporary queue created before the message is sent. When I run the client, I see that it creates the message, puts it in the queue and waits for the reply (no problem so far) ... but when I check in the...

Jar file containing the class - com.sun.enterprise.naming.impl.SerialInitContextFactory

Hi What is the jar file containing the class: com.sun.enterprise.naming.impl.SerialInitContextFactory I am getting the following error: javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.impl.SerialInitContextFactory while trying to run a JMS based application in Sun Java System App Server. Reg...

JMS Session pooling for large numbers of Topic subscribers

I'm writing an app that will create lots of JMS topic subscribers. What is best practise regarding reusing sessions? A session per subscriber? A pool of sessions? With a session per subscriber the thread count seems unreasonable. Is this a job for something like a ServerSessionPool? What I've seen so far seems to suggest that ServerSes...

one message driven bean, listen to dynamic topics ...

Can one MDB listen to 2 or more topics? if not how do i go about listening for so many topics, assuming, one geo location is one topic, and the number of geo location can and will grow from 2 to more ... I am using glassfishV3. ...

Injecting jms resource in servlet & best practice for MDB

using ejb 3.1, servlet 3.0 (glassfish server v3) Scenario: I have MDB that listen to jms messages and give processing to some other session bean (Stateless). Servelet injecting jms resource. Question 1: Why servlet can`t inject jms resources when they use static declaration ? @Resource(mappedName = "jms/Tarturus") private static Conne...

Available message types in JMS?

This is based on a past exam question. The question is asking to describe the four types of message available using JMS. The problem is it says the four, not just four. So it assumes their is only four, no more no less. However according to this site their seems to be five; streams maps text objects bytes *Another book states th...

JMS message. Model to include data or pointers to data?

I am trying to resolve a design difference of opinion where neither of us has experience with JMS. We want to use JMS to communicate between a j2ee application and the stand-alone application when a new event occurs. We would be using a single point-to-point queue. Both sides are Java-based. The question is whether to send the event ...

Optimized Publish/Subcribe JMS Broker Cluster and Conflicting Posts on StackOverFlow for the Answer

Hi, I am looking to build a publish/subscribe distributed messaging framework that can manage huge volumes of message traffic with some intelligence at the broker level. I don't know if there's a topology that describes this, but this is the model I'm going after: EXAMPLE MODEL A A) There are two running message brokers (ideally all ...

What's the best event push method from servlet to clients (esp. lightweight mobile ones)

This question must have been asked a thousand times but I couldn't find good high-level guide. I want to push events with a particular topic from a JMS (ActiveMQ, to be exact) as they occur, to clients that subscribe to listen to that topic. I don't have many assumptions about the clients, but I especially want to target mobile clients...