Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19688

[GSS] (7.3.z) jndi-view doen't show values for EJB in java:jboss/exported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.3.3.CR1, 7.3.3.GA
    • 7.3.0.GA
    • EJB, Naming
    • None
    • +
    • Hide

      reproducer.zip includes 2 apps as EJB3 and EJB2.

      1. build and deploy these apps to EAP with default standalone.xml.
      2. invoke '/subsystem=naming:jndi-view()' via cli.
      Show
      reproducer.zip includes 2 apps as EJB3 and EJB2. build and deploy these apps to EAP with default standalone.xml. invoke '/subsystem=naming:jndi-view()' via cli.

    Description

      jndi-view() show values as '?' for EJB on java:jboss/exported tree.
      These values could be seen on EAP 6.4.
      This can be reproduced on EAP 7.3.1 and 7.2.8.
      I attached a reproducer and these results as follows.

      reproducer.zip
      jndi_view_result_731.txt
      jndi_view_result_6422.txt
       
      EAP 7.3.1 / 7.2.8

      [standalone@localhost:9990 /] /subsystem=naming:jndi-view()
                  ...
                  "java:jboss/exported" => {
                      "ejb2-1.0" => {
                          "class-name" => "javax.naming.Context",
                          "children" => {
                              "GreeterEJB!com.example.GreeterEJBHome" => {
                                  "class-name" => "java.lang.Object",
                                  "value" => "?"
                              },
                              "GreeterEJB!com.example.GreeterEJBRemote" => {
                                  "class-name" => "java.lang.Object",
                                  "value" => "?"
                              }
                          }
                      },
                      "ejb3-1.0" => {
                          "class-name" => "javax.naming.Context",
                          "children" => {"GreeterEJB!com.example.GreeterRemote" => {
                              "class-name" => "java.lang.Object",
                              "value" => "?"
                          }}
                      }
                  },
      

       
      EAP 6.4

                  "java:jboss/exported" => {
                      "ejb2-1.0" => {
                          "class-name" => "javax.naming.Context",
                          "children" => {
                              "GreeterEJB!com.example.GreeterEJBHome" => {
                                  "class-name" => "com.example.GreeterEJBHome",
                                  "value" => "Proxy for remote EJB EJBHomeLocator{appName='', moduleName='ejb2-1.0', distinctName='', beanName='GreeterEJB', view='interface com.example.GreeterEJBHome'}"
                              },
                              "GreeterEJB!com.example.GreeterEJBRemote" => {
                                  "class-name" => "com.example.GreeterEJBRemote",
                                  "value" => "Proxy for remote EJB StatelessEJBLocator{appName='', moduleName='ejb2-1.0', distinctName='', beanName='GreeterEJB', view='interface com.example.GreeterEJBRemote'}"
                              }
                          }
                      },
                      "ejb3-1.0" => {
                          "class-name" => "javax.naming.Context",
                          "children" => {"GreeterEJB!com.example.GreeterRemote" => {
                              "class-name" => "com.example.GreeterRemote",
                              "value" => "Proxy for remote EJB StatelessEJBLocator{appName='', moduleName='ejb3-1.0', distinctName='', beanName='GreeterEJB', view='interface com.example.GreeterRemote'}"
                          }}
                      }
                  },
      

       

      Additionally,
      If EJB3 doesn't have @Remote, values are '?' in 'java:global' and 'java:app' similarly.
      The following behaviour is not changed from 6.4. But it seems a sililar behavir as the above.

      I attached the reproducer and these results as follows.

      reproducer_without_remote_if.zip
      jndi_view_result_no_remoteif_731.txt
      jndi_view_result_no_remoteif_6422.txt

      EAP 7.3.1

                  "java:global" => {
                      ...
                      "ejb3-1.0" => {
                          "class-name" => "javax.naming.Context",
                          "children" => {
                              "GreeterEJB" => {
                                  "class-name" => "com.example.GreeterEJB",
                                  "value" => "?"
                              },
                              "GreeterEJB!com.example.GreeterEJB" => {
                                  "class-name" => "com.example.GreeterEJB",
                                  "value" => "?"
                              }
                          }
                      }
                  }
              },
              "applications" => {
                  "ejb3-1.0.jar" => {
                      "java:app" => {
                          ...
                          "ejb3-1.0" => {
                              "class-name" => "javax.naming.Context",
                              "children" => {
                                  "GreeterEJB" => {
                                      "class-name" => "com.example.GreeterEJB",
                                      "value" => "?"
                                  },
                                  "GreeterEJB!com.example.GreeterEJB" => {
                                      "class-name" => "com.example.GreeterEJB",
                                      "value" => "?"
                                  }
                              }
                          }
                      },
                      "modules" => undefined
                  },
      

      Attachments

        1. ejb2.zip
          12 kB
        2. ejb3.zip
          15 kB
        3. jndi_view_result_6422.txt
          8 kB
        4. jndi_view_result_731.txt
          22 kB
        5. jndi_view_result_no_remoteif_6422.txt
          7 kB
        6. jndi_view_result_no_remoteif_731.txt
          21 kB
        7. reproducer_without_remote_if.zip
          8 kB
        8. reproducer.zip
          9 kB

        Issue Links

          Activity

            People

              parsharm Parul Sharma
              rhn-support-hdaicho Hiroki Daicho (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: