[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-1455) EJB References are getting mapped to Business Default Interface, not Interface-Specific

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Sun Aug 10 22:35:50 EDT 2008


     [ https://jira.jboss.org/jira/browse/EJBTHREE-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lee Rubinger updated EJBTHREE-1455:
------------------------------------------

    Description: 
>From EJBRemoteHandler:

protected void ejbRefXml(AbstractEJBReferenceMetaData ref, String interfaceName, InjectionContainer container, String errorType)
   {
      String encName = "env/" + ref.getEjbRefName();
      InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections());
      if (container.getEncInjectors().containsKey(encName))
         return;

      String mappedName = ref.getMappedName();
      if (mappedName != null && mappedName.equals(""))
         mappedName = null;
      if(mappedName == null && ref.getResolvedJndiName() != null)
         mappedName = ref.getResolvedJndiName();
.....
}

mappedName becomes "stateless_sessioncontext_descriptor/SessionContextBean/local", when in JNDI this does not have the requisite interface-specific information associated with it:

+- stateful_sessioncontext_descriptor (class: org.jnp.interfaces.NamingContext)
  |   +- SessionContextBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF, com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF)
  |   |   +- local-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF)

  was:
>From EJBRemoteHandler:

protected void ejbRefXml(AbstractEJBReferenceMetaData ref, String interfaceName, InjectionContainer container, String errorType)
   {
      String encName = "env/" + ref.getEjbRefName();
      InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections());
      if (container.getEncInjectors().containsKey(encName))
         return;

      String mappedName = ref.getMappedName();
      if (mappedName != null && mappedName.equals(""))
         mappedName = null;
      if(mappedName == null && ref.getResolvedJndiName() != null)
         mappedName = ref.getResolvedJndiName();
.....
}

mappedName becomes "stateless_sessioncontext_descriptor/SessionContextBean/local", when in JNDI this does not have the requisite interface-specific information associated with it:

+- stateful_sessioncontext_descriptor (class: org.jnp.interfaces.NamingContext)
  |   +- AcceptBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF)
  |   |   +- local (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF)
  |   |   +- local-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF)
  |   +- SessionContextBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF, com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF)
  |   |   +- remote-com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF)
  |   |   +- local-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF)
  |   |   +- localHome (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalHome)
  |   |   +- remote-com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF)
  |   |   +- local-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF)
  |   +- TestBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote-com.sun.ts.tests.ejb30.common.sessioncontext.TestIF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.TestIF)




> EJB References are getting mapped to Business Default Interface, not Interface-Specific
> ---------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1455
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1455
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>
> From EJBRemoteHandler:
> protected void ejbRefXml(AbstractEJBReferenceMetaData ref, String interfaceName, InjectionContainer container, String errorType)
>    {
>       String encName = "env/" + ref.getEjbRefName();
>       InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections());
>       if (container.getEncInjectors().containsKey(encName))
>          return;
>       String mappedName = ref.getMappedName();
>       if (mappedName != null && mappedName.equals(""))
>          mappedName = null;
>       if(mappedName == null && ref.getResolvedJndiName() != null)
>          mappedName = ref.getResolvedJndiName();
> .....
> }
> mappedName becomes "stateless_sessioncontext_descriptor/SessionContextBean/local", when in JNDI this does not have the requisite interface-specific information associated with it:
> +- stateful_sessioncontext_descriptor (class: org.jnp.interfaces.NamingContext)
>   |   +- SessionContextBean (class: org.jnp.interfaces.NamingContext)
>   |   |   +- local (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF, com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF)
>   |   |   +- local-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF (class: Proxy for: com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list