About Using Hibernate in a Web Application (J2EE) [closed] - java

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'm new in Java EE (J2EE) , i would like to build web application that store users and passwords in databases than they can login and login out , after that i want let them can add , delete and edit fields like in this pic:
Table
Edit table
Is there examples of that, thank you

There are no specific technologies for building an application like that, there are hundreds of technologies in thousands of combinations that will build a simple CRUD web application. You have specified that you want to use Java EE, but even that is not specific enough: do you want to use Java as a front end technology (eg JSP, JSF, etc) or just for server side processing? I would recommend that you investigate front end frameworks/technologies, different types of databases and different architectural styles and decide which combination is right for your application. Only that can you begin to think about examples and tutorials that will show you how to put them together.
To give you a starting point, the flavour of the month in front end technologies seems to be javascript frameworks like AngularJS (prior to that java based technologies were preferred in many cases). You can use this to communicate with RESTful web services written in Java EE. NoSQL databases like MongoDB are popular at the moment, but you could use a more traditional relational database like MySQL. Both of these databases work well with hibernate.
Bear in mind that is just a starting point for your research and may not be appropriate for your application.

Related

Is a LAMJ stack a possible environment? [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 7 years ago.
Improve this question
Is it possible to use Java instead of PHP with Linux, Apache and MySQL?
the 'LAMP' stack is not some special thing, only that there is a lot of support in the form or frameworks etc based on it. There is no problem to create an application based on Linux, Apache, MySQL and Java (LAMJ) but it will have totally different benefits and drawbacks than LAMP because Java is so totally different from PHP.
Where MySQL used to be the database of choice for Java developers I believe that has now shifted towards PostgreSQL. Some folk like NoSQL databases like MongoDB but that really ties into the Java frameworks you want to use. Also you need some sort of web container to run your Java web application in. The most popular is still a web server like Tomcat I think, you could also use Jetty. For larger projects requiring more extensive application management support and clustering you could consider Glassfish or JBoss.
Maybe you should consider an LTPJ stack (Linux Tomcat PostgreSQL Java). I think that will give you more joy in the way of community support.
EDIT: 2019 update. In my perception the 'standard' has shifted to Spring Boot, with which you can run a web application as a standalone jar using an embedded Tomcat instance. Spring Boot offers a lot of out of the box support like Spring Actuator for management endpoints (e.g. application health).

UI recommendation in Netbeans for a Maven web application [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
I've always been a backend C/C++ developer. Working on a Java project (Netbeans), and I am trying to figure out how to do the front-end/UI. While I am a pretty good back-end dev, I haven't really been keeping up with the latest and greatest in frameworks, etc. for the front-end.
The Java back-end component can communicate with JSON over websockets. I am trying to figure out what front-end framework I should use. I also don't want to recreate my project, and would just like to add to my current Maven web application project.
So what's the verdict? What's hip and cool these days? HTML5? JQueryUI? (are they even mutually exclusive?)
Should also mention that I just want to make a quick UI, b/c I am planning on handing off the task to another programmer for a "proper" front-end component later on. At the same time, I do want my version to be "decent". So, in a nutshell, I want something that is easy to use, but still capable.
Thanks!
Assuming this a web app, Angular is getting popular and Bootstrap has been popular for a while. Use pre-built templates you can find for free or at a site like http://themeforest.net . Don't waste your time trying to code your own, unless its super simple.
You probably want to also think about how the backend will communicate with the front if you haven't already. For example, will it use Servlets, or a framework like Spring Roo? You can also build the front in a completely different language, like PHP, as PHP outsourcing is cheaper and easier to find than Java . PHP is a server side language like Java, but I'm talking about a situation where the website's backend communicates with the java backend via an API or sharing a DB. PHP has many MVC frameworks such as Symfony and Laravel.

JAVA EE web application and big traffic [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
I choose java to make my web application with maven + hibernate + spring MVC + apache tomcat server (Java EE).
My web application will have many users and many visitors every day.
But my friend told me that web application with java don't support a lot of connections and it's made just for Intranet and business application with network within an organization.
So is it true apache tomcat can't handle all that traffic ?
i'm not looking for who is the best between java, php and .NET i want just know if web application with java can handle a big traffic ?
also explain me if there is some other negative points of using java and apache tomcat server.
The Java based technology stack you describe is extremely scalable, if you want it to be, and I would have no worries about using it for high traffic applications.
You may want to look at distributed hosting and load balancing, to make things more reliable. Lots of high traffic applications use Java and Spring stacks.
using plain old jsp/servlets are faster than spring and hibernate because spring or hibernate have a middle tier with classes which renders the page slowly and takes more memory at the server.
For production environs with huge scale applications you will end up writing plain jsp/servlets as they are a breeze to write and maintain.
Also i would like to add that struts library(jar file) had some security vulnerabilities in late 2013 only. Stay away from Struts and Spring.
People may be down voting but there is truth behind what i have actually experienced.

HTML5 front end framework options - can both Vaadin and Angular be used together [closed]

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 9 years ago.
Improve this question
I'm looking for different options (with so many available right now) that can be used to develop the a web front end that is compatible with browsers on mobile devices.
My assumption is that it has be HTML5 based. Please correct me if this assumption is wrong.
I'm looking for different options and the trade-offs. Two options Angular and I recently discovered Vaadin. What other frameworks should I look at ?
To be more specific - can both Vaadin and Angular be used together ?
Our server-side is in Java/Scala. Currently we are running Jetty/Camel/Websockets but may move to Play in the future.
Vaadin is quite strict on your page output, being just a wrapper to gwt components with a nice model and a bunch of useful features. You develop in java and the framework builds the javascript widgets for you...
This doesn't play well with generating a mostly custom-html app.
This means that, while possible, it's not advisable nor productive to mix it with Angular.
On the other end Play is practically agnostic about your front-end/view layer. You can mix it up with every possible javascript/html/rest library that comes to your mind.
This should lead to a wider range of choices when you look for mobile-browser-tailored solutions.

Java Web Framework for Ajax-based UI [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Background
Looking to leverage an existing web framework to create a simple data-driven user interface.
Problem
The mock-up allows creating JasperReports Server domains. Creation of domains is based on a data dictionary comprised of Business Areas and Column Clusters. It works as follows:
User selects one or more Business Areas.
This causes the Column Cluster list to update (AJAX-style) with the available Column Clusters for the selected business areas.
User selects one or more Column Clusters.
User shuttles Column Clusters into Domain Content list.
The user has two options: Create Domain and Upload Domain.
Both buttons do the same thing: create an XML document based on the Domain Content list.
Technologies
Here are the technologies I am considering:
Servlet. Means hand-crafting database queries and jQuery code.
Grails. There is no writing to the database, though.
JavaServer Faces. Quite bulky, but it has shuttles.
Facelets. Integrates with RichFaces.
Eclipse + JBoss + RichFaces. ???
Tapestry. ???
Requirements
The fixed requirements:
Apache Tomcat 6
Java
PostgreSQL (JDBC)
Firefox or Chrome
No Struts
No IE
Constraints
Other criterion to consider:
Easily maintained by novice developers
Easy to extend (add interactive widgets)
Database model has already been designed and implemented
Resources
Websites that demonstrate potential solutions:
http://www.giantflyingsaucer.com/blog/?p=723
http://www.ibm.com/developerworks/java/library/j-richfaces/
Question
What Java-based web framework would you recommend for this task?
A few possibilities:
Play! Framework
RichFaces (using JSF)
In my opinion, choosing a framework based on one component's needs is not the best option. But assuming you need a Java-based web framework, with Ajax support, I would recommend Play! It has a similar approach to Grails, but it is Java.
It is a real web-based stateless Java framework, with an enthusiastic and active community, and great documentation. There are no widget as you can have in JSF but with jQuery on the client side, that solution would work like a charm.
Take a look at vaadin
Have you looked at the Google Web Toolkit?

Categories

Resources