That error sounds like you don't have Derby running or it isn't running on
port 1527.

On Sun, Nov 2, 2014 at 2:01 PM, Jonathan Vila Lopez <[email protected]
> wrote:

> Hello
>
> I'm trying to use Derby database for my bundle, and this bundle has a
> blueprint file with the datasource.
>
> But when I execute : jdbc:datasources it gives an error :
>
> Caused by: ERROR 08001: java.net.ConnectException: Error al conectarse al
> servidor localhost en el puerto 1.527 con el mensaje Conexión rehusada.
>
> ( Error connecting to server localhost at port 1527 with message Conection
> rejected )
>
> This is my blueprint file :
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>            xmlns:camel="http://camel.apache.org/schema/blueprint";
>            xmlns:cm="
> http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
>            xsi:schemaLocation="
>        http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>        http://camel.apache.org/schema/blueprint
> http://camel.apache.org/schema/blueprint/camel-blueprint.xsd";>
>
>     <!-- Standard DataSource -->
>     <bean id="dataSource" class="org.apache.derby.jdbc.ClientDataSource" >
>         <property name="serverName" value="localhost"/>
>         <property name="databaseName" value="demo"/>
>         <property name="createDatabase" value="create"/>
>     </bean>
>
>     <service id="demoDataSource" ref="dataSource"
> interface="javax.sql.DataSource">
>         <service-properties>
>             <entry key="osgi.jndi.service.name" value="jdbc/demo"/>
>             <entry key="transactional" value="false"/>
>         </service-properties>
>     </service>
> </blueprint>
>
> Kind regards.
>
>
> [image: Inline image 2]
>
> * Jonathan Vila    ** <https://www.twitter.com/jonathan_vila>
> <http://www.linkedin.com/in/jonathanvila>*
>
>
> * [email protected] <[email protected]>*
>
>
>
>

Reply via email to