[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [stp-dev] Support for "constructor-arg" elements in ServiceMix code generation from Intermediate Model
|
Hi good point,
I think we should provide, some way to get constructor-arg supported in
runtime specific
code generation part of the jbi runtime defintion.
Please feel free to open a bugzilla entry.
Andrea
Gianfranco Boccalon ha scritto:
Actually with the syntax supported in jbi-runtime.xml it's not possible
to generate code with constructor-arg elements, necessary for example to
generate Service Units containing Mail-output component.
<sm:activationSpec componentName="myMailServermailout"
service="foo:myMailServermailout">
<sm:component>
<bean class="org.apache.servicemix.components.email.MimeMailSender">
<property name="marshaler">
<bean
class="org.apache.servicemix.components.email.MimeMailMarshaler">
<property name="from">
<bean
class="org.apache.servicemix.expression.ConstantExpression">
<constructor-arg value="c.d@e" />
</bean>
</property>
<property name="to">
<bean
class="org.apache.servicemix.expression.ConstantExpression">
<constructor-arg value="a.b@c" />
</bean>
</property>
<property name="subject">
<bean
class="org.apache.servicemix.expression.ConstantExpression">
<constructor-arg value="Ciao" />
</bean>
</property>
<property name="text">
<bean
class="org.apache.servicemix.expression.ConstantExpression">
<constructor-arg value="Testo della mail" />
</bean>
</property>
</bean>
</property>
<property name="sender">
<bean
class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="mail.eng.it" />
<property name="port" value="25" />
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
How can I fix the problem for generating this kind of code ?
Gianfranco
_______________________________________________
stp-dev mailing list
stp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/stp-dev