0 Replies Latest reply on Jan 4, 2002 12:53 PM by Padmaja Ragavendra

    Add local interfaces to global jndi namespace

    Padmaja Ragavendra Newbie

      Hi,
      I have an ejb that has a local home interface.
      the jboss.xml is

      <ejb-name>JobSequencerEB</ejb-name>
      <local-jndi-name>HPDSPrototype/JobSequencer</local-jndi-name>
      <configuration-name></configuration-name>
      my ejb-jar.xml is


      <ejb-name>JobSequencerEB</ejb-name>
      <local-home>com.hp.pii.hpdsp.server.ejb.JobSequencerLHif</local-home>
      com.hp.pii.hpdsp.server.ejb.JobSequencerLif
      <ejb-class>com.hp.pii.hpdsp.server.ejb.JobSequencerEB</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      <primkey-field>objectName</primkey-field>
      <cmp-field>
      JobSequencer Name
      <field-name>objectName</field-name>
      </cmp-field>
      <cmp-field>
      Job Sequence Id
      <field-name>jobSequenceId</field-name>
      </cmp-field>
      <cmp-field>
      Job Sequence Counter
      <field-name>jobSequenceCounter</field-name>
      </cmp-field>
      True
      <resource-ref>
      A Topic ConnectionFactory
      <res-ref-name>jms/TopicConnectionName</res-ref-name>
      <res-type>javax.jms.TopicConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      <resource-ref>
      A Topic
      <res-ref-name>jms/TopicName</res-ref-name>
      <res-type>javax.jms.Topic</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>


      when I deploy this the jndiview list is


      java:comp namespace of the JobSequencerEB bean:

      +- env (class: org.jnp.interfaces.NamingContext)

      java:comp namespace of the SchemaSB bean:

      +- env (class: org.jnp.interfaces.NamingContext)

      java: Namespace

      +- MinervaXACMFactory (class: org.jboss.pool.connector.jboss.MinervaXACMFactory)
      +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- DefaultDS (class: org.jboss.pool.jdbc.xa.XAPoolDataSource)
      +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
      +- MinervaDS (class: org.jboss.pool.connector.jdbc.JDBCDataSource)
      +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
      +- comp (class: javax.naming.Context)
      +- MinervaSharedLocalCMFactory (class: org.jboss.pool.connector.jboss.MinervaSharedLocalCMFactory)
      +- JmsXA (class: org.jboss.jms.ra.JmsConnectionFactoryImpl)
      +- jaas (class: javax.naming.Context)
      +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
      +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
      +- Mail (class: javax.mail.Session)
      +- MinervaNoTransCMFactory (class: org.jboss.pool.connector.jboss.MinervaNoTransCMFactory)
      +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
      +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
      +- TransactionManager (class: org.jboss.tm.TxManager)

      Global JNDI Namespace

      +- jmx:chipshot:rmi (class: org.jboss.jmx.server.RMIConnectorImpl)
      +- DocMgr (class: org.jnp.interfaces.NamingContext)
      | +- started (class: java.lang.Boolean)
      | +- root (class: java.lang.String)
      | +- port (class: java.lang.Integer)
      +- TopicConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
      +- Hpdsp (class: org.jnp.interfaces.NamingContext)
      | +- ApplicationProperties (class: com.hp.pii.hpdsp.server.ApplicationProperties)
      +- jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
      +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
      +- UserTransactionSessionFactory (class: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl)
      +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- invokers (class: org.jnp.interfaces.NamingContext)
      | +- HPDSPrototype (class: org.jnp.interfaces.NamingContext)
      | | +- TestTimer (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | | +- ObjectLister (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | | +- Schema (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | | +- DeliveryObjectManager (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | | +- TestEvent (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | | +- ConfigObjectManager (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
      +- UILXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- RMIXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- HPDSPrototype (class: org.jnp.interfaces.NamingContext)
      | +- TestTimer (class: $Proxy16)
      | +- ObjectLister (class: $Proxy8)
      | +- Schema (class: $Proxy19)
      | +- Supervisor (class: org.jnp.interfaces.NamingContext)
      | | +- JobProcessor (class: com.hp.pii.hpdsp.server.supervisor.JobProcessor)
      | +- DeliveryObjectManager (class: $Proxy6)
      | +- TestEvent (class: $Proxy12)
      | +- ConfigObjectManager (class: $Proxy3)
      +- queue (class: org.jnp.interfaces.NamingContext)
      | +- D (class: org.jboss.mq.SpyQueue)
      | +- HPDSPSupervisorJobActivator (class: org.jboss.mq.SpyQueue)
      | +- C (class: org.jboss.mq.SpyQueue)
      | +- B (class: org.jboss.mq.SpyQueue)
      | +- A (class: org.jboss.mq.SpyQueue)
      | +- controlQueue (class: org.jboss.mq.SpyQueue)
      | +- HPDSPSupervisorNotify (class: org.jboss.mq.SpyQueue)
      | +- testQueue (class: org.jboss.mq.SpyQueue)
      | +- ex (class: org.jboss.mq.SpyQueue)
      | +- F (class: org.jboss.mq.SpyQueue)
      | +- E (class: org.jboss.mq.SpyQueue)
      +- topic (class: org.jnp.interfaces.NamingContext)
      | +- example (class: org.jboss.mq.SpyTopic)
      | +- HPDSPEvents (class: org.jboss.mq.SpyTopic)
      | +- testTopic (class: org.jboss.mq.SpyTopic)
      | +- bob (class: org.jboss.mq.SpyTopic)
      +- UILConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
      +- servercollector (class: org.jboss.management.ServerDataCollector)
      +- RMIConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
      +- QueueConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)

      why is theJobSequnecerEB not seen in the global jndi space.
      What do I have to specify to put it in the global name space.
      I am trying to call this ejb from an Mbean an it gives
      an error local not bound.

      Please help

      thanks