Help~
I've configure mysql into servicemix as a datasource, and when startup
servicemix, I can see "INFO - JDBCAdapterFactory - Database driver
recognized: [mysql-ab_jdbc_driver]."
is it mean that I 've deploy database into servicemix successfully?
what I 've done is :
1 copy this intto $servicemix/conf/jndi.xml
<entry key="java:comp/env/jdbc/servicemixDB">
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url"
value="jdbc:mysql://localhost:3306/AgoraRegistry?relaxAutoCommit=true"/>
<property name="username" value="root"/>
<property name="password" value="agora"/>
</bean>
</entry>
2 copy this into one of your servicemix.xml
<sm:jdbcAuditor container="#jbi" dataSource="#servicemixDB"
autoStart="false"/>
<bean id="servicemixDB"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/jdbc/servicemixDB"/>
</bean>
then I want to access mysql in my SE, could I invoke JdbcComponent 's APIs
in the code level or I need to configure JdbcComponent as a SE in
servicemix.xml and access it via NMR?
or else I need to write a new class which is extend JdbcComponent and
invoke it in my SE code?
Thanks,
Sharon.
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com