Porting a standalone application to cluster environment
Dear All,
We are porting our java or shall I say J2EE application to cluster environment.
The problem is that the application is not a pure J2EE application. It was standalone java application(a kind of xml adapter) which was then enhanced to work as a web application.
The application uses file access,application caching and direct file logging which are not recommended by J2EE specification.
Now we need to make the aplication run in a cluster environment. The result is application crashes when run under multiple jvms in a cluster.
Kindly advice on the strategies to be adopted to port the application safely to cluster landscape.
Best regards,
JK
Hi(Namaskaram),
The requirement is to port to a clustered environment and J2EE is not a goal as it requires lot of design changes.
The reason is the application is extensively thread based(so ejbs are ruled out), and also use file access apis along with apllication maintained cache. I suspect static variables(non-final) are used to maintain server state info.(I was not part of the original implementation).
The specifiaction of the application -
1. Servlet based application for web basd gui to start/stop application, set configuration parameters an
2. The application which is invoked by servlet application. this is core java application and primarily thread based. This only follows j2SE specs as it is quite old.
the application can be considered as a library application in the application server(any) ans is only operated by administrator of the application server.
Best regards,
JK
u can make use of servlets rite?
servlets are multithreaded.
and there are ways u can maintain the session of each client also..
ofcourse u can go for application cachin with the help of servlets....there are some standard lib from jakarta that will help u in cachin,,
file accesss too is not a big deal in servlets if u handle the connections properly,,
hope u can go with servlets...
anything more pls let me know
regards
shanu