[jboss-user] [EJB 3.0] - Re: JBoss 5.0.0.CR1, @LocalBinding
gla-001
do-not-reply at jboss.com
Tue Sep 9 05:46:35 EDT 2008
JNDI View:
anonymous wrote :
| Other components with java:comp namespace
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=CategoryManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=SearchManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=ArticleCacheManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=SearchResourcesBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=UserManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=WebObjManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=OrderManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=WebstageCacheMgrBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=AbstractSessionBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=CacheManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=OISManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java:comp namespace of the component jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=AssistManagerBean,service=EJB3 :
|
| +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
| +- EJBContext (class: javax.ejb.EJBContext)
| +- env (class: org.jnp.interfaces.NamingContext)
|
|
| java: Namespace
|
| +- securityManagement (class: org.jboss.security.integration.JNDIBasedSecurityManagement)
| +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
| +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
| +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
| +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
| +- comp (class: javax.namingMain.Context)
| +- jaas (class: javax.naming.Context)
| | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
| +- timedCacheFactory (class: javax.naming.Context)
| Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
| +- TransactionPropagationContextExporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
| +- Mail (class: javax.mail.Session)
| +- TransactionPropagationContextImporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
| +- policyRegistration (class: org.jboss.security.plugins.JBossPolicyRegistration)
| +- xyz4 (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
| +- TransactionManager (class: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate)
|
|
| Global JNDI Namespace
|
| +- UserTransactionSessionFactory (proxy: $Proxy89 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
| +- console (class: org.jnp.interfaces.NamingContext)
| | +- PluginManager (proxy: $Proxy87 implements interface org.jboss.console.manager.PluginManagerMBean)
| +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
| +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
| +- jmx (class: org.jnp.interfaces.NamingContext)
| | +- invoker (class: org.jnp.interfaces.NamingContext)
| | | +- RMIAdaptor (proxy: $Proxy86 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| | +- rmi (class: org.jnp.interfaces.NamingContext)
| | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
| +- TomcatAuthenticators (class: java.util.Properties)
| +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
|
A bean looks like this:
| @Stateless
| @Pool (value="StrictMaxPool", maxSize=1)
| @LocalBinding (jndiBinding="server.configurationMgr.interfaces.ConfigurationManagerLocal")
| @RemoteBinding (jndiBinding="server.configurationMgr.interfaces.ConfigurationManagerRemote")
|
|
|
| public class ConfigurationManagerBean
| implements ConfigurationManagerLocal, ConfigurationManagerRemote {
| private Properties configuration;
| private Properties defaultConfiguration;
| ...
|
The interfaces:
| @Local
| public interface ConfigurationManagerLocal extends ConfigurationManagerDefinition{
| ....
|
| @Remote
| public interface ConfigurationManagerRemote extends ConfigurationManagerDefinition {
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175247#4175247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175247
More information about the jboss-user
mailing list