On Thu, Feb 21, 2008 at 10:18 AM, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> The problem is that the #context bean is not defined in servicemix-bean.
> We really need to make things a bit easier by having a homogeneous way
> to set up things in servicemix-bean, servicemix-cxf-se and servicemix-jsr181.
> It also involves injecting resources into beans, using @PostConstruct and
> @PreDestroy, etc.
>
> Anyway, to create a context, I'm not sure if there is a simple way
> currently but to
> create a spring factory bean that could create a valid one. Imho, it would
> be
> better to fix the #context problem instead.
>
> Look at how this is done in jsr181 or cxf-se:
>
> http://svn.apache.org/viewvc/servicemix/smx3/trunk/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java?view=markup
>
> http://svn.apache.org/viewvc/servicemix/smx3/trunk/deployables/serviceengines/servicemix-cxf-se/src/main/java/org/apache/servicemix/cxfse/CxfSeXBeanDeployer.java?revision=602826&view=markup
>
> It should be easy to do the same in servicemix-bean, and even have a
> single class to do that, or even do that for all components.
Yeah it would be a nicer solution if we could do this for all
components so that it's consistent and not implemented in many places.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/