queue « JMS « JSP-Servlet Q&A





1. Queue Depth - JMS    coderanch.com

Here is how we do the browsing method to get a count via JMS. // find out how many on inQueue right now QueueBrowser inQBrowser = mySession.createBrowser(inQ); Enumeration messagesOnQ = inQBrowser.getEnumeration(); while (messagesOnQ.hasMoreElements()) { messagesOnQ.nextElement(); numOnQueue++; } inQBrowser.close(); myLogger.info("number of messages on input Q= " + numOnQueue); BTW, numOnQueue is defined outside this snippet of code. It is wasteful but this ...

2. Java Thread vs JMS Queue    coderanch.com

4. one or more jms queue?    coderanch.com

One or more queue? I'm design a system in which I call some external webservices. I wish to log any webservice response in my database for logging purpose. So in order to don't slow down the system with logging work (INSERT QUERY etc.), I take decision about using a message driven bean in order to log the response writing it in ...

5. Read JMS queue from heap dump    coderanch.com

6. Need to Get a Specific JMS Queue from the objectPool ( GenericKeyedObjectPool )    coderanch.com

Hi , I want to pick a specific JMS Queue from the exsisting Publisher Pool. The Pool is being configure based on the DestinationSystems ( busibess destnations systems) of the messages and the message priority ( HIGH/NORM ) this is how I confirgure the pool beans in my applicationContext.xml bean id="NORMPublisherPool" class="com.optech.publisherpool.PublisherPool" init-method="init" destroy-method="close" lazy-init="true">

7. jms multiple queues    coderanch.com

I am try to cater for a requirement we have basically we have n client databases and n client server instances that talk to these databases So the user makes an order which is queued and jms processes this request then I want to be able to put the answer after processing into the correct queue for each database ..Can this ...

8. Disabling DLQ usage for JMS queues    coderanch.com

Hello, I'd like to know how I can 'disable' DLQ (dead letter queue) usage for my JMS queues on JBoss 5.1. We'd like to discard messages that are unsent rather than attempt to redeliver them. I know how to specify a queue's DLQ, however I can't quite figure out how to turn off this behaviour (It doesn't like it when I ...





10. Creating Temporary Model Queue in JMS    coderanch.com

Hi, I use IBM Websphere MQ and Websphere application server 7 in my project. I use JMS to send message to MQ. The Model queue - MYAPP.MSG.REQUESTQ has been created in MQ to be used as a template to create dynamic queues. What I am trying to achieve is, I wanted to pass a userId (example: AB21211) while creating a temporary ...

12. JMS Queue and Topic    coderanch.com

13. JMS Queue problem    coderanch.com

Hi All, I am sending a message to update the status via MDB. The log shows the updating in success and after the transaction the session closed and do not show any exception or error in the log. But the status is not updated in the database. will the case can be because of a JMS queue problem or what??? Please ...

15. JMS::Websphere6.1::Problem with context lookup the Queue    coderanch.com

Hi, I have a class which tries to look up a Queue/QueueConnectionFactory and then submits message. The code works fine with Weblogic9.x but throws the following exception in Webshpere6.1. com.ibm.mq.jms.MQQueue incompatible with javax.jms.Queue Code: // get the initial context InitialContext ctx = new InitialContext(); QueueConnectionFactory connFactory = null; Queue queue = null; queue = (Queue) ctx.lookup(queueName); //Throws exception at this point... ...

16. access jms queue from different servers    coderanch.com

if you have your mdb running on serverA and the queue on server you can create on serverA a connectionfactory (remoteCF) that points to server B. your mdb on serverA will get its connections from this remoteCF. To do this in glassfish you can configure your connection factory with a property called "AddressList" that allows to point remotely. This property may ...





17. Servlet, Glassfish JMS java.lang.IllegalArgumentException: MQ:Queue:Invalid Queue Nam    java-forums.org

I have a servlet which I will use as a message producer. to a JMS queue. I am using netbeans 6.9.1 and glassfish v3. I've configures the Queue destination on glassfish using the admin console..but I keep getting the following exception. JMS java.lang.IllegalArgumentException: MQ:Queue:Invalid Queue Name. what could I be doing wrong? public class HelloWorld extends HttpServlet { protected void processRequest(HttpServletRequest ...