You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2009/03/18 09:56:40 UTC

[jira] Commented: (SM-1745) ServiceMixBean shoud support classpath bean deployment style as the old lightweight container

    [ https://issues.apache.org/activemq/browse/SM-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50626#action_50626 ] 

Jean-Baptiste Onofré commented on SM-1745:
------------------------------------------

I guess that your bean xbean.xml looks like this :

<beans xmlns:bean="http://servicemix.apache.org/bean/1.0">
  <bean:endpoint service="test:service" endpoint="endpoint" bean="#listenerBean"/>
  <bean id="listenerBean" class="org.apache.servicemix.bean.beans.ListenerBean"/>
</beans>

Have you tested using <classpath/> tag like this ? :

<beans xmlns:bean="http://servicemix.apache.org/bean/1.0">
  <classpath>
    <location>myjar.jar</location>
  </classpath>
  <bean:endpoint service="test:service" endpoint="endpoint" bean="#listenerBean"/>
  <bean id="listenerBean" class="org.apache.servicemix.bean.beans.ListenerBean"/>
</beans>



> ServiceMixBean shoud support  classpath bean deployment style as the old lightweight container
> ----------------------------------------------------------------------------------------------
>
>                 Key: SM-1745
>                 URL: https://issues.apache.org/activemq/browse/SM-1745
>             Project: ServiceMix
>          Issue Type: Improvement
>            Reporter: Andrea Zoppello
>
> The old lightweight container let you to develop your own pojo packet as a jar
> and put in servicemix classpath, and all was very simple and working very well.
> I'm now porting my old lw-components to servicemix-bean, and i want to use the same
> deployment style ( package my pojo exetending TransformBeanSupport as jars ) and put in classpath.
> Unfortunately this cause classloading problems because some class packaged in servicemix-common.jar and servicemix-bean.jar  are needed ( BeanSupport, TransformBeanSupport and so URIResolver, ExchangeTarget.. ) and so on.
> To enable classptah deployment i finally created two jars and put in servicemix classpath:
> - smx-bean-support.jar ( with BeanSupport, ExcahngeTarget, and TransformBeanSupport )
> - smx-bean-common-utils ( wil all classes from org.apache.servicemix.common.util )
> This will solve all the problems, and let me to work as i've done in past with lw-contakiner.
> Any plan to support this in servicemix next release?? 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.