<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";>
    
    <bean id="personDataSource"
class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
        <property name="url" value="jdbc:mysql://[ip_address]:3306/test"/>
        <property name="user" value="test"/>
        <property name="password" value="test"/>
    </bean>
        
    <service interface="javax.sql.DataSource" ref="personDataSource">
        <service-properties>
            <entry key="osgi.jndi.service.name"
value="jdbc/PersonDataSource"/>
        </service-properties>
    </service>
</blueprint>

where [ip_address] = a.b.c.d



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Destroying-BlueprintContainer-for-bundle-datasource-xml-tp4033985p4033993.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to