[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2091) Singleton EJBs do not honor @LocalBinding

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Thu May 13 19:40:26 EDT 2010


Singleton EJBs do not honor @LocalBinding
-----------------------------------------

                 Key: EJBTHREE-2091
                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-2091
             Project: EJB 3.0
          Issue Type: Bug
          Components: singleton
    Affects Versions: EJB3_1 1.0.7
            Reporter: Andrew Lee Rubinger
            Assignee: jaikiran pai


Given bean implementation class:

@Singleton
@Startup
@Local(DbInitializerLocalBusiness.class)
@LocalBinding(jndiBinding = DbInitializerLocalBusiness.JNDI_NAME)
// JBoss-specific JNDI Binding annotation
@TransactionManagement(TransactionManagementType.BEAN)
// We'll use bean-managed Tx's here, because @PostConstruct is fired in a
// non-transactional context anyway, and we want to have consistent
// handling when we call via "refreshWithDefaultData".
public class DbInitializerBean implements DbInitializerLocalBusiness

Global JNDI reports:

 +- DbInitializer (proxy: $Proxy143 implements interface org.jboss.ejb3.examples.chxx.transactions.ejb.DbInitializerLocalBusiness)

Additionally, we're missing INFO logging about where the proxies are bound.  This warning is also present:

18:35:11,166 WARN  [org.jboss.ejb3.session.SessionContainer] No JndiSessionRegistrarBase was found; byassing binding of Proxies to jboss.j2ee:service=EJB3,name=DbInitializerBean in Global JNDI.


-- 
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