facebook

namespace [closed]

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #229235 Reply

    skrishn1
    Member

    I developed a simple session ejb and deployed to jboss 3.2.7 server. Everything seems to work fine. The only issue I am seeing is the ejb is bound under global jndi namespace and not under ejb as I was expecting.

    The xdoclet tags for ejb is as follows

    **
    * XDoclet-based session bean. The class must be declared
    * public according to the EJB specification.
    *
    * To generate the EJB related files to this EJB:
    * – Add Standard EJB module to XDoclet project properties
    * – Customize XDoclet configuration for your appserver
    * – Run XDoclet
    *
    * Below are the xdoclet-related tags needed for this EJB.
    *
    * @ejb.bean name=”Test1″
    * display-name=”Name for Test1″
    * description=”Description for Test1″
    * jndi-name=”ejb/Test1″
    * type=”Stateless”
    * view-type=”remote”
    */

    Appreciate your response.

    Thanks

    #229264 Reply

    Riyad Kalla
    Member

    Can you clarify what you mean by “the ejb is bound under global jndi namespace and not under ejb as I was expecting”?

    #229318 Reply

    skrishn1
    Member

    Riyad,

    I have pasted the Global JNDI namespace viewed through the jmx-console.

    Global JNDI Namespace

    +- HAILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- jmx (class: org.jnp.interfaces.NamingContext)
    | +- invoker (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor (proxy: $Proxy32 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)
    +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- UserTransactionSessionFactory (proxy: $Proxy13 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
    +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- Vline (proxy: $Proxy59 implements interface myectut.interfaces.VlineHome,interface javax.ejb.Handle)
    +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
    +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- HAILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- queue (class: org.jnp.interfaces.NamingContext)
    | +- A (class: org.jboss.mq.SpyQueue)
    | +- testQueue (class: org.jboss.mq.SpyQueue)
    | +- ex (class: org.jboss.mq.SpyQueue)
    | +- DLQ (class: org.jboss.mq.SpyQueue)
    | +- D (class: org.jboss.mq.SpyQueue)
    | +- C (class: org.jboss.mq.SpyQueue)
    | +- B (class: org.jboss.mq.SpyQueue)
    +- topic (class: org.jnp.interfaces.NamingContext)
    | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
    | +- testTopic (class: org.jboss.mq.SpyTopic)
    | +- securedTopic (class: org.jboss.mq.SpyTopic)
    +- console (class: org.jnp.interfaces.NamingContext)
    | +- PluginManager (proxy: $Proxy33 implements interface org.jboss.console.manager.PluginManagerMBean)
    +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- ejb (class: org.jnp.interfaces.NamingContext)
    | +- Account (proxy: $Proxy50 implements interface com.ford.it.beans.interfaces.AccountHome,interface javax.ejb.Handle)
    | +- Echo (proxy: $Proxy45 implements interface tutorial.interfaces.EchoHome,interface javax.ejb.Handle)
    +- Test1 (proxy: $Proxy57 implements interface com.bsoft.session.interfaces.Test1Home,interface javax.ejb.Handle)
    +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)

    As you can see towards the bottom , Test1 is directly under global namespace (than the Account and Echo ones which are under ejb).

    Thanks

    #229356 Reply

    Greg
    Member

    Can you post your ejb-jar.xml and jboss.xml deployment descriptors?

    #229377 Reply

    skrishn1
    Member

    Figured it out. I had mistyped in jboss -xdoclet – to be included under src/META_INF instead of src/META-INF.

    Thanks for the help.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: namespace [closed]

You must be logged in to post in the forum log in