Why is JNDI view not showing any messaging object?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Why is JNDI view not showing any messaging object?

Vimal Kansal
Hi,

I am running, standloane with standalone-preview.xml. On wweb console,
looking at JMS subsystem, I can see JNDI entrie :
java:ConnectionFactory, RemoteConnectionFactory and queue/Test. But when
I run the command /subsystem=naming:jndi-view, I don't see these
entries, I get the following output :

================================================================================================
[standalone@localhost:9999 /] /subsystem=naming:jndi-view
{
     "outcome" => "success",
     "result" => {
         "java: contexts" => {
             "java:jboss" => {
                 "jaas" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "children" => {"other" => {
                         "class-name" =>
"org.jboss.as.security.plugins.SecurityDomainContext",
                         "value" =>
"org.jboss.security.authentication.JBossCachedAuthenticationManager@142e23f"
                     }}
                 },
                 "TransactionManager" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" =>
"com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate@113e371"
                 },
                 "orb" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "org.jacorb.orb.ORB@cead6"
                 },
                 "datasources" => {
                     "class-name" => "javax.naming.Context",
                     "children" => {"ExampleDS" => {
                         "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                         "value" =>
"org.jboss.jca.adapters.jdbc.WrapperDataSource@85ce5a"
                     }}
                 },
                 "irpoa" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "org.jacorb.poa.POA@3acf34"
                 },
                 "poa" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "org.jacorb.poa.POA@2cb491"
                 },
                 "TransactionSynchronizationRegistry" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" =>
"com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple@17cdd50"
                 },
                 "corbanaming" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" =>
"IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000100000000000000E0000102000000000A3132372E302E302E3100
0DC8000000144A426F73732F4E616D696E67504F412F726F6F74000000030000000000000008000000004A414300000000010000002000000000000100010000000105010001000101090000000205010001000101000000002100000070000000000000
00010000000000000024000000200000007E00000000000000010000000D3139322E3136382E31332E3100000DC900400000000000080606678102010101000000170401000806066781020101010000000764656661756C740000000000000000000000
000000000000"
                 }
             },
             "java:global" => {"Hello" => {
                 "class-name" => "javax.naming.Context",
                 "children" => {
                     "Salutation!packt.Salutation" => {
                         "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                         "value" => "Proxy for view class:
packt.Salutation of EJB: Salutation"
                     },
                     "Salutation" => {
                         "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                         "value" => "Proxy for view class:
packt.Salutation of EJB: Salutation"
                     }
                 }
             }}
         },
         "applications" => {"Hello.war" => {
             "java:app" => {
                 "AppName" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "Hello"
                 },
                 "Hello" => {
                     "class-name" => "javax.naming.Context",
                     "children" => {
                         "Salutation!packt.Salutation" => {
                             "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                             "value" => "Proxy for view class:
packt.Salutation of EJB: Salutation"
                         },
                         "Salutation" => {
                             "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                             "value" => "Proxy for view class:
packt.Salutation of EJB: Salutation"
                         }
                     }
                 }
             },
             "modules" => {"Hello" => {"java:module" => {
                 "Salutation!packt.Salutation" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "Proxy for view class: packt.Salutation
of EJB: Salutation"
                 },
                 "Validator" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" =>
"org.hibernate.validator.engine.ValidatorImpl@410541"
                 },
                 "TimerService" => {"class-name" =>
"org.jboss.as.naming.context.ModularReference"},
                 "Salutation" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "Proxy for view class: packt.Salutation
of EJB: Salutation"
                 },
                 "UserTransaction" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "Transaction: unknown"
                 },
                 "ValidatorFactory" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" =>
"org.jboss.as.ee.beanvalidation.LazyValidatorFactory@11d89f8"
                 },
                 "ModuleName" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" => "Hello"
                 },
                 "TransactionSynchronizationRegistry" => {
                     "class-name" =>
"org.jboss.as.naming.context.ModularReference",
                     "value" =>
"com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple@17cdd50"
                 },
                 "EJBContext" => {"class-name" =>
"org.jboss.as.naming.context.ModularReference"}
             }}}
         }}
     }
}
[standalone@localhost:9999 /]
=====================================================================================================================

Also, I am trying to inject Connection factory and queue ina simple
servlet as follows :

package packt;


/**
  * Servlet implementation class HelloServlet
  */
@WebServlet("/HelloServlet")
public class HelloServlet extends HttpServlet {
     private static final long serialVersionUID = 1L;

     @Resource(mappedName = "java:/ConnectionFactory")
     private QueueConnectionFactory queueConnectionFactory;
     @Resource(mappedName = "queue/test")
     private Queue queue;


I get the following exception :

missing/unsatisfied dependencies:
       service jboss.naming.context.java.ConnectionFactory (missing)
       service
jboss.naming.context.java.module.Hello.Hello."env/packt.HelloServlet/queue"
(missing)
       service
jboss.naming.context.java.module.Hello.Hello."env/packt.HelloServlet/queueConnectionFactory"
(missing)
       service
jboss.naming.context.java.module.Hello.Hello.env/queue/test (missing)


I am not sure if it is a bug with AS7 or I am doing something wrong?

Thx

Vimal







































































_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev