0 Replies Latest reply on May 30, 2012 5:55 AM by sarahfr

    RMI adaptor/ JNDI in Jboss 7

    sarahfr

      Hi,

      to use RMI Adaptor interface, I used this code but it does not work.

       

       

        final javax.naming.InitialContext ctx= new javax.naming.InitialContext();

                                    repository = (javax.management.MBeanServerConnection) ctx.lookup("java:comp/env/jmx/rmi/RMIAdaptor");

                                    serverName = new javax.management.ObjectName("cic:type=CICObjectShare");

       

      please i need your help

      in jboss 4, I used this proprieties:


      ##################

      # JNDI properties #

      ###################

       

       

      # JNDI name of queue connection factory

      QueueConnectionFactoryJNDI=ConnectionFactory

      # Asynch service - name of the request queue.

      #asyncRequestQueueName=

      # Optional. The class name of DataSource factory implementation.

      # Defaults to DataSourceJNDIFactory.

      jdbc.tool.DataSourceFactory=com.accesscommerce.cart.jdbc.tool.DataSourceJNDIFactory

      #Mandatory for the DataSourceJNDIFactory. The JNDI name of a DataSource.

      jdbc.tool.DataSourceJNDIFactory.jndiDataSource=java:/cartDataSource


       

      and now in JBoss 7.1 how to define the proprieties of JNDI???

      thanks