1 Reply Latest reply on May 11, 2006 9:45 AM by jaikiran pai

    name attribute of mbean JNDIBINDINGServiceMgr?

    Nancy Aggarwal Newbie

      Hi,

      I want to bind some String to JNDI and in jboss naming tutorial I found example 3.5.1 JNDI Binding Manager:

      <mbean code="org.jboss.naming.JNDIBindingServiceMgr"
      name="jboss.tests:name=example1">
      <attribute name="BindingsConfig" serialDataType="jbxb">
      <jndi:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:jndi="urn:jboss:jndi-binding-service"
      xs:schemaLocation="urn:jboss:jndi-binding-service resource:jndi-binding-service_1_<jndi:binding name="bindexample/message">
      <jndi:value trim="true">
      Hello, JNDI!
      </jndi:value>
      </jndi:binding>
      </jndi:bindings>
      </attribute>
      </mbean>


      I placed this code in jboss-service.xml.But it is unable to configure service

      Why?What should be given in name attribute.I changed name attribute to

      <mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="jboss.naming:name=JNDIBindingServiceMgr">


      But same problem arises.Can someone tell what is the value of name attribute?

      12:14:30,828 INFO [ServiceConfigurator] Problem configuring service jboss.tests:name=example1
      org.jboss.xb.binding.JBossXBException: Failed to parse source: null
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:154)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:141)
       at org.jboss.system.ServiceConfigurator.parseJbxbSerialData(ServiceConfigurator.java:643)
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:327)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)