Work with Java classes
Use WebSphere Commerce Developer to perform the following Java development tasks.
- Create and modifying Java classes Use the Rational Application Developer tools to create and modify Java classes.Tip: By default, saved changes are compiled automatically by the Java builder. If you are running the server in debug mode, it is usually not necessary to restart the WebSphere Commerce Test Server in order for the changes to become visible. For more information see the "Hot Method Replace" section of WAS debug limitations topic in the Rational Application Server information center.
- Debugging Java classes
You can set breakpoints in a Java class by double-clicking the left margin next to a valid line of Java code. If you are running the WebSphere Commerce Test Server in debug mode, the execution will stop when it reaches a breakpoint. You can then use the Debug perspective of Rational Application Developer to perform debugging tasks such as stepping through code and examining variables.
- Add new Java projects
Although new Java classes intended for use as data beans, command beans, or helper classes should be created within the WebSphereCommerceServerExtensionsLogic project, you can use the New Project wizard of Rational Application Developer to create new Java projects. If you create a new Java project, ensure you add the new project as a Project Utility JAR file in the WC enterprise application's deployment descriptor. Edit the MANIFEST.MF of the Stores project (or any other Web project) and add newproject.jar to the line beginning Class-Path:. See Import external application code.
Related concepts
Command types
WebSphere Commerce development environmentRelated tasks
Work with enterprise beans
Work with JSP pages
Package commands, data beans, or Java classes for deployment