Showing posts with label web application. Show all posts
Showing posts with label web application. Show all posts

Adding a webclient to EJB project

This tutorial goes on where The previous tutorial stopped so please make sure to check it out before reading anay further!

Ok let's get going again, open the ejb project in your intellij IDE and follow these simple steps:

  • Click file -> new module 
  • Create new module from scratch -> next
  • name the module webclient -> next
  • create source directory src -> next
  • select application server and web application (should be checked when you check application server). Again make sure to select your jboss 6.1.0 final server.
  • Click finish

Set up a maven web project in Intellij with Spring and JPA - Part Seven

Welcome to part Seven of this tutorial series! After configuring our Spring MVC setup in the last tutorial we will now implement it. First of all let's have a look at our index.jsp and change it to this:


We only need this one line of code here.



Now create PostController.java in the blog.controller.dao package and mark it with @Controller.

Set up a maven web project in Intellij with Spring and JPA - Part Four

Hello, welcome the part four of this tutorial. Today we will be adding Spring configuration to our application.
Start by creating the following packages: blog.dao and blog.service.
The next thing we will be doing is adding the Spring configuration file: add applicationContext.xml file to your WEB-INF folder.

The basic setup of this file should look like this:






This configures the namespaces we will be needing in our configuration. Next we will have a look to what we will need specifically.

Set up a maven web project in Intellij with Spring and JPA - Part Three

Here we are for the third part of these tutorial series, we will now cover how to map create our JPA mappings.
This tutorial will be using a simple blog example from now on, using a simple mysql database.

Ok let's start by introducing our first entity "Post":

Set up a maven web project in Intellij with Spring and JPA - Part Two

Hello again, in this tutorial we will continue our MavenWebapp project we made earlier.
This part will focus on configuring maven.

When opening the pom.xml you should now have the following code:

    4.0.0

    MavenWebapp
    MavenWebapp
    war
    1.0

    



Set up a maven web project in Intellij with Spring and JPA - Part One

Hello everyone, in this article i will you how to setup a web application with maven integration in Intellij.
I'm planning to make it a mutli-part tutorial on how to configure maven with spring and jpa. This is the first part in the tutorial, more coming soon.



  1. Open your Intellij, navigate to file -> new project and create a project from scratch -> next