On 3/22/07, Abdeslam El Abbassi <[EMAIL PROTECTED]> wrote:
Thanks,
do you mean :
<sm:activationSpec componentName="fileWriter" service="foo:fileWriter">
<sm:component>
<bean class="org.apache.servicemix.components.jdbc.JdbcComponent">
<sql>select p.id from product p where p.name='foo'</sql>
</bean>
</sm:component>
</sm:activationSpec>
when i try this , a have this error
error: javax.jbi.messaging.MessagingException:
java.lang.IllegalStateException: Expecting <sql></sql> node. Found: null
No, the SQL is in a message (similar to a JMS message) that is sent to
the component and the actual SQL wrapped in <sql> elements. It's not
just XML in the component configuration.
The configuration you show above is for a lightweight component.
LIghtweight components are easy to configure but they're not JBI
compliant. This component is started up inside ServiceMix and it is
ready to begin receiving messages. You will need to send a message to
the component. For an example of how all of this works, see the basic
example in the ServiceMix distribution. There's also documentation on
the basic example here:
http://incubator.apache.org/servicemix/basic.html
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/