ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From san <hv.sanj...@gmail.com>
Subject Spring application context resource is not injected exception while starting ignite in jdbc driver mode
Date Wed, 24 Aug 2016 13:27:47 GMT
I am facing an issue while starting ignite in JDBC driver mode. i have my
cache in remote node and i need to access using plain sql queries. Hence i
am using ignite jdbc driver. please find the code snippet.  

Class.forName("org.apache.ignite.IgniteJdbcDriver");
Connection conn =
DriverManager.getConnection("jdbc:ignite:cfg://ignite-jdbc.xml");
ResultSet rs = conn.createStatement().executeQuery("select * from users");

my xml also simple. since cache is already loaded in remote node.

  <bean id="grid.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
        
        <property name="clientMode" value="true"/>

        <property name="localHost" value="127.0.0.1"/>

       

        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                        <property name="addresses">
                            <list>
                                <value>127.0.0.1:47500..47549</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

please do the needful.. 




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-application-context-resource-is-not-injected-exception-while-starting-ignite-in-jdbc-driver-me-tp7272.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message