3 Replies Latest reply on Oct 21, 2005 12:36 PM by kourosh bagheri

    @Remove question

    Meikel Bode Newbie

      Hi,

      just a question about the @Remove annotation.

      If I have an MDI Client with some connections to the AS at the same time, each to its own instance of the same SFSB type.

      Now, if one of the connections is ready an doesn't need its SFSB anymore, it calles the @Remove annotated method of its instance for clean up. May that cause failures for the other connections to other instances of the SFSB?

      Thanks,

      - Meikel


        • 1. Re: @Remove question
          kourosh bagheri Newbie

          I can not understand your question, but I would like to. please explain your question a little bit more precise.

          -----

          Hi, beschreib mal das Problem bitte etwas genauer!

          • 2. Re: @Remove question
            Meikel Bode Newbie

            hmmm ok:

            What exactly happens, when a @Remote annotated method is called?

            Thanks,

            - Meikel

            ----

            Was genau passiert, wenn eine @Remote annotierte Methode aufgerufen wird?

            • 3. Re: @Remove question
              kourosh bagheri Newbie

               

              "mbe@bil.de" wrote:
              hmmm ok:

              What exactly happens, when a @Remote annotated method is called?

              Thanks,

              - Meikel

              ----

              Was genau passiert, wenn eine @Remote annotierte Methode aufgerufen wird?


              @Remote or @Remove?

              @Remote denotes an interface as a remote interface of a session bean. Optionally you van also denote the bean with @Remote

              @Remove:
              You can annotate a method to act as a Terminator for the bean it resides whithin. A call to that method will eliminate the bean instance.
              Here is a citation from :
              http://www.javaworld.com/javaworld/jw-08-2004/jw-0809-ejb.html

              .... you declare a stateless session bean by using the @Stateless annotation on the Java class. For stateful beans, the @Remove annotation is marked on a particular method to indicate that the bean instance should be removed after a call to the marked method completes.



              ----
              Ich hoffe das hilft!