|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
servicemix SQL componentHi, I'm trying use sql component and my work stopped in this question.
I have this code: <bean id="myDS" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" /> <property name="url" value="jdbc:sqlserver://localhost:1433;databaseName=123" /> <property name="username" value="tim" /> <property name="password" value="*******" /> </bean> Before start service "Servicemix" show me next error: "SEVERE: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0. ERROR - DeadLetterChannel - Failed delivery for exchangeId: ID-10-036/20065-1256119312028/0-2. On delivery attempt: 0 caught: java.lang.Unsupported OperationException: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0." I'm using this(sqljdbc4.jar) jar.... but I think servicemix doesn't use this jar. How I can connect to MssqlServer using Servicemix? What must I do?:) |
|
|
Re: servicemix SQL componentHi,
which servicemix-sql component do you speak ? I guess it's the bean database sample. It uses servicemix-bean. I'm going to work on servicemix-jdbc and servicemix-hibernate component (it's in the roadmap). In your case, I think that you don't use the correct driver. I know that there's several driver available for MSSQL (as for Oracle). Could you please: - try the latest driver which support JDK 1.6 - try with your current driver but using JDK 1.5 to start ServiceMix Regards JB GridView wrote: > Hi, I'm trying use sql component and my work stopped in this question. > I have this code: > <bean id="myDS" > class="org.springframework.jdbc.datasource.DriverManagerDataSource"> > <property name="driverClassName" > value="com.microsoft.sqlserver.jdbc.SQLServerDriver" /> > <property name="url" > value="jdbc:sqlserver://localhost:1433;databaseName=123" /> > <property name="username" value="tim" /> > <property name="password" value="*******" /> > </bean> > Before start service "Servicemix" show me next error: > > "SEVERE: Java Runtime Environment (JRE) version 1.6 is not supported by this > driver. Use the sqljdbc4.jar class library, which provides support for JDBC > 4.0. > ERROR - DeadLetterChannel > - Failed delivery for exchangeId: ID-10-036/20065-1256119312028/0-2. On > delivery attempt: 0 caught: java.lang.Unsupported > OperationException: Java Runtime Environment (JRE) version 1.6 is not > supported by this driver. Use the sqljdbc4.jar class library, which provides > support for JDBC 4.0." > > I'm using this(sqljdbc4.jar) jar.... but I think servicemix doesn't use this > jar. > How I can connect to MssqlServer using Servicemix? > What must I do?:) > > |
|
|
Re: servicemix SQL componentMy task is simple. I must connect to MSSqlSever2005 and execute the query.
I'm using servicemix 3.3.1 and jdk1.6.0_13. Servicemix-Jdbc doesn't connect to MSSqlSever2005. Or, am I wrong? You can show me sample, with a correct use of this component? |
|
|
|
|
|
Re: servicemix SQL componentwell... I'm using servicemix-camel component and using this http://camel.apache.org/jdbc.html or this http://camel.apache.org/sql-component.html camel-component.
Mt dependency: <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-camel</artifactId> <version>${servicemix-version}</version> </dependency> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-core</artifactId> <version>${servicemix-version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>${camel-version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-mina</artifactId> <version>${camel-version}</version> </dependency> But if you know another decision, i see it. |
|
|
|
|
|
Re: servicemix SQL componenthmm.... i do't see database-bean sample... you mean sample from folder "examples" or sample from this site?
|
|
|
|
|
|
Re: servicemix SQL componentI'm sorry. But i do't found this example. If it is not difficult give me link. -- View this message in context: http://old.nabble.com/servicemix-SQL-component-tp25995512p26160020.html Sent from the ServiceMix - Dev mailing list archive at Nabble.com. |
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |