What next now that JSF and Spring are breaking up [closed] - spring

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I'm working on a JSF/PrimeFaces web application running on tomcat which uses Spring to inject different services based on the deployment context. I was looking at migrating it to JSF 2.3 when I realized JSF 2.3 requires a CDI container yet Spring doesn't implement the full CDI specification and from what I've read, are not going to do so any time soon.
So my question is two folds:
1) how are people out there dealing with this? I've read there might be some workaround to bridge the CDI with Spring? But which bridging solution would you recommend? Is bridging a long term solution and does the bridging have any drawback (none working features for instance)?
2) if JSF is no longer an option, what web front-end technology would you use for a new Spring-based application? back to JSP? templating like thymeleaf? GWT or vaadin? Javascript technologies like reactJS or angular and working with two languages and data model?
Thanks for sharing

My organization used to be on JSF + Spring, but now we are moving toward Spring MVC + Thymeleaf. Using Angular or React with Spring MVC REST is not a bad option either, but Spring MVC + Thymeleaf will be a much more natural fit with much faster onboarding for the Java team.

MyFaces 2.3.x should still work on Spring. However, i'm not sure if this will be possible with 3.x.
If you don't want to drop Spring, you can also add the CDI implementation "Apache OpenWebBeans", which is very very small (between 0,5mb and 1mb).
There are "bridges" available on the web, how to inject Spring beans into CDI beans and vice versa.

Related

Guice vs Spring Boot [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Someone said to me Guice is a better choice for a restful micro-services.
I said ...
Spring Boot offers:
- Core Spring Support - DI + AOP
- Auto-Configuration: Web, Rest, Data, etc
- Activation Profiles: activate bits of code based on profiles
- Simplified Web Development: code driven, no xml, no web.xml etc
- Web Testing Support: successful testing is easy testing
- Security Support: out of the box that can be customized
- JMS: out of the box support and can be excluded if not needed
- Actuator: health, trace, beans, info + much more etc
- Executable and deployable WARs
- Natural fit for restful micro-services
- Fast loading
- extensible, native cloud support and much more
In a real web application these are the kind features that are needed during development and after deployment to production.
Guice-rs complain about older versions of Spring and that it’s slow to load and programmer error issues and so on and so forth.
From my readings Guice was created for super large applications that have many many developers working on them and in this case using something like Spring may take longer to load. Guice is a DI framework that gives you fine-grained control on how to load application code fast.
Now I haven’t used Guice and don’t know Guice yet, can someone form the Guice camp educate me on if/how can Guice provide the above features.
Many thanks!
Spring Context is the package that offers "Core Spring Support - DI + AOP" which you mentioned before. The other features in that list are provided by other spring packages. Spring boot wraps them all into a single bundle with auto-configuration.
TL;DR spring-context is similar to guice, guice by itself does not cover the other items on your list.

Starting with spring boot [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I took a project which I have to use spring boot on it and I know some basic things about Spring but not too much. My question is should I learn Spring completely before start learn Spring boot or should I just start with Spring boot ? Thank you in advance.
As rnside mentioned, spring Boot helps us reducing the boilerplate code for any Spring based application. Some examples are:
It includes the dependencies for various Spring modules like core, web, mvc, etc.
We do not need the XML configuration for Spring when using Spring Boot.
It also includes embedded servers to run the application.
In order to configure anything in the application like DB, mail server, security credentials, etc. , we can do it just by writing it in the application properties file.
You can take a look at http://www.baeldung.com/intro-to-spring-boot if you want to learn how to start working on a Spring Boot app and make a basic application. Meanwhile, if you have any queries for things related to Spring, you can refer to other related links for it:
http://www.baeldung.com/spring-intro
http://www.baeldung.com/properties-with-spring
Some really good videos for this can be found here: https://javabrains.io/topics/spring
Hope that helps.
with only Spring , you can do everything without Spring Boot, Spring Boot helps you get things done faster .
Actually , Spring boot it's a suite of pre configured set of frameworks and technologies to reduce hard configuration providing you the shortest way to have a java webApp .But it still based on Spring , so as mentioned before , you need to know at least the basics of Spring .

Future of Spring-XD [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I heared rumors that Spring XD lost development drive and focus at Spring shifts towards cloud services. Since I'm considering XD (the otehr one I consider is Apache Beam, though not yet mature enough imho), I'd like to get some facts / release plan for the future of XD instead of relying on rumors.
The Spring XD homepage has an announcement at the bottom of the page:
Announcement
Building upon Spring Boot and Spring Cloud capabilities, Spring XD is actively being redesigned as Spring Cloud Data Flow - a cloud native programming and operating model for composable message-driven microservices. For more information and the reasons behind this redesign, please refer to Spring Cloud Data Flow's launch blog.
Spring XD's 1.3 GA will be the last release in the 1.x line and with this release, 1.x will be officially in maintenance mode, addressing only bug fixes.

JSF or JSF with SpringMVC [duplicate]

This question already has answers here:
Using JSF as view technology of Spring MVC
(3 answers)
Closed 6 years ago.
I am having a Project with J2EE that's not very big , i began using JSF and i found it very nice and easy , but by the time i was searching on the internet i found a integration called JSF and SpringMVC , so i am wondering is that a better way to develop application and is it recomanded for me to use it or i'll be doing fine with jsf all alone.
i saw this link
http://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/
Both JSF and SpringMVC are implementations of the MVC pattern, so using both framework together is not the best design approach. JSF is a component based framework but SpringMVC is a request based. However you can use both together to get benefit of the SpringSecuirty framework if you need security features in your applications. Another advantage from my point of view is you can use Spring IoC features without the need to use EJB and run your application in a normal web container like tomcat.
Finally, it's your decision based on your requirements.
That tutorial is talking about spring+JSF and not springMVC+JSF.
If you don't know anything about spring you should be doing fine JSF all alone.
There is no a better way nor a worse, they are just showing how you can integrate spring with jsf.

Why using Spring DM? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
1/ did Spring DM is very used now on Enterprise Applications ? what are the benefits of this framework and why it seem like a dead technology
2/ I'm working on a Spring Application , I want to do it as an SOA and i don't know if spring DM will be useful for me.
3/ I have another question , we can integrate an open source solution ESB with Spring ? what's the best choice for ESB.
Thanks !
1) Spring DM is mostly abandoned by Spring, as well as OSGI support. See this key quote from the Spring creator in this important interview on the subject:
We have changed our views on OSGi over the years, and one of the
reasons for that is that OSGi simply cannot be made as easy to use and
as productive as we feel is consistent with Spring values.
See also SpringFramework Removes OSGi Metadata in Move to Gradle
2) and 3) try to use Spring Integration or Apache Camel, which is well integrated with Spring. Both allow to have ESB like functionality embedded in a normal WAR application, so no need for a separate ESB server.

Resources