Hi,

could you try, in your quartz xbean.xml, to define targetService="introbsp:listenerService" targetEndpoint="listenerEndpoint"

Regards
JB

funkywon wrote:
Hello guys...
I have a problem with Quartz..
I'd like to send a message periodically to a bean, but somehow it doesnt
work..

My Quartz SU configuration looks as follows:

<beans xmlns:sm="http://servicemix.apache.org/config/1.0"; xmlns:quartz="http://servicemix.apache.org/quartz/1.0"; xmlns:introbsp="urn:introbsp"> <quartz:endpoint service="introbsp:service" endpoint="quartzendpoint" targetService="{urn:introbsp}:listenerService"> <quartz:trigger> <quartz:simple repeatCount="10" repeatInterval="1000"></quartz:simple> </quartz:trigger> </quartz:endpoint> </beans>


Then I got the bean, which should receive the message..

<beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
xmlns:introbsp="urn:introbsp"> <bean:endpoint service="introbsp:listenerService" endpoint="listenerEndpoint" bean="#listenerBean"/> <bean id="listenerBean" class="org.apache.servicemix.bean.beans.ListenerBean"/> </beans>

Listenerbean is the following class

public class ListenerBean implements MessageExchangeListener { @Resource private DeliveryChannel channel; public void onMessageExchange(MessageExchange exchange) throws MessagingException { System.out.println("Received exchange: " + exchange); exchange.setStatus(ExchangeStatus.DONE); channel.send(exchange); } }

I periodically get the following error message..

WARN  - DefaultBroker                  - ServiceName
(introbsp}:listenerService) specified for routing, but can't find it
registered
WARN  - DefaultBroker                  - ServiceName
(introbsp}:listenerService) specified for routing, but can't find it
registered
INFO  - JobRunShell                    - Job
DEFAULT.{urn:introbsp}service:quartzendpoint threw a JobExecutionException:
org.quartz.JobExecutionException: org.quartz.JobExecutionException:
javax.jbi.messaging.MessagingException: Could not find route for exchang
e: InOnly[
  id: ID:192.168.0.109-122cc700ee3-15:20
  status: Active
  role: provider
  service: introbsp}:listenerService
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{urn:introbsp}service:quartzendpoint</name><group>DEFAULT</group><fullname>DEFAULT.
{urn:introbsp}service:quartzendpoint</fullname><description/><fireTime>Thu
Jul 30 23:33:13 CEST 2009</fireTime></timer>





Thanx for any advice!

Reply via email to