Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta-1
    • Fix Version/s: 3.0-beta-1
    • Component/s: deployment, ejb3 simplified
    • Labels:
      None

      Description

      @Target(ElementType.TYPE)
      @Retention(RetentionPolicy.RUNTIME)
      public @interface Remote {
      Class[] value() default {};
      }

        Activity

        Hide
        David Blevins added a comment -

        Fixed.

        $ svn ci container/openejb-core/src/main/java/org/apache/openejb/alt/config/AnnotationDeployer.java
        Sending container/openejb-core/src/main/java/org/apache/openejb/alt/config/AnnotationDeployer.java
        Transmitting file data .
        Committed revision 490674.

        Show
        David Blevins added a comment - Fixed. $ svn ci container/openejb-core/src/main/java/org/apache/openejb/alt/config/AnnotationDeployer.java Sending container/openejb-core/src/main/java/org/apache/openejb/alt/config/AnnotationDeployer.java Transmitting file data . Committed revision 490674.
        Hide
        David Blevins added a comment -

        Ok I see. @Local or @Remote is allowed to be used on the bean class with no corresponding interface class name provided these conditions are met:

        • The bean has exactly one business interface
        • That business interface is not annotated contrarily (@Remote on the bean while interfaces is annotated @Local, and vice versa)

        As this affects @Local too I'll reopen that issue as well.

        Show
        David Blevins added a comment - Ok I see. @Local or @Remote is allowed to be used on the bean class with no corresponding interface class name provided these conditions are met: The bean has exactly one business interface That business interface is not annotated contrarily (@Remote on the bean while interfaces is annotated @Local, and vice versa) As this affects @Local too I'll reopen that issue as well.
        Hide
        Mohammad Nour added a comment -

        When you annotate an EJB with the @Remote annotation while it's explicitly implement the business interface, the business interface is considered a local business interface not a remote one, and is deployed uner the JNSI name of this form <BeanImplClass>+Business+Local, and to workaround it you have to mention the name of the business interface, for example @Remote(

        {SoppingCart.class}

        ). see http://marc.theaimsgroup.com/?l=openejb-development&m=116721559121061&w=2

        Show
        Mohammad Nour added a comment - When you annotate an EJB with the @Remote annotation while it's explicitly implement the business interface, the business interface is considered a local business interface not a remote one, and is deployed uner the JNSI name of this form <BeanImplClass>+Business+Local, and to workaround it you have to mention the name of the business interface, for example @Remote( {SoppingCart.class} ). see http://marc.theaimsgroup.com/?l=openejb-development&m=116721559121061&w=2
        Hide
        David Blevins added a comment -

        $ svn ci
        Sending container/openejb-core/pom.xml
        Adding container/openejb-core/src/main/java/org/apache/openejb/alt/config/AnnotationDeployer.java
        Sending container/openejb-core/src/main/java/org/apache/openejb/alt/config/DeploymentLoader.java
        Sending container/openejb-core/src/main/java/org/apache/openejb/alt/config/EjbJarInfoBuilder.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/AroundInvoke.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/AssemblyDescriptor.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/ContainerTransaction.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/EnterpriseBean.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/EntityBean.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/MessageDrivenBean.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/Method.java
        Adding container/openejb-jee/src/main/java/org/apache/openejb/jee/MethodTransaction.java
        Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/SessionBean.java
        Transmitting file data .............
        Committed revision 470257.

        Show
        David Blevins added a comment - $ svn ci Sending container/openejb-core/pom.xml Adding container/openejb-core/src/main/java/org/apache/openejb/alt/config/AnnotationDeployer.java Sending container/openejb-core/src/main/java/org/apache/openejb/alt/config/DeploymentLoader.java Sending container/openejb-core/src/main/java/org/apache/openejb/alt/config/EjbJarInfoBuilder.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/AroundInvoke.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/AssemblyDescriptor.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/ContainerTransaction.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/EnterpriseBean.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/EntityBean.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/MessageDrivenBean.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/Method.java Adding container/openejb-jee/src/main/java/org/apache/openejb/jee/MethodTransaction.java Sending container/openejb-jee/src/main/java/org/apache/openejb/jee/SessionBean.java Transmitting file data ............. Committed revision 470257.

          People

          • Assignee:
            David Blevins
            Reporter:
            David Blevins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development