2 Replies Latest reply on May 27, 2011 12:20 PM by Galder Zamarreño

    Please provide some configuration sample for ManagedConnectionFactory

    patilka Newbie

      Hi ,

       

      Can anybody please provide the sample configuration for ManagedConnectionFactory.

       

       

      I am trying with below properties.

       

      <property name="connectionFactoryClass" value="org.infinispan.loaders.jdbc.connectionfactory.ManagedConnectionFactory"/>

                                                <property name="connectionUrl" value="http://x.x.x.x:8001"/>

                                                <property name="datasourceJndiLocation" value="jndi/Infinispan_test_pool"/>

          <property name="userName" value="weblogic"/>

                                                <property name="password" value="xxxxx"/>

       

       

      Is there any other properties i need to mention ? I am getting exception like below

       

       

      May 12, 2011 9:47:36 PM org.infinispan.loaders.jdbc.connectionfactory.ManagedConnectionFactory start

      SEVERE: Could not lookup connection with datasource jndi/Infinispan_test_pool

      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

              at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)

              at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

              at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)

              at javax.naming.InitialContext.lookup(InitialContext.java:392)

              at org.infinispan.loaders.jdbc.connectionfactory.ManagedConnectionFactory.start(ManagedConnectionFactory.java:57)

              at org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore.start(JdbcStringBasedCacheStore.java:113)

       

       

       

       

      Regards,

      Kavita