Welcome!

Java IoT Authors: Zakia Bouachraoui, Pat Romanski, Elizabeth White, Liz McMillan, Yeshim Deniz

Related Topics: Java IoT

Java IoT: Article

Rational XDE by Rational Software Corporation

Rational XDE by Rational Software Corporation

Over the past few years the integrated development environment has raged on. For years I've used a text editor and a build tool to create my Java software; I used no set processes or design methods. The integration of UML modeling and Java coding makes obvious sense to a software designer, but a programmer like me has to ask, can XDE mentor me and make me think differently about the way I design software?

XDE stands for extended development environment; installation is a straightforward matter, as is installation of software on most Windows systems, but it only runs on Windows 2000/NT/ XP and you'll also need Service Pack 2 installed. The entire suite is based on IBM's Eclipse Platform but with added functionality in the UML modeling department. The distribution comes with two CDs - one that installs XDE in IBM's WebSphere Application Developer (WSAD) and one that installs XDE "standalone" with its own copy of WebSphere Workbench (WSW), which is based on Eclipse. For this review I just installed the stand-alone workbench.

Getting Started
Before I could get any coding done I had to create a project; the Java Modeling Project has the full features of UML modeling and round-trip engineering support. There are other project types you can use, including a Java Project (no modeling support) and a Web Modeling Project (for JSP or HTML Web applications).

Using XDE
The bulk of the modeling and coding goes on within the modeling perspectives. Rational has provided a lot of information for the help perspective covering Java and UML basics, deploying applications, and using patterns. One of the joys of XDE is that you can let it do as little or as much as you like. The level of code assistance is controlled from the preferences, and there are various options that can be generated such as constructors, finalizers, and bean properties. With synchronization enabled you can alter the source code and the UML diagram will update; if you make changes to the diagram the code will update accordingly (see Figure 1).

A very handy feature is the task list where you can add items for anything that you need to complete. This is also the place where any compilation errors are listed; clicking on an error will take you to the corresponding line of code where the error is. Once corrected, XDE will automatically update the task list and delete the corrected errors from it.

You can create and place new classes on the main model diagram either by using the right-click menus or by dragging and dropping from the Toolbox. The Toolbox is home to the different UML types (class, component, deployment, use case, collaboration, and sequence diagrams) plus Java elements (class, methods, interfaces, etc.), EJB elements (session, entity, and message-driven beans), and JSP elements (servlet, jsp server page, html forms, etc.). Features on the modeling side include Gang-of-Four patterns, J2EE patterns, and the ability to create your own patterns and code templates so you can reuse your core code over a number of projects.

Developing for the Server Side
As I mentioned previously, you can develop JSP/servlet applications with XDE. With a mixture of drag-and-drop elements you can quickly create a basic Web application and deploy it to your application server. Deployment is achieved with the help of a wizard that guides you through the process (see Figure 2). XDE has a number of server brands that you can deploy to, including WebSphere and WebLogic. If your server is not listed you can deploy to a .war file and change the descriptors within XDE. This is a handy route if you want to deploy to servers such as Tomcat or Orion.

Handy Features
Where do I start? I'm a big fan of code formatting, and XDE has the ability to do this with its menu within the edit window. All you have to do is right click, click on "Format", and it's done. There are various styles of code layout that you can configure within the preferences. Another handy feature is assisted coding, in which XDE inspects the signature of a class that you're working on and lists its different types. I found this handy, mainly because while I was working I didn't have to stop, open up Java in a Nutshell, and then continue where I left off (see Figure 3).

In the main preferences you can specify which JDK version you want to work with. I found this very helpful, as I was writing and testing between JDK 1.3 and 1.4. I could switch mid coding and see if there were going to be any issues or conflicts between different Java versions.

Code Refactoring
Have you ever developed code and then changed the name of something and then systematically had to revisit every file to make the changes? There are numerous ways of making the change (mine was always using Perl on the command line). With XDE you can refactor code and it will make the changes across the project. XDE will let you preview the code results it is going to refactor, which gives you a fighting chance if you disagree.

One thing about Rational tools is that they are designed to work with other Rational tools. XDE links into ClearCase so you can have proper version control, but it gives no ability to use any other version-control software, such as SourceSafe or CVS.

Debugging
There are extensive debugging options, with the usual breakpoints, that keep an eye on variables. XDE will scan the packages open and give you the option of executing any class that it can. In addition to debugging on your local machine you can debug a class remotely on another machine or server - as long as it has the relevant profile set up so it can be debugged by XDE.

Summary
I've only scratched the surface of what XDE is capable of, but I have definitely increased my knowledge of software development through using this product. It's now part of my main development arsenal, and I'm finding myself actually thinking differently about software design and logically modeling objects before I do any coding. I know it sounds like a cliché, but I really don't know how I got on without it.

SIDEBAR
Rational Software Corporation
18880 Homestead Rd.
Cupertino, CA 95014
Phone: 800 728-1212
E-mail: [email protected]
Web: www.rational.com\tryit\xde\javaed.jsp#dl#dlwsw

Specs
Price: $3,595
Platforms:
Windows NT (Service Pack 6a)
Windows 2000 (Service Pack 2)
Windows XP Professional

Test Platform
Computer: Dell Optiplex GX240,
Processor: P4 1.8GHz
Hard Drive: 40GH
Memory: 256MB RAM
OS: Windows 2000 (Service Pack 3)

SIDEBAR
JDJ Product Snapshot
Target Audience: Java programmers, software designers, and analysts
Level: Intermediate to professional
Pros: Code/model synchronization
Ability to select different JDK during development for testing. Extensive coverage of patterns and software design practices.

Cons: Help system can be confusing at times; price may put some users off

More Stories By Jason Bell

Jason Bell is founder of Aerleasing, a B2B auction site for the airline industry. He has been involved in numerous business intelligence companies and start ups and is based in Northern Ireland. Jason can be contacted at [email protected]

Comments (12)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


IoT & Smart Cities Stories
Moroccanoil®, the global leader in oil-infused beauty, is thrilled to announce the NEW Moroccanoil Color Depositing Masks, a collection of dual-benefit hair masks that deposit pure pigments while providing the treatment benefits of a deep conditioning mask. The collection consists of seven curated shades for commitment-free, beautifully-colored hair that looks and feels healthy.
The textured-hair category is inarguably the hottest in the haircare space today. This has been driven by the proliferation of founder brands started by curly and coily consumers and savvy consumers who increasingly want products specifically for their texture type. This trend is underscored by the latest insights from NaturallyCurly's 2018 TextureTrends report, released today. According to the 2018 TextureTrends Report, more than 80 percent of women with curly and coily hair say they purcha...
The textured-hair category is inarguably the hottest in the haircare space today. This has been driven by the proliferation of founder brands started by curly and coily consumers and savvy consumers who increasingly want products specifically for their texture type. This trend is underscored by the latest insights from NaturallyCurly's 2018 TextureTrends report, released today. According to the 2018 TextureTrends Report, more than 80 percent of women with curly and coily hair say they purcha...
We all love the many benefits of natural plant oils, used as a deap treatment before shampooing, at home or at the beach, but is there an all-in-one solution for everyday intensive nutrition and modern styling?I am passionate about the benefits of natural extracts with tried-and-tested results, which I have used to develop my own brand (lemon for its acid ph, wheat germ for its fortifying action…). I wanted a product which combined caring and styling effects, and which could be used after shampo...
The platform combines the strengths of Singtel's extensive, intelligent network capabilities with Microsoft's cloud expertise to create a unique solution that sets new standards for IoT applications," said Mr Diomedes Kastanis, Head of IoT at Singtel. "Our solution provides speed, transparency and flexibility, paving the way for a more pervasive use of IoT to accelerate enterprises' digitalisation efforts. AI-powered intelligent connectivity over Microsoft Azure will be the fastest connected pat...
There are many examples of disruption in consumer space – Uber disrupting the cab industry, Airbnb disrupting the hospitality industry and so on; but have you wondered who is disrupting support and operations? AISERA helps make businesses and customers successful by offering consumer-like user experience for support and operations. We have built the world’s first AI-driven IT / HR / Cloud / Customer Support and Operations solution.
Codete accelerates their clients growth through technological expertise and experience. Codite team works with organizations to meet the challenges that digitalization presents. Their clients include digital start-ups as well as established enterprises in the IT industry. To stay competitive in a highly innovative IT industry, strong R&D departments and bold spin-off initiatives is a must. Codete Data Science and Software Architects teams help corporate clients to stay up to date with the mod...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Druva is the global leader in Cloud Data Protection and Management, delivering the industry's first data management-as-a-service solution that aggregates data from endpoints, servers and cloud applications and leverages the public cloud to offer a single pane of glass to enable data protection, governance and intelligence-dramatically increasing the availability and visibility of business critical information, while reducing the risk, cost and complexity of managing and protecting it. Druva's...
BMC has unmatched experience in IT management, supporting 92 of the Forbes Global 100, and earning recognition as an ITSM Gartner Magic Quadrant Leader for five years running. Our solutions offer speed, agility, and efficiency to tackle business challenges in the areas of service management, automation, operations, and the mainframe.