Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new to Java EE, so to learn Java EE (EJB+CDI+either Zkoss/JSF 2.0) I am trying to build a sample application.
In this application I don't want to use any spring-security related stuff. I do want the Authentication+Authorization mix which is provided by Spring Security. Further more I want to have tags which might help me on the view part as well.
I tried searching on the Internet for this. I found something called Apache Shiro. I don't want to use any other framework.
Can anyone please provide any necessary guide lines that how can I achieve this using the Java EE stack? Is there any specification? Or how can I implement it if I have to write my custom code? Any examples that you guys have come accross would be great if you guys share.
I strongly recommend PicketLink for your JavaEE application. It's CDI-managed (so you don't need Spring or other heavy-weight framework), has a big pack of tutorials and quite simple for beginners.
UPD: It's JBoss dependent.
You should use JAAS if you don't want to use any framework. You will have to research about JAAS. You can look at http://docs.oracle.com/javase/7/docs/technotes/guides/security/jaas/JAASRefGuide.html
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
What is the best solution to configure rdf/owl database for spring web mvc applications?
I am searching a solution to orm for owl in spring application.
Have you looked into Stardog? I'm not sure what your exact goal is with the database, but this is what I use for creating/accessing/querying/etc. triple stores programmatically. They have an API called SNARL - here is a good example of how to use it with Java. They actually have a section in their docs for Spring Programming and use some different beans. I use a combination of the spring programming (for querying) and the method in the first link (for setting up dbs and loading files).
Downside is OWL/XML and Owl Functional Syntax are not supported file formats, but you can just convert your file to RDF/XML (esp. easy if you're using Protege). If you're not using Protege, there are other ways to do it.
If you have any further questions I'm happy to help out.
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
Are there any Java Web Frameworks that are very similar to Grails but use pure Java instead of Groovy?
I really like the look of Grails, but at this moment want to focus solely on improving my Java skills, so do not want to use Groovy.
I have looked at Spring MVC and Play Framework but I only plan to develop quite simple personal applications, which is why Grails appealed to me as these seem quite heavyweight.
Play, Spring Roo and Spring Boot are the closest Java frameworks I know of. I don't like Spring Roo's code-generation approach, don't know much about Play, so my personal preference would be Spring Boot. It seems to be under very active development at the moment and you can use some of the nicest parts of Grails in a Spring Boot app, e.g. GSP, GORM.
I don't know about "similar to Grails," but the most basic Java web framework is the Servlets and JSP spec from Oracle. If you want to get started with Java, grab that and a copy of Netbeans and you can get started.
You can use pure java if you still wish to utilize the Grails framework. Since Groovy is based on java, you cam use both at the same time too if you like.
Other than this, you will probably have to look into pure Servlets combined with jsp's to achieve the same thing, but it won't be as straightforward as Grails.
Take a look at Spring Roo
This will allow you to generate simple Java web applications that use a database which you can then modify.
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 9 years ago.
Improve this question
I have the first meeting with my project manager and she assigned me a project which to be start soon. She explained to me few points related project e.g. technology, functionality, end user expectation etc.
MVC based web application
Not to use any framework
Server Side : use only Java, servlet, jsp
UI : Javascript, jQuery can also be used
integratation with existing project (at later stage)
There is one point i can not understand why she asked me to not to use any framework although i could not ask why. Does anybody clarify ? If i use any framework like spring then will it create any problem while integration with existing project.
I can recognize 2 sub questions in your question.
In what scenario the framework should not be used?
why she asked me to not to use any framework?
Answer 1
I can imagine situation when you don't need any framework. It is if you have to create extremely simple 1-2 screen application without any security, access rules and probably without DB based persistence. This means that IMHO framework-less application is good as a student exercise just to understand how things work.
Answer 2
She is ... not professional enough. I am sorry to say it but this is pretty obvious. To implement MVC without framework you have to perform a lot of dirty work. I believe that the key reason for this strange requirement is "integratation with existing project" that is probably created without any framework, so PM thinks that framework could bother you during this integration.
Moreover, product manager should never dictate R&D how to implement project. Project manager can politely ask to implement certain set of features.
I am sorry if my answer is helpful.
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 9 years ago.
Improve this question
I recently followed some spring related tutorials and I get the feeling that I will forget the concepts learnt so far quickly, since projects I am engaged in at the moment, do not use spring.
I would love to consolidate the things I have learnt and stay in touch with spring. My question is what kind of a project should I start in order cover most of the concepts that I learnt in spring?
Thanks.
Think of a Project for yourself. A photo sharing app for example. This is how I do it. I think of a project for myself and code it in my free time - thus stay in touch with Spring for example.
btw, my last project using spring has now over 100 registered users, which I did not expect and they all demand other functionality - this way you have to improve also.
I might suggest openshift as your deploy environment - it's free with plugins for eclipse.
You might also ask/answer spring related questions here on SO - this is always helpful of course.
Think about some examples and try to resolve with spring, Write blogs about spring, contribute some open source projects that use spring. This is the way that I learn spring and still doing. :)
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
I know this question is subjective but I would really want to know what are the best j2ee web application auto code generators.
I googled and found out the Appfuse is one of them.
Spring ROO is another but it depends on spring i think.
Are there any other better tools?
Basically lot of time is spent on creating regular CRUD screens with the same mundane things for each screen.
So, I would want to reduce the time spent on such simple CRUD screens so that I can focus more on the core application logic.
We use Telosys (http://www.telosys.org/) to generate repetitive code like CRUD screens.
A set of templates are available for Spring MVC, JPA, AngularJS, etc.
We have customized some of them. It saves of lot of time.
The best solution I have seen so far is Grails. It generates groovy code, not java but you can interface painlessly with any java library/class. The convention over configuration features are amazing and one can put up a functioning web app in minutes. I suggest you see for yourself - just try the grails screencasts. They will get you up to speed in 15 minutes.The technologies used under the hood are best-of-breed : spring, hibernate, lucene, quartz, sitemesh etc.