Sunday, 15 September 2013

The type org.springframework.context.ApplicationContextAware cannot be resolved. It is indirectly referenced from required .class files

The type org.springframework.context.ApplicationContextAware cannot be
resolved. It is indirectly referenced from required .class files

i have this code, and i have this compile eror:
The type org.springframework.context.ApplicationContextAware cannot be
resolved. It is indirectly referenced from required .class files (this
error is for last line of code)
i think i should add a jar file in build path, But i don't know what is it?
CamelContext context = new DefaultCamelContext();
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_BROKER_URL);
context.addComponent("test-jms",
JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));

No comments:

Post a Comment