Results 1 to 3 of 3

Thread: MDB replacing by servlet

  1. #1
    Join Date
    Sep 2004
    Posts
    23

    Default MDB replacing by servlet

    Hi,

    I was thinking of implementing something like this :

    a controller servlet listens to different jms queues. Depending on the message, an action is performed by a certain class. This class reports back to the controller which sends a response back on a queue. In fact, what I am doing here is sort of implementing a message-driven bean with a servlet.
    Is this a good idea ? Are there simpler ways ? I don't want to use mdb's, that's clear. Does Spring have some nice classes that could help me here ?

    thanks


    Henk

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Henk,

    What JMS implementation are you using? ActiveMQ has support for message driven POJOs using Spring. Plus Spring has something similar in the sandbox which you could try out.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3
    Join Date
    Sep 2004
    Posts
    23

    Default

    Quote Originally Posted by robh
    Henk,

    What JMS implementation are you using? ActiveMQ has support for message driven POJOs using Spring. Plus Spring has something similar in the sandbox which you could try out.

    Rob
    I'm using the JBoss jms, but this is not fixed. I will take a look at activemq. Where can I find the Spring sandbox ?
    Note that I would like to use it in Tomcat (a webcontainer), not standalone.

Similar Threads

  1. Servlet writing byte[] image in jsp page
    By xmartinx in forum Web
    Replies: 2
    Last Post: Apr 26th, 2012, 04:50 AM
  2. register a servlet as bean
    By incubator in forum Web
    Replies: 3
    Last Post: Sep 6th, 2005, 08:47 AM
  3. Replies: 1
    Last Post: May 16th, 2005, 03:03 PM
  4. May I advice a Servlet?
    By dobri in forum AOP
    Replies: 2
    Last Post: Apr 20th, 2005, 08:20 AM
  5. Replies: 3
    Last Post: Nov 25th, 2004, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •