Showing posts with label J2EE. Show all posts
Showing posts with label J2EE. Show all posts

Thursday, December 6, 2012

Android app for Java J2EE interview materials

A friend of mine has written this app and i find it quite useful. Please check the link below



JAVA/J2EE Interview Android App

Friday, September 7, 2012

Google App Engine and Java Session

In JEE web application, we are used to keeping objects required in session, so that it can be retrieved in some other call flow. But by default GAE doesn't support session management.

To enable it you have to do following.
Open WEB-INF/appengine-web.xml

Enable session by uncommenting

true

But to make it work on hosted app engine, all the objects which you are planning to put in session must implement Serializable interface.

Now app engine will put your session data into storage system (Bigtable). You can see it by viewing your datastore viewer. Search by kind _ah_SESSION

Wednesday, November 24, 2010

A Sample Web Application - 1

I am trying to learn technologies using a practical approach. Right now my focus is to create a sample e-commerce web application using Java Technologies.

The technologies of focus are

1) Spring : For dependency injection
2) Struts2 : For MVC framework
3) Hibernate : For persistence
4) Maven: For build management
5) Tomcat 6 : Servlet Container
6) SVN: Source code managemnt

Since building a full scale e-com app is not in scope for small scale learning approach, i am going to take baby steps.
My first step is

Create a login funcitonality
Allow user to enter username and password. Right now the system will just say a successful validation if both username and password are same. It doesn't involve DB interaction and still able to use Spring and Struts 2 integration.

Build Instructions

Use this command to anonymously check out the latest project source code:

# Non-members may check out a read-only working copy anonymously over HTTP.

svn checkout http://amj-ecom.googlecode.com/svn/trunk/ amj-ecom-read-only

You will need a svn client for this. I am using Tortoise SVN.

To build it you just need to run ($mvn package from your command prompt). It will create a war file ecom.war in target directory. I have created a small script cleandeploy.bat for easy deployment of app to a tomcat container. You will need to edit this file to point to the correct path of tomcat dir as per your system.

Any suggestion and feedback is welcome.

I intend to add more posts as and when i add more functionality in this project.