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 8 years ago.
Improve this question
I am searching for book which have examples in enterprise web application with Spring (IoC, AOP, MVC, web services), Hibernate and JBoss. I am searching for just examples and explanations how this technologies works together and I am looking more for the backend parts like beans aop and web services (why to use jboss or just tomcat). I dont have lots of time but something like 300-400 pages is ok just to understand basics and see some real world examples and usages of this technologies. The best will be if I can found book with single big web application and usage of all of these technologies together (Spring IoC AOP web sevices, Hibernate, and JBoss).
I can recommend Spring in Practice (manning.com/wheeler) and Spring in Action (Walls). Former book is more a practical guide and probably best answer to your question, but Spring in Action will give you more of background information. Spring in Practice lacks a unittesting which is a serious ommision in my opinion.
Related
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 2 years ago.
Improve this question
Well,I need to develop a web application with sql server so I choose spring boot Framework ,but the question is Can I use this Framework for both front and back end .
If not ,why ? and which technologie to add?
Also if you can help me with applications demo or tutorials in springBoot
Yes. The documentation fully covers this, look at the WebMVC section of the Spring Boot Documentation: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-spring-mvc
Out of the box it supports several template engines, I prefer Thymeleaf if I'm doing an all-in-one app. Here's a good demo for using Spring Boot with Thymeleaf: https://spring.io/guides/gs/serving-web-content/.
Also, if you decide to use this, read the documentation on Thymeleaf at https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html, it's an incredibly powerful templating engine and has a lot of features.
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 7 years ago.
Improve this question
What is the best choice for deploying a Spring 4 application?
Servlet container (e.g. Tomcat)
Application server (e.g. Wildfly)
I do not like to start a flamewar. Since there is no similar question, I would just like to know the advantages and disadvantages of both approaches.
As a simplification/generalisation, as I understand Spring offers developers much of the functionality of Java EE, but with out the need for a full application server. As a full application server is not essential and a container server such as Tomcat will suffice (more details on the distinction between Spring and Java EE can be found here: Difference between Java EE and Spring framework) it might be a slightly fairer comparison to consider TomEE as this might have the overhead of a full blown application server if you're considering performance.
This article might be of interest: http://zeroturnaround.com/rebellabs/the-great-java-application-server-debate-jboss-as7-aka-wildfly/ , although it is a year or two old and compares JBoss 7 to Tomcat. Whilst the article might not be conclusive enough for you the comments might give you some 'food for thought'. The general finding of the article is that if you require performance and support for standards, and a more aesthetically pleasing administration interface for, then JBoss might might take your fancy.
There is also the following article that will be of interest, but compare a few other options (http://zeroturnaround.com/rebellabs/the-great-java-application-server-debate-with-tomcat-jboss-glassfish-jetty-and-liberty-profile/).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
What is a lightweight framework? Why it is saying that codeigniter is lightweight?
Here is a post i found on coderanch.com :
The term "lightweight" refers to the conceptual weight of a framework.
Lightweight frameworks like Spring have minimal impact to an
application. That is, it does not require as many code changes to
incorporate them into your application as does the more heavyweight
frameworks like EJB. When you create an EJB, you have to deal with
several interfaces and it is pretty clear by looking at the code that
an EJB is tightly coupled to the J2EE framework. On the other hand, a
POJO is usually blissfully unaware that it is being used in the Spring
Framework. Spring is minimally-invasive. There are also claims that it
should not be a very difficult task to take Spring out and replace it
with another similar framework.
With lightweight frameworks, you do not have to think too much about
the underlying framework because there really isn't much code to write
that explicitly ties you in with the "plumbing". On the other hand,
traditional J2EE development with EJB entails writing a lot of
"plumbing" code which weighs you down conceptually.
Hope it helps.
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 3 years ago.
Improve this question
I am pretty new to the concept of dependency injection and we are currently writing an web app using JSF and maybe Primefaces. We are currently evaluating whether to use Spring or EJB3. I was realy close to choose Spring, but then I heard about CDI. Can you give us some hints, which could be the best for the following situation:
We are currently pretty new to the J2EE world and don't know if we will use Glassfish or JBoss (or can simply stick to Tomcat).
The web app is basically a prototype for an enterprise CRUD application that needs to be able to handle complex business logic. We want to focus on "adaptability", as some requirements are not clear and will be decided about a year later (when we know if we can still use the prototype).
We can't use Hibernate, as we will have to write pretty complex SQL Statements. Currently we made good experiences with the SQL abstraction in Spring.
Maybee I am currently comparing apples and oranges, but there are just too many information's, if you are new to j2ee. I think that EJB's are the standard defined through JCP, Spring is the standard defined by the market and CDI is a standard that is also defined by the JCP to do what Spring can do. But I am most certainly wrong ;-).
Thx,
iuiz
Lincoln Baxter does an excellent job explaining the technical differences in this article: http://ocpsoft.com/java/spring-to-java-ee-a-migration-guide-cdi-jsf-jpa-jta-ejb/ Long story short: both Spring and CDI will both be able to provide dependency injection. One is a Java EE standard, the other a commonly known technology. Glassfish and JBoss both run Spring apps and CDI apps without problem. As far as not being able to use Hibernate, it's not the case that you cannot use native SQL within Hibernate. Save your team a lot of extra dead-simple CRUD code if you can.
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 4 years ago.
Improve this question
I am working on making Jersey web services available using OAuth2 to other clients and am having a tough time finding libraries that tie in nicely with Jersey. So far I have looked at the following libraries.
http://static.springsource.org/spring-security/oauth/support.html
We got the demo working, but do not want to use spring security.
https://labs.ericsson.com/apis/oauth2-framework/downloads
This is tied tightly to RESTLet.
http://wiki.apache.org/incubator/AmberProposal
We looked briefly, but it hard to tell the status of the project.
https://bitbucket.org/smartproject/oauth-2.0/wiki/Home
We just started looking at this one as well.
The main goal we have is simple integration with Jersey as a Resource Provider.
We ended up using Amber, modifying the endpoints from the integration tests as needed.
oauth-2.0/integration-tests/src/test/java/org/apache/oltu/oauth2/integration/endpoints/