Please click on any Advertisement, if you like this blog.

Friday, February 11, 2011

Java on Cloud - Stax Networks

We have already seen Google App Engine as the cloud environment and now we will try to explore Stax engine and we will go through the process of deploying our website on this environment and its benefits and disadvantages. So, first lets understand its benefits and disadvantages:

1)      we can get maximum five  servers on stax environment in cluster manner.
2)      Very easy to deploy.
3)      No need of the other software like winscp, filezilla, putti for deployment. The whole deployment process can be done by Stax Sdk.
4)      Very easy to download the code already deployed.
5)      Very easy in development. It needs minimum changes in our current project to make them suitable to run on stax environment.
6)      We can use any java editor for development.
7)      Provide the full support of mysql
8)      We can use any mysql gui editor for our development process. The online database can easily be connected with our mysql editor on our local PC by using IP address.
9)      It supports the tomcat web server.
10)  No change is needed in our existing mailing code or any other code.
11) It support Struts 2.0.

1)      Stax has not decided the definite pricing structure till now. It is in beta version.
2)      It provides maximum five servers as a cluster where the google app engine provides much more than this.
3)      We can deploy our project from local system to online by making the war file of our project. That means, each time we make some changes in our local files, we have to deploy whole project online. Although all the tasks like creating war file of our project, deploying it online can be done very easily just by writing a single command on Stax Console, yet it takes more time to deploy whole project war file.
4)    I have little doubt that whether it support struts 1.2 or not but it is confirmed that it support struts 2.0. 

Please click on any advertisement if you like this blog.

Deployment Process
Now let us go through the following steps and try to deploy our website or online application:
1)      Open
2)      Create one login account on this portal.
3)      All activities like
creating a database,
creating a web application,
managing your application,
managing database
studying the corresponding price structer
            are done from your login account.
4)      create a database
5)      connect this database from gui tools like query browser, sqlyog etc on your local system to export-import database from local system to online and to perform any task  on database level on online from your local system.
6)      Create a web application online from your login account.
7)      Configure stax sdk on your local system for development  in stax environment.
8)      After development and testing complete, make corresponding changes in connection file to access database from online.
9)      Deploy the project from your local system to online by using stax console.
10)  After successful deployment, you will be provided an url to access you project online. Use this url to test your project online.

Below is the list of the commands that will be required to manage our online application on Stax environment from our local Pc:

Please click on any advertisement if you like this blog.
Some commands and ideas:
1)      create database on our local Pc
a)      stax db:create and provide database name, user name, password as demanded.
2)      configure stax sdk our local Pc on window environment variable.
a)      create STAX_HOME variable as follows:
STAX_HOME = E:\jitendra\stax-sdk-0.3.6\STAX_HOME
b)     make an entry of STAX_HOME in path variable
path = E:\jitendra\stax-sdk-0.3.6\STAX_HOME;
c)      create JAVA_HOME variable as follows:
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_07
d)     make an entry of JAVA_HOME in path variable
path = JAVA_HOME\bin;
3)      run the stax tomcat
a)      go to your project directory our local Pc
b)     type the command like “stax run”
c)      now you can run the corresponding application by url like http://localhost:8080/ on any browser
d)     keep  your local tomcat stop while performing above operations.

4)      stop or restart stax tomcat
a)      if the stax tomcat is running now, press ctrl+c
b)     type command like stax restart
5)      project deployment from local system to online
a)      go to your project directory
b)     type the command like
stax deploy –u username –p password –a applicationId –m message
username = login name by user you login into your accout on
password = password of your account
application id = this can be found from top right corner on our account on application detail. It will be similar as Id = “abcd/xyz”
message =  nothing but any message. Not so useful and can be discarded.

6)      Important URLs:
b)     Study materials of stax environment :
c)      Forum on stax:

This is all about Stax Environment. I have already deployed one of my webapplication and its url is

Please click on any advertisement if you like this blog.

No comments:

Post a Comment

Please provide your precious comments and suggestion