Avatar billede fredand Forsker
16. maj 2006 - 09:43 Der er 2 kommentarer og
1 løsning

Is Message Driven Beans available in EJB 1.0?

Hello!

This is an urgent question that I need an answer to. Is Message Driven Beans available in EJB 1.0?

Our customer just recently realized that they only have license for EJB 1.0 and we got a solution build on Message Driven Beans.

I have a small memory that I have read that MDB is only available in EJB 2.0.

If it is only available in EJB 2.0 I would love to get some suggestions for some other solution.

One solution is of course to buy the license for EJB 2.0 (I did not know that you need to buy this), but if there is any other suggestion please let me know.

Best regards
Fredrik

Below is a snapshot of our ejb-jar.xml. Correct me if I'm wrong when I say that it is in this file we specify EJB 1 or EJB 2.

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>


<!-- Generated XML! -->

<ejb-jar>
  <enterprise-beans>
    <message-driven>
      <ejb-name>ReportManagerMDB</ejb-name>
      <ejb-class>jms.controller.ReportManagerMDB</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
        <destination-type>javax.jms.Topic</destination-type>
      </message-driven-destination>

    </message-driven>
  </enterprise-beans>
Avatar billede arne_v Ekspert
16. maj 2006 - 13:20 #1
no

your memory are correct - MDB is EJB 2.0

----

you do not need a license for using EJB 2.0, but you may need a license to
upgrade your app server to a version that supports EJB 2.0

as I recall it then it is only for CMP entity beans that you specify version 2
in ejb-jar.xml
Avatar billede fredand Forsker
16. maj 2006 - 15:27 #2
Thanks for your answer mate!

Give a svar so I can reward you!

Best regards
Fredrik
Avatar billede arne_v Ekspert
16. maj 2006 - 16:33 #3
ok
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester