Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Java IoT

Java IoT: Article

Gen-it for Java 1.1 by Codagen

Gen-it for Java 1.1 by Codagen

Test Environment
Client/Server:
Client: Dell Precision 410, 128MB RAM, 18GB disk drive,
Windows NT Workstation 4.0 SP 5

Codagen Technologies Corporation
2075 University St., Suite 1020
Montreal, Quebec, Canada, H3A 2L1
Phone: 514 288-4802
Fax: 514 288-2446
www.codagen.com

Pricing:
Gen-it for Java $4,900/ Developer
Batch-it for Java $295/ Developer

In last month's issue of JDJ (Vol. 5 issue 6) I talked about the concept of using frameworks to automate the development of J2EE applications. Armed with this concept I took a look at Codagen Technologies' Gen-it for Java 1.1.

Codagen's product is designed around the basic premise that much of the lower-level structural code within an application is highly repetitive. Routine tasks such as persisting objects into the database, managing locks and performing integrity checks can be easily generated from a template rather than built from scratch each time.

Codagen's product is slightly different from a typical application generator in that it works in conjunction with frameworks that you may already have built. (In fact, Codagen has a partnership with IBM to leverage their San Francisco object framework with Gen-it for Java.) In the following sections I'll take a look at installing and using Gen-it for Java using one of their sample projects.

Installing and Configuring Gen-it for Java
I downloaded the 1.1 release of Gen-it for Java from Codagen's Web site. (Since this article was written, version 1.2 has been released.) The InstallShield setup kit is a little under 9MB in size and installs quickly and easily. Codagen uses Globetrotter's FlexLM software to control licensing for Gen-it for Java, but the downloaded installation kit is preconfigured with a demo license key already installed. When all is said and done, the installation process was a quick and painless affair - I had Gen-it up and running in about 15 minutes. One factor worth mentioning is that Gen-it for Java requires either Rational Rose or Visual Modeler (a version integrating with Telelogic's Tau, formerly Sterling's Cool:Jex, is scheduled for beta this month) to be installed on your local machine before the Gen-it installation can proceed. If you want to test Gen-it for yourself, you'll need to acquire one of the modeling tools in advance. (Rational allows you to download Rational Rose Enterprise Edition 2000 for a 20-day trial period as well.) Once the product is installed, it's a simple process to start working with Gen-it.

Working with Gen-it for Java
Codagen provides a tutorial that describes the basic value proposition for Gen-it for Java, and I would recommend going through it as a starting point. The Codagen folks believe strongly that frameworks are just as important for small and medium projects as they are for large projects - and the introduction section of the tutorial is dedicated to explaining this concept. As IT professionals and application developers we're certainly living in a time of tight deadlines and complex projects. I'd argue that very few projects in today's world are actually "small" projects. Sure, they might start out small; but they often end up being much larger efforts over the life of the application. Does this mean that we're underestimating the initial development effort in the first place? Not necessarily. We've all learned the lesson that large, multiyear projects are less likely to be successful than smaller, tactical projects. (We may be short on empirical evidence for this hypothesis, but it appears to be so from anecdotal evidence.) The result of this collective experience has been a trend toward projects that are much shorter in duration. This doesn't mean that we simply ignore larger, more complex, long-term projects. Rather, we have a better chance of success in managing large projects if we can break them down into a series of smaller projects with highly focused goals. Even projects that appear to be smaller in scope can grow as the needs of the business change. For many companies the first step into the Internet is a simple Web site soon to be followed by a dynamically generated Web site, online payment, interfaces to partners - the list is endless. Of course, one result of taking a large, complex project and breaking it down into smaller, more manageable chunks is that without a proper game plan it can lead to chaos. This is exactly where the folks at Codagen have designed the Gen-it product to play. Tackling larger projects (or small projects that grow into large projects over the life of the application) becomes possible when you use a well-planned architecture.

Gen-it is designed with the idea of removing the burden of implementing repetitive code from the hands of the programmer. It differs somewhat from typical frameworks in that it has been designed to work in conjunction with a framework. Thus, while most framework products are harnessed into the programmer's interactive development environment (IDE), Gen-it is plugged into the modeling environment. Figure 1 shows this relationship graphically.

The implied development methodology that Gen-it follows starts with a UML model. Having defined the model, you then choose a prefabricated framework for deployment (such as EJB or San Francisco). Once you have the framework, you then use the Gen-it tools to create a set of templates that would be used to harness the framework to your UML model. A thorough understanding of UML isn't required as Gen-it currently uses only the UML class diagram. Furthermore, Gen-it doesn't affect the visual representation of a UML model. It simply uses the items found in the static view - the class diagram - as convenient holders for extra structural information.

Codagen recommends you make use of their consulting resources in order to evaluate the Gen-it for Java product, and based on my experiences with it I would have to agree. While the tutorial attempts to walk you through the development process using the simple "Memento" framework model, inexperienced developers aren't likely to pick up on the benefits through the tutorial. Version 1.2 has reworked the tutorial to address these shortcomings.

The main interface for Gen-it is the organizer (see Figure 2), used by application architects in creating and managing templates. Templates define the specific actions implemented for the various classes in your application. In essence, the templates map the framework to your UML model.

Individual developers can be given access to the templates for use in generating code using the Batch-it interface. While Gen-it allows the application architect to modify templates, Batch-it developers are restricted to code generation based on the templates. In this way you can prevent individual developers from straying away from the framework by consolidating template management to a smaller subset of critical developers. Gen-it's real power is based on this template feature - but it's difficult to get the true flavor of templates from the downloadable kit. Even if you were able to work with templates extensively in the downloadable version, I would still recommend that you take advantage of Codagen's consulting services in evaluating Gen-it for Java. The real value in this product is in the creation and deployment of a framework throughout your application. By working closely with the Codagen experts, you're much more likely to get the most out of the templates interface. (The tutorial and user guides aren't enough to get you rolling with Gen-it on a real project.) If you're familiar with Rational Rose, at least, then part of the overall learning curve will be much easier. Gen-it for Java is linked directly into the Rational Rose IDE (see Figure 3).

The evaluation kit includes several Rational Rose models, including the Banking Model shown in Figure 3. Using the Gen-it tools within Rational Rose allows you to record design decisions directly in your UML model. Gen-it properties are attached to the UML model by means of External Properties, which are specific to a class, attribute or role. Gen-it uses the external properties that you set in the model to apply template definitions to your generated code. Once you select a set of classes (or packages) in your model and choose the "Gen-it" option from the menu, the Organizer interface will appear as shown in Figure 2. (Codagen provides an option that will allow Gen-it to write the generated code directly into IBM's Visual Age for Java as well.) The result is a fairly seamless transition from UML to code - provided that you have the proper templates.

Summary
The twin problems of limited resources and short deadlines can be mitigated by leveraging application frameworks. Codagen's Gen-it for Java product is a useful tool for connecting frameworks to models. Though Gen-it does require more than a casual understanding of Java and architecture, Codagen encourages you to use their technical support for evaluation and product issues. It's free and it helps them better understand customer issues. The consulting services can be used for more in-depth issues related to deeper architecture issues. Products such as Gen-it that have the potential to significantly shorten your development cycles are not simply "plugged-in and turned on." However, if you're short on Java programmers and want to make your development resources go farther, then a little up-front effort can pay big dividends down the road.

More Stories By Jim Milbery

Jim Milbery is a Vice President with William Blair Capital Partners, a venture capital firm based in Chicago. He has over 19 years of experience in application development and relational databases. He is the former applications editor for "Wireless Business and Technology", the past product reviews editor for Java Developer Journal and the author of "Making the Technical Sale". Jim can be reached at [email protected], or via the company web site at http://www.wbcapitalpartners.com

Comments (0)

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.


@ThingsExpo Stories
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, will discuss how from store operations...
Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, will discuss some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he’ll go over some of the best practices for structured team migrat...
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, will discuss how they bu...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
SYS-CON Events announced today that Datera will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera offers a radically new approach to data management, where innovative software makes data infrastructure invisible, elastic and able to perform at the highest level. It eliminates hardware lock-in and gives IT organizations the choice to source x86 server nodes, with business model option...
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
Digital transformation is changing the face of business. The IDC predicts that enterprises will commit to a massive new scale of digital transformation, to stake out leadership positions in the "digital transformation economy." Accordingly, attendees at the upcoming Cloud Expo | @ThingsExpo at the Santa Clara Convention Center in Santa Clara, CA, Oct 31-Nov 2, will find fresh new content in a new track called Enterprise Cloud & Digital Transformation.
SYS-CON Events announced today that N3N will exhibit at SYS-CON's @ThingsExpo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. N3N’s solutions increase the effectiveness of operations and control centers, increase the value of IoT investments, and facilitate real-time operational decision making. N3N enables operations teams with a four dimensional digital “big board” that consolidates real-time live video feeds alongside IoT sensor data a...
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
SYS-CON Events announced today that Avere Systems, a leading provider of hybrid cloud enablement solutions, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere Systems was created by file systems experts determined to reinvent storage by changing the way enterprises thought about and bought storage resources. With decades of experience behind the company’s founders, Avere got its ...
SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere delivers a more modern architectural approach to storage that doesn't require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbui...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
SYS-CON Events announced today that Ryobi Systems will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ryobi Systems Co., Ltd., as an information service company, specialized in business support for local governments and medical industry. We are challenging to achive the precision farming with AI. For more information, visit http:...
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...