hello everybody,
i have a problem with new camel-annotations.
[short description of the problem]: i've implemented a producer bean like in
the example (see chapter "bean integration/producing POJOs"). but neither
the Producer-Object (annotated with @Produce) nor the ProducerTemplate
(annotated with @EndpointInject) is setted.
system: activemq v5.1.0; camel v1.5.0; spring v2.5.5; broker is running in a
tomcat v6.x; jdk v1.6.x; and some other stuff (not important in this case).
code snippets:
=======================
Bean :::
public class ServiceRegistrationBean implements CamelContextAware {
@EndpointInject(uri="ajms:queue:com.officeloop.jms.sys.registration" )
public ProducerTemplate<Exchange> producer;
@Produce(uri="ajms:queue:com.officeloop.jms.sys.registration")
public ServiceManagerListener listener;
public void registerMe( ) {
System.out.println( ">>> send configuration ::: " +
this.listener + "
producer ::: " + this.producer);
//
// listener.register( "myServerId" );
}
}
Spring-Config:::
i've added to my spring.xml the bean-configuration &
camel-context-configuration:
<bean id="serverRegistrationBean"
class="com.officeloop.camel.routes.ServiceRegistrationBean" >
<property name="serverConfiguration" ref="serverConfig" />
</bean>
Interface:::
public interface ServiceManagerListener {
public void register(final String serverId);
}
Additional information:
+ spring-app-context is loaded correctly, without exceptions
+ camel-trasport for soap over jms works well
+ camel-context is loaded
+ my rout-builder-klasses are instantiated
+ but the field annotated with @Produce is NULL.
something is wrong. but what?
thanx, Andrej
--
View this message in context:
http://www.nabble.com/Problem-with-%40Produce-annotation-tp20684118s22882p20684118.html
Sent from the Camel - Users mailing list archive at Nabble.com.