10 Replies Latest reply on Dec 28, 2001 7:11 PM by ipozeng

    Ejb 2.0 Local Interface Support in Jboss??

    sam33r

      Does the Version 2.4 of JBoss support Local Interfaces as specified in the second public draft of J2EE1.3 ??

      And does JBoss offer Pooling for Message Driven Beans??

      Pls mail a copy of reply at pinkpink@rediffmail.com too !!

        • 1. Re: Ejb 2.0 Local Interface Support in Jboss??
          chhavi

          Abe tu yahan kya kar raha hai .

          • 2. Re: Ejb 2.0 Local Interface Support in Jboss??
            hraun

            Chhavi ji,
            Anuvad Kijie! Ham log Hindi(urdu?) nahi ate hai. (Ya ham dhire dhire sikh raha hai) :-D
            Otherwise chaos will ensue!

            Cheers

            • 3. Re: Ejb 2.0 Local Interface Support in Jboss??
              hraun

              BTW,
              I did a search for "local interfaces" & found the answer:
              no.
              2.4.x doesn't support local interfaces.

              Peet

              • 4. Re: Ejb 2.0 Local Interface Support in Jboss??
                christoph

                I am using 2.4.1 here, and I can use local interfaces (have played around a little bit with them and not yet found a problem).

                Christoph

                • 5. Re: Ejb 2.0 Local Interface Support in Jboss??
                  tittoassini

                  Could you provide an example of an ejb-jar.xml and jboss.xml file with definitions of local interfaces?

                  Many thanks

                  • 6. Re: Ejb 2.0 Local Interface Support in Jboss??
                    christoph

                    > Could you provide an example of an ejb-jar.xml and
                    > jboss.xml file with definitions of local interfaces?

                    Ok, here is a part of my ejb-jar.xml:
                    [pre]
                    ...

                    EJB to handle user data
                    <display-name>UserBean</display-name>
                    <ejb-name>UserBean</ejb-name>
                    com.foo.user.UserHome
                    com.foo.user.User
                    <local-home>com.foo.user.UserLocalHome</local-home>
                    com.foo.user.UserLocal
                    <ejb-class>com.foo.user.UserEJB</ejb-class>
                    <persistence-type>Container</persistence-type>
                    <prim-key-class>java.lang.Integer</prim-key-class>
                    False
                    <cmp-field>
                    a unique numerical id
                    <field-name>id</field-name>
                    </cmp-field>

                    <cmp-field>
                    the user's name
                    <field-name>name</field-name>
                    </cmp-field>

                    <cmp-field>
                    the user's userID (used forl ogin)
                    <field-name>userID</field-name>
                    </cmp-field>

                    <cmp-field>
                    the user's password
                    <field-name>password</field-name>
                    </cmp-field>
                    <primkey-field>id</primkey-field>

                    <ejb-local-ref>
                    <ejb-ref-name>ejb/KeyFinderLocalBean</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
                    <local-home>com.foo.user.KeyFinderLocalHome</local-home>
                    com.foo.user.KeyFinderLocal
                    <ejb-link>KeyFinderBean</ejb-link>
                    </ejb-local-ref>

                    ...
                    [/pre]

                    Note the local reference to KeyFinderBean (in a <ejb-local-ref> instead of <ejb-ref> for remote interfaces).

                    In my jboss.xml file, I did not have to change anything:

                    [pre]
                    ...

                    <ejb-name>UserBean</ejb-name>
                    <jndi-name>foo/user/UserBean</jndi-name>

                    ...
                    [/pre]

                    Hope that helps,

                    Christoph

                    • 7. Re: Ejb 2.0 Local Interface Support in Jboss??
                      marc.fleury

                      > BTW,
                      > I did a search for "local interfaces" & found the
                      > answer:
                      > no.
                      > 2.4.x doesn't support local interfaces.

                      Don't rely on the free documentation it is out of date, the skinny is yes we implement local interfaces in 2.4.x

                      marcf

                      • 8. Re: Ejb 2.0 Local Interface Support in Jboss??
                        kubokushi

                        Mark
                        Can you please point me to the JBoss documentation where it explains the Local Interface exists for JBoss 2.4.x and higher.

                        Thanks

                        KK

                        • 9. Re: Ejb 2.0 Local Interface Support in Jboss??
                          armint

                          You should buy the documentation at http://www.flashline.com/components/productsbyvendor.jsp?&vendorid=1376&affiliateid=260343. Very inexpensive and well worth it. The CMP2.0 docs discuss local interfaces. While the JBoss server documentation only mentions local interfaces in a few spots, you should get it also, as it details the various server components.

                          • 10. I want to buy it
                            ipozeng

                            I am a Chinese.I love JBoss very much however i cannot find any books about JBoss in China.
                            Many Chinese programmer know English very well So the JBoss documentations transalted into Chinese are not necessary.English version is OK !

                            Call you help me to buy any jboss relative docs? i have no credit card :(

                            Thanks in advance!

                            ipo_z@cmmail.com