Varun,
Out-of-the-box, ServiceMix does not have a Hibernate JBI component. It
might be a good addition (using Hibernate's XML to DB mapping feature),
but for the moment it does not exist. Is this a component that has been
created by your own company perhaps?
Gert
unni_varun wrote:
I believe it is targetting the Hibernate component. this hibernate component
is installed using mvn:install command. Correct me if i'm wrong
Gert Vanthienen wrote:
Varun,
What JBI component is being targeted by this SU?
Gert
unni_varun wrote:
This is the xbean.xml inside hibernate su. it has the namespace mentioned
in
it.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:hibernate="http://com.dnb.services/hibernate/1.0"
xmlns:lw="http://LW.dnb.com/Sample">
<hibernate:hibernate service="lw:LWHibernate"
endpoint="LWHibernate"
interfaceName="lw:LWHibernate">
<property name="hibernateTemplate">
<ref bean="hibernateTemplate"/>
</property>
</hibernate:hibernate>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="annotatedClasses">
<list>
<value>com.dnb.LW.Sample.Person</value>
</list>
</property>
<property name="hibernateProperties">
<value>hibernate.dialect=org.hibernate.dialect.MySQLDialect</value>
</property>
</bean>
<bean id="hibernateTemplate"
class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<bean id="dataSource" destroy-method="close"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url"
value="jdbc:mysql://10.239.30.27/IQDATABASE"/>
<property name="username" value="root"/>
<property name="password" value="mysql"/>
</bean>
</beans>
Gert Vanthienen wrote:
Strange,
This one does not even have the namespace mentioned in the error:
Unrecognized xbean namespace mapping:
http://com.dnb.services/hibernate/1.0
Where is this namespace URI mentioned in your files?
Gert
unni_varun wrote:
This is my xbean.xml inside http su.
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:lw="http://LW.dnb.com/Sample">
<http:endpoint service="lw:LightWeight"
endpoint="Test"
targetService="lw:LightWeight"
role="consumer"
locationURI="http://localhost:8192/Test/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true" />
</beans>