CamelConfiguration replacement? - spring

I am using camel 2.20.4 with
org.apache.camel.spring.javaconfig.CamelConfiguration;
but while doing a version change for camel from v2 to v3, this class was deprecated.
Is there a replacement i can use for this?

Related

Does spring-jms 5.x require JMS 2.0?

I can see in spring-jms.gradle that starting with 5.0.0, the dependency to the JMS API changed from 1.1 to 2.0.
However, my question is: does this mean that spring-jms 5.x actually requires the provider to implement JMS 2.0?
I cannot find a clear requirement for th JMS version in the spring documentation neither in the Javadoc of the main spring-jms classes (like #EnableJms). For other JEE APIs like servlet-api or JPA, spring documentation/javadocs make this clearer.
Today, I still use spring 4.x and want to upgrade to 5.x, however I use a JMS provider (Oracle AQ) that implements only JMS 1.1. I would like to be sure whether spring-jms may make use of specific JMS 2.0 features like JMSContext.
I believe it's backwards-compatible, so as long as you don't try to use any 2.0 features, you should be ok.
Why don't you just give it a try?

Unable to extend BaseCommandController in Eclipse

I am new to Spring and I am trying to extend BaseCommandController but Eclipse doesn't show it. I can extend AbstractController but not BaseCommandController. I have added all jar files from spring-framework 4.2.2.RELEASE.
What should I do to solve this problem?
You are not able to extend BaseCommandController because it is deprecated since Spring 3 and got removed in Spring 4.
The Spring way is now to use annotations as mentioned in the deprecation comment:
#deprecated as of Spring 3.0, in favor of annotated controllers
You should have a look at the Getting Started guide of Spring MVC where you can find a good example of the #Controller annotation

how can I achieve similar functionality as <mvc:resources> in spring 3.0.0?

As I found this tag was introduced in spring 3.0.4 and I am using spring 3.0.0. So how can I achieve the same functionality.

Atmosphere without Jersey

I'm writing a web application and wanted to ask if it is possible to use Atmosphere Framework without using Jersey. Do equivalent annotations of e.g. #Produces exist in Atmosphere?
Yes you can use the #ManagedService annotation provided out of the box by the framework: https://github.com/Atmosphere/atmosphere/wiki/Getting-Started-with-the-ManagedService-Annotation

What is a substitute for ResourceFilter in Jersey 2.0

I'm just wondering what is used in 2.0 instead of ResourceFilter found in Jersey 1.0
I have code to upgrade from 1.0 to 2.0. and can't find any replacement.
DynamicFeature (directly in JAX-RS 2.0) allows you to assign providers to resource methods in the similar way ResourceFilter does in Jersey 1.
See this article that explains the concepts.

Resources