We can debug our web application on Catalina.bat itself or Via Eclipse IDE.
I used TomCat 7.0 and Eclipse Ganymede for my Testing.
First I went to my TOMCAT_HOME/bin/catalina.bat
[TOMCAT_HOME=C:\Software\apache-tomcat-7.0.12\]
open catalina.bat with a notepad and Set two variables shown as follows,
set JPDA_ADDRESS=1044 (Testing port)
set JPDA_TRANSPORT=dt_socket
Then open the application via Eclipse IDE go to debug configuration and pass those argument on arguments.
JPDA_ADDRESS=1044 (Testing port).
JPDA_TRANSPORT=dt_socket.
Press Apply and Now Debugging :)
If there are different modules,Add thos e to the project. :)
This method can be used for JBOSS as well.
JBOSS is an Application server
ToMCAT is a web application server.
Wednesday, July 13, 2011
Sunday, March 6, 2011
Spring Framework...
Spring is a Java technology which is used to minimum decoupling objects.It will help you by Injecting beans externally,create objects.
Inside your dispatcher-Servlet.xml you can inject your bean.bean is known as a simple Java class.
ex:
this is injecting a object of AdminDaO.
For Spring framework developing we need to import special jar files externally.
commons-logging.jar -for logging Errors can be detected.logs file can be generated.
jstl.jar -java standard template library used for connect back end and front end.
junit-3.8.2.jar -used for testing purposes ,checks weather expected value and the given value is equals.
servlet-api.jar - used to manipulate request and response values manipulation.
spring.jar - this jar will supports their facilities to your code.
spring-jdbc.jar -supports to connect to database. basically configurations are their.
spring-webmvc.jar -supports to use MVC architecture of the framework.
MVC with Spring
Model -Hold the Business Logic of the programme.
View - Just JSP and HTML Pages.
Controller - controller calls the Model and view appropriately.
Inside your dispatcher-Servlet.xml you can inject your bean.bean is known as a simple Java class.
ex:
this is injecting a object of AdminDaO.
For Spring framework developing we need to import special jar files externally.
commons-logging.jar -for logging Errors can be detected.logs file can be generated.
jstl.jar -java standard template library used for connect back end and front end.
junit-3.8.2.jar -used for testing purposes ,checks weather expected value and the given value is equals.
servlet-api.jar - used to manipulate request and response values manipulation.
spring.jar - this jar will supports their facilities to your code.
spring-jdbc.jar -supports to connect to database. basically configurations are their.
spring-webmvc.jar -supports to use MVC architecture of the framework.
MVC with Spring
Model -Hold the Business Logic of the programme.
View - Just JSP and HTML Pages.
Controller - controller calls the Model and view appropriately.
Subscribe to:
Posts (Atom)