Featured Posts

Integrating GlassFish Application server with Apache... A typical production topology for GlassFish will be a front ending GlassFish with Apache for serving the static files. To integrate GlassFish Application Server with Apache web server follow the below...

Readmore

Some Java, JEE and WebSphere stuffs Rss

Reverse Engineering Java classes in RSA

Posted by Albin Joseph | Posted in RSA | Posted on 03-11-2008

2

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
1,198 views

Reverse Engineering Java classes in RSA

How do we create UML diagrams from Java classes using RSA? Or how do we reverse engineer a java class or project using Rational Software Architect? This was a question came to my mind when I wanted to generate some UML diagrams from Java classes. To generate UML diagrams from Java classes, I tried RAD first as I was working on RAD. I managed to generate class diagrams for individual classes using RAD. But to generate the UML diagrams at Project Level there was no option I could find in RAD. So I moved to RSA for reverse engineering my java classes.

To reverse engineer or create UML class diagrams from Java classes using Rational Software Architect follow the below steps.

1. Create a UML Project. This project is used for creating
To create a new UML project goes to File -> New Project -> Modeling -> UML Project.

2. Right click on the project that you want to reverse engineer and click on New -> Other. Select Transformation Configuration from Transformations folder.

3. Enter a name for the Transformation configuration and select ‘Java to UML’ as the transformation. Click on Next.

4. From the source and target window select your java/web project as the source and UML project as the target.

5. Click on Finish.

6. Now your transformation configuration page will be opened. You can run your configuration either by clicking on Run button of your transformation configuration or by right click on the project and select Transform -> transformation name -> Java to UML option.

  • Share/Bookmark

Most commented

Comments (2)

Hi Albin,

This is a great articule, just a quick question I did what you said above, but how can I get the class diagrams ???, I’m not able to see them under Diagram folder…. :(

Just I have two new files one under Diagram folder of my UMLProject and another one at Models folders… JavaUMLModel1242207087456 (both with the same name; I guess I should have a .dnx files generated for my class diagrams.)

Pls give me a clue…
Thanks.
JRomero

I am sorry JRomero, I do not have RSA installed in my machine now. If you still couldn’t get how to get the class diagrams, please let me know I will try to install RSA and I can look into how to find the class diagrams.

Write a comment