Rational Application Developer v9.5 Beta bundles the latest version of the IBM Eclipse Tools for Bluemix which includes 4 new features and bug fixes.
- Incremental publish of applications
- Remote debug applications
- Remove unused routes
With the new support for incremental publish and remote debug of applications, we now only need to publish the delta code changes instead of redeploying the entire application, significantly reducing the deployment time and making application development targeting Bluemix easier than ever.
To try the new features first we need to create an IBM Bluemix server:
- Open Rational Application Developer v9.5 Beta.
Right click the Servers view > New > Server > IBM Bluemix.
Enter your IBM ID user/password and click Next.
- Select the Organization and Space you want to work with and click Finish.
The new server will be added to the Servers view.
Incremental publish of applications
One of the most interesting and time-saving features is the new support to incrementally publish applications. Before this update, even if a single line of code was changed we needed to re-deploy the entire application to integrate the change, now with the introduction of the Development Mode we are able to deploy only the changes we made. To activate this mode just right click the deployed application and click on Enable Development Mode. When the Development Mode is active, the Bluemix Tools will automatically calculate the deltas since the last time the application was updated and deploy only the modified files.
From the Servers view, right click the application and select Enable Development Mode.
When the application is ready the message "Developing" will displayed next to the application name.
- Now the next time you make a change and deploy it, you will notice the deployment time was significantly reduced.
Remote debug applications
With the introduction of remote debug capabilities in IBM Eclipse Tools for Bluemix we can debug application running directly in Bluemix, but notice that this feature is available only to J2EE applications and packaged Liberty servers that are published from the tools. The process is similar to debug any other application locally, to enable this mode, from the Servers view, just right click the application you want to debug and click on Enable Application Debug, the application will be automatically restarted debug mode, after that, you can set breakpoints, view variable contents, run code step by step and use all other debug tooling included in Rational Application Developer 9.5 Beta.
From the Servers view, right click the application and select Enable Application Debug.
When the application is ready to be debugged the message "Developing, Debugging" will displayed next to the application name.
As you can see, the Development Mode is automatically activated along with the Debug capabilities. so you can use the incremental publish feature described before.
Right click in the .js file you want to designate as the entry point > Run As > Run on Server.
Once application is started, the browser will be launched to show the new entry point selected.
In previous releases, to define a different entry point you needed to manually edit the package.json file, now you just need to run the file in the same way as any other application.
Remove unused routes
Every time you deploy an application to Bluemix a route is associated to it, in previous releases it was possible to map more routes to the same application, but now we are able to view all routes in the selected Space, including orphan routes (the ones that are not bound to any application) and delete them, in the past the only way to achieve this was using the following commands in the Cloud Foundry command line:
- cf routes (List all routes).
- cf unmap-route (Unmap selected route from a application).
- cf delete-route (Delete selected route).
To launch the new Cloud Routes dialog:
- From the Servers view, double click the IBM Bluemix server.
Switch to the Applications and Services ta
In the Routes section click the Remove... button.
In the dialog window by default are displayed only the orphan routes.
- Select all routes you want to delete and click on Finish, the selected routes will be removed from Space.
If you want to delete a route that is currently being used by an application, select the Show In Use checkbox.
For more information about this JSF 2.2 feature, visit our Knowledge Center.
- To find out more about Rational Application Developer V9.5 Beta, visit our Early Program site.
- To join a discussion or ask questions about Rational Application Developer V9.5 Beta, visit our Beta Forum.
- To learn more about IBM Rational Application Developer, visit our product wiki.