Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2144

Specifying remote-binding / client-bind-url in jboss.xml binds under ProxyFactory in JNDI

    XMLWordPrintable

Details

    • Hide

      See attached example, set environment variables JAVA_HOME, JBOSS_HOME and ANT_HOME (to >= Apache Ant 1.7), run ant inside of the helloWorld.ear. Deploy dist/helloWorld.ear in JBoss. Check JNDI View MBean (list).

      Show
      See attached example, set environment variables JAVA_HOME, JBOSS_HOME and ANT_HOME (to >= Apache Ant 1.7), run ant inside of the helloWorld.ear. Deploy dist/helloWorld.ear in JBoss. Check JNDI View MBean (list).

    Description

      From JNDI View - here is what is bound. The binding under ProxyFactory shouldn't be there.

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

      +- https (class: Proxy for: com.jboss.examples.ejb3.Hello)
      +- http (class: Proxy for: com.jboss.examples.ejb3.Hello)

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

      +- HelloBean (class: org.jnp.interfaces.NamingContext)
        +- local-com.jboss.examples.ejb3.HelloLocal (class: Proxy for: com.jboss.examples.ejb3.HelloLocal)
        +- local (class: Proxy for: com.jboss.examples.ejb3.HelloLocal)
        +- remote-com.jboss.examples.ejb3.Hello (class: Proxy for: com.jboss.examples.ejb3.Hello)

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

      +- helloWorld (class: org.jnp.interfaces.NamingContext)
        +- HelloBean (class: org.jnp.interfaces.NamingContext)
          +- HelloBean (class: org.jnp.interfaces.NamingContext)
            +- https (proxy: $Proxy145 implements interface

      EJB Definition:

      @Stateless(name="HelloBean")
      public class HelloBean implements Hello, HelloLocal
      {
      ...
      }
      public @Remote interface Hello

      { ... }

      public @Local interface HelloLocal { }

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_0.xsd" version="3.0">
      <enterprise-beans>
      <session>
      <ejb-name>HelloBean</ejb-name>
      <remote-binding>
      <jndi-name>HelloBean/http</jndi-name>
      <client-bind-url>
      http://${jboss.bind.address}:8080/unified-invoker/Ejb3ServerInvokerServlet/?return-exception=true
      </client-bind-url>
      </remote-binding>
      <remote-binding>
      <jndi-name>HelloBean/https</jndi-name>
      <client-bind-url>
      https://${jboss.bind.address}:8443/unified-invoker/SSLEjb3ServerInvokerServlet/?return-exception=true
      </client-bind-url>
      </remote-binding>
      </session>
      </enterprise-beans>
      </jboss>

      Attachments

        Activity

          People

            arubinge@redhat.com Andrew Rubinger (Inactive)
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: