jms

How to use Java to connect to JBossMQ server by JNP Protocal?

I would like to create java client project to connect to JBossMQ server by use JNP Protocal. but It have error "org.jboss.jms.exception.MessagingNetworkFailureException " when it start to create connection. Could you help me by give any suggestion or guide me to any resource? I think it has some point I'm missing but I can't recognize....

Open-Source Applications using Java JMS?

Does anyone know of open-source applications that are built on top of Java JMS? I am looking to find applications so I can study them and see how they are used. This earlier post has examples of hypothetical uses for JMS, but I am looking for actual code! Thanks, Nels ...

Excel listening to JMS Topics, is it possible?

Does anyone know whether there's an excel add-in for listening to JMS topics? ...

Can I somehow overwrite JMS provider behavior in messaging?

I know I might sounds ridiculous for some experts, however, it's been in my head for quite a while and still no concrete answer found. In PUBLISH/SUBSCRIBE MESSAGING WITH JMS TOPICS: JMS publisher sends a msg to JMS provider, and JMS provider sends the msg to JMS subscribers and receives their acknowledgement. Is it possible that I can...

Why choosing JMS for asynchronous solution ? Why is it better than a simple entity bean ?

Hi everybody, In most projects I have participated, the choice of an asynchronous solution has been a source of much discussion ... Each time a single entity bean was enough to manage a queue: we just store a message (ticket) in a table and a processing cron unstacks the queue. This simple solution has the advantage of being very simpl...

Using the Log4J JMSAppender with ActiveMQ

I am trying to produce a proof of concept shipping logging from Log4J through JMS using the log4J JMSAppender. I have tried ActiveMQ and the example supplied with it. I have torn this example apart, and made it more generic and compatible with multiple platforms. It looks like I have it all plumbed up OK as I can see a connection to the...

Basic JMS Query

I have a set of parameters that I need to use to access a JMS queue. Can anyone supply me with a basic example of how I can send a block of XML to an awaiting server using these parameters. For this initial version I don't mind hardcoding these parameters. I am currently trying this: Context ctx = new InitialContext(); QueueConnectio...

J2EE/Glassfish Application Logic

Hi, I am trying to understand where some of my application logic should go in my J2EE Application. I am new to J2EE and am looking at loading a lot of unstructured data from a legacy database and building a clean object model for use by my application. From my investigation I see J2EE apps have 2 components, Enterprise Bean and Web Appl...

How can I get an existing JMS queue?

I feel like this is probably a pretty simple question, but this is my first foray into JMS, so I am a little unsure. I am trying to write to an existing JMS queue (and then read from another queue), for which I know the queue name, host, queue manager, and channel. How do I get a reference to this queue in the form of a javax.jms.Desti...

JMS interfaces and implementations

JMS API declare many General and concrete Interfaces (e.g., Connection vs. QueueConnection). It is documented that the best practice is to use the general interfaces (e.g. Session and not QueueSession). If my application is using both queues and topics and I'm going general, that is: Connection-->Session-->Topic/Queue, and suppose to sup...

Avoiding serialization in distributed EHCache

Is there a way to not use serialization and still use the EHCache disktore. I have nested objects , which are not serializable, which have to cached in a distributed ehcache. I can use JMS, to avoid serialization, and still achieve cache replication. But is there a way to avoid serialization to use the diskstore as well? Why isn't there...

JMS and durable subscriptions - trouble reconnecting

Hi, My organization has had a hard time dealing with some stubborn JMS issues. We have several JBoss instances running on a network, and occassionally have to restart JBoss instances that are acting as JMS clients (using durable subscriptions). The problem is that the clients are not disconnecting properly, so when they try to connect,...

Work around for MessageNotReadableException in Java

Hi, I am building a small api around the JMS API for a project of mine. Essentially, we are building code that will handle the connection logic, and will simplify publishing messages by providing a method like Client.send(String message). One of the ideas being discussed right now is that we provide a means for the users to attach inter...

How can I use Glassfish's JMS Broker to "proxy" a message on to a JMS Broker on the internet?

I am working on a Java EE 6 Enterprise Application that runs on my local Glassfish3 installation. One of my EJBs needs to send messages to a remote JMS Broker which is located somewhere on the Internet. Unfortunately, the Internet connection is rather unreliable, so my idea is to first send the messages to the local Glassfish's own JMS...

Potential pitfalls in using a JMS queue?

I've been asked to design and implement a system for receiving a high volume of automated sensor data from a large number of devices. This data will be produced at regular intervals and sent to the server as xml in an http post. The devices will keep resending the same data if they don't receive a specific acknowledgment from the server....

JBoss 5.1.0 Adding Queues

How do I add custom queues to JBoss 5.1.0? I found a way to do it via the Admin Console however for some reason it keeps failing, also I need to be able to quickly and easily move my queues from one JBoss Server to another. So basically I was wondering if there is a way to create custom queues in an xml file and add that file to the d...

Sending a message to a full JMS queue

Hello, I am writing a Java code that sends messages to a JMS queue. I am doing this by using "QueueSender.send()". The JMS queue itsels is sonicMQ but that's beside the point. My problem is that sometimes the JMS queue is full and the thread that tries to send messages to the queue is starved. Is there a way for me to know if the que...

How to monitor outgoing messages from TIBCO EMS .Net client?

While using the .Net client TIBCO EMS, How to monitor outgoing messages from my .Net Tibco client? I'm going to send Application-level, not jms-level, acknowlegements and replies. How can I tell If the application sent them or not? If the client failed to send a message will it throw an exception or store the message to try again later...

How to get local ActiveMQ broker to "mirror" a queue on a remote ActiveMQ broker?

I have a local ActiveMQ broker which is on an unreliable internet connection, and also a remote ActiveMQ broker in a reliable datacenter. I have already sorted out a "store and forward" setup so that outgoing messages are sent to the remote broker when the Internet connection is available. That alone works great, but when messages are o...

JMS catching when a JMS server goes away

When there is a network problem which results in the client being disconnected from the JMS server, is there some other way to detect the problem other than waiting until the next JMS message being sent fails? ...