5 Replies Latest reply on Jun 30, 2004 12:00 AM by pra

    Can a CMP EJB be a JMS Publisher?

    crowleym

      That's not the problem.

      Pretty sure the problem has somethign to do with this part of the error:
      (no security manager: RMI class loader disabled)

        • 1. Re: Can a CMP EJB be a JMS Publisher?

          Your second option of using a stateless session to implement the reporting is a good one. In most cases you should implement such facade for your entities in any case. By using the stateless session as your report message generator you separate the reporting functionality from the persistence functionality. This allows the reporting mechanism to evolve independently of the entity bean.

          • 2. Re: Can a CMP EJB be a JMS Publisher?
            iihome

            In theroy is ok. but in JBoss is not ok, i try to use a session bean to publish a message but the JBoss crach at once while publishing

            • 3. Re: Can a CMP EJB be a JMS Publisher?

              Well, thats strange since both the tests for JMS-RA and the TopicHelloBean in the JMS examples (JBoss manual) all do this perfectly fine.

              What JBoss version are you using?

              //Peter

              • 4. Re: Can a CMP EJB be a JMS Publisher?
                iihome

                the manual is running the publisher or subscriber in dos mode. I try to run by Servlet or Session Bean, it would not run at all

                • 5. Re: Can a CMP EJB be a JMS Publisher?

                  Hm, the manual/src/examples/org/jboss/docs/jms/ra/bean/TopicHelloBean.java is most defenately not run in dos mode. It is a deployed session bean, invoked from a client.

                  You will NOT be able to use JMS-RA from a servlet tough, since you do not have containermanaged transactions in servlets.

                  //Peter