3 Replies Latest reply on Jul 24, 2004 1:50 PM by toastchee

    suggestion needed

      Hello,

      here's the situation: i've got a fairly elaborate app written for jboss 3.2.2RC2. it's almost done but i've been given the task of adding a new feature which will synchronous much of the data with an external accounting software package.

      for example, a user creates a new payment in jboss. i need a component that will be aware of the modification and send the PaymentBean off to be synchronised with the accounting software.

      I don't need help with the synchronization portion, that's all set. I need someone to suggest the best way of "listening" for entity bean modifications. Thanks, any help would be greatly appreciated. Deadline fast approaching.

      matt tucker

        • 1. Re: suggestion needed
          darranl

          My first idea would be to wrap all entity bean access behind session beans.

          The session bean could then put a message on a JMS Queue to say a change has occured.

          A message driven bean could then execute your synchronisation logic when it receives the message.

          • 2. Re: suggestion needed

            well, the problem is that it's a fairly large system and to wrap all the entity beans in session beans would be a fairly large project.

            i was hoping that there would be a way to do this that would not involve rewriting a lot of code.

            • 3. Re: suggestion needed

              Just yesterday, I noticed on xdoclet's site that there's a tag for Entity beans that will automatically wrap them in a session bean. Can't remember the name though....that might reduce some of your work...