Welcome!

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

Related Topics: Java IoT

Java IoT: Article

Component Assembly Using a Visual Development Environment

Component Assembly Using a Visual Development Environment

Every day more organizations are embracing CBD (component-based development) for its promise of code reusability and, as a result, reduced development effort and faster time-to-market. In addition, Java is quickly being adopted as a standard for Web development.

Application server vendors are now selling components for e-commerce and vertical applications. For example, BEA Systems identified this trend early on, and understood how it could become a competitive advantage. To that end, BEA recently acquired The Theory Center, a software development firm focused on creating EJB (Enterprise JavaBeans) component solutions for e-commerce. Now BEA offers The Theory Center's e-commerce objects bundled with their own application server and is marketing the solution as its Commerce Server.

According to the GartnerGroup, by 2003 at least 80% of all new applications will be built using primarily components. New vendors, such as Evergreen, are joining the component market. Component marketplaces such as flashline.com and componentsource.com are making thousands of components readily available for developers.

CBD also makes it easier to create applications that separate both presentation and business logic. The complex logic is created in an EJB while the user interface is developed using JavaServer Pages (JSP) and/or servlets.

However, CBD introduces new challenges that developers must face, along with existing challenges that are inherent to developing complex applications. Creating a harness to test an object is a time-consuming task. Assembling components is still complex, requiring highly experienced Java developers to spend a lot of time coding. Integrating COM and EJB objects in the same application is nearly impossible.

Separating presentation logic from business logic on the user-interface side is a challenge developers face when trying to create an easy-to-maintain application. In addressing this issue of logic separation, Michael Lacy wrote in the May 2000 issue of JDJ (Vol. 5, issue 5): "The merging of Java and HTML frequently creates development headaches....Once the application is finished, our headaches turn into migraines upon the realization that we have to dig through all of the intermingled code for maintenance and enhancements."

Another factor is finding, training and retaining experienced Java developers. Even with thousands of developers learning Java and other advanced skills, the supply of qualified candidates is unlikely to catch up with demand anytime soon.

As development organizations struggle with these challenges, there's a growing demand for development tools that hide the complexity of an application and enhance productivity. A development environment is available that enables developers to visually assemble components while hiding their logic; this makes teams more productive by separating tasks according to the developer's skill level. This environment, Tango 2000 from Pervasive Software, is centered around visual programming techniques that accelerate the development process and enable developers to work at different levels based on their skill sets.

Tango 2000 makes it easy to build Web applications that incorporate a variety of reusable components. Currently it allows users to easily mix COM and JavaBean objects to implement business logic. A forthcoming Tango 2000 service pack will enable developers to incorporate Enterprise JavaBeans into Tango 2000-based applications.

Tango 2000 also introduces a new construct called a Tango Class File (TCF) that makes it simple to encapsulate frequently used logic into reusable components and to separate business logic from presentation logic.

Developers will be able to visually integrate COM objects, JavaBeans, TCFs and EJBs in the same manner. Once the object is located, Tango introspects it and finds its methods, dependent objects and parameters. Passing information to and from any of these object types is also possible within the Tango environment using Tango-specific logic. For example, depending on the developer's skill and the complexity of the function, a database query can be performed through a wizard, either visually using a Query action or with a direct DBMS command writing specific SQL code. Sending an e-mail is another function that can be done quickly and visually using Tango actions.

Using a Simple JavaBean Visually
Using a JavaBean or COM object is a three-step process:

  1. Navigate to the object and add it to the Tango Object Workspace. Tango 2000 introspects the object to enumerate any dependent objects. When you select the desired objects from the list, they're introspected further to enumerate the public methods and properties, as well as their parameter data types.
  2. Create an instance of the object by simply dragging it into your project. Give it a unique variable name and assign a scope to it. Tango provides a variety of scopes ranging from local through user to application scope. The life cycle of the object is governed by the reference count for the object's scope. When the object goes out of scope and there are no other users, the object is released.
  3. Use the object's methods and attributes by simply dragging them into your project (see Figure 1). Specify where to put the results, usually a local variable. Then for each parameter you can optionally provide literal values or Tango variable names that get resolved at runtime.

Integrating Advanced Services
By leveraging COM and JavaBean objects, you can integrate a wide variety of technologies into your Web application. Tango 2000 will automatically convert, by default, the results of object calls into HTML. Returned Java arrays are automatically converted into HTML tables that inherit the default style settings for tables. Encapsulating style settings in TCF methods makes it easy to adapt the Web site's themes with a single change.

It's important to use objects that are specifically designed for server-side usage, since they have no dependencies on a developer to operate a GUI. There are plenty of available COM objects suitable for server-side usage. For example, Microsoft offers the Windows Scripting Host object, the FileSystem object, and the Microsoft XML and XSL advanced parsers.

There are numerous sources of JavaBeans as well. For example, IBM's alphaWorks Web site has an interesting collection of JavaBeans. You can also use the JavaBeans that come with a variety of SDKs. Novell and Netscape also provide JavaBeans with an interface to their directory services.

Making Object Reuse Even Easier
Some objects are specifically designed to be used only in pure Java applications.

Occasionally you may prefer to wrap these JavaBeans in your own to simplify the reuse of the technology. The methods in the Netscape Directory Server SDK are good examples. In this case five LDAP operations are associated with doing a simple LDAP search (see Figure 2). Instead of doing all these tasks directly from Tango, you might craft a JavaBean with a method to encapsulate these steps. You also might want the JavaBean to return the LDAP results as an XML document. To simplify reuse of this JavaBean, the developer can create a collection of snippets that provides many simple and advanced examples of method invocations.

You could just as easily implement a COM object to interface with the ADSI (Active Directory Server Interface) on Windows platforms. In fact, if you build a COM wrapper for ADSI with the same interface as the JavaBean wrapper for the LDAP server, the same Tango 2000-based application can be constructed to use either directory service.

Enterprise JavaBeans Made Easy
With the next Tango 2000 service pack (planned for this summer) you'll be able to use EJBs in your Tango applications. As before, simply navigate the Tango Editor to the location of the JAR, WAR or EAR to add it to your Object Workspace. You'll also be able to view the methods and properties of the EJB as easily as those of COM, JavaBean and TCF objects.

With the release of this new version, you won't have to deal with the complexities of Home and Remote interfaces, Deployment Descriptors, Application Server variations and so forth. Instead, you'll be free to devote all your energies to the task of implementing your business logic and crafting suitable presentation logic.

A True RAD Approach to Web Application Development
If you currently use components in your development projects, you already appreciate how important they can be in assembling a cutting-edge Web site in the shortest time frame possible and maximizing code reuse. The typical developer in Tango 2000 is able to implement a project in a fraction of the time needed in other Web development environments because it lets you stay focused on your business logic, not on the "plumbing" infrastructure that enables the application.

An ideal Web development team will consist of a group of individuals, each with different skill sets (see Figure 3). Senior developers needn't spend valuable time creating presentation logic or user interfaces. Instead, they can focus on the complex business logic that fully requires their experience. They can use a visual assembly tool to create a harness to test and demo the objects they're developing, and they can also create business logic inside this RAD environment.

A graphic designer typically focuses only on the presentation logic of the application using any HTML editor. The tool of choice is Dreamweaver given its easy integration into other environments including Tango 2000.

A third segment of the development team - Web developers with intermediate development skills - can be very productive assembling finished objects created by senior programmers, integrating them with the presentation logic and creating business logic that doesn't require the complexity of Java. These tasks can be accomplished quickly and easily with the Tango environment.

The catalog and shopping basket pieces of an e-commerce application typify business logic that can be developed entirely within the Tango environment, usually in less time than Java. The back-end integration with systems such as accounting and shipping is typically handled with an object. Tango provides native support for XML documents, allowing you to build portable and scalable B2B or B2C applications. Wireless applications are also created in a snap, given Tango's built-in WML support.

Efficient Code Reuse
Tango 2000 provides an extensive collection of snippets to simplify tasks ranging from Tango 2000 server configuration tuning to WML page crafting. Team members can create and share libraries of snippets, thus simplifying their reuse by hiding the complexity of object interfaces and avoiding typographical errors.

Pervasive Software offers it own collection of TCFs and other objects to simplify development efforts. Developed by customers as well as by Pervasive employees, these objects are available in the ComponentZone on the Pervasive Web site (www.pervasive.com).

Summary
When developing at Internet speed, you need an application server and a development studio that delivers on the promise of rapid Web application development. Tango 2000 allows developers to accelerate the development process from concept to working Web application in days rather than weeks or even months.

The Tango 2000 Development Studio is available for Mac OS and Windows 95/98/NT/2000, while the Tango 2000 Application Server is available on Windows NT, Linux, Solaris and Mac OS. Applications developed in Tango are truly cross-platform, so as your business grows, you can move your applications to more scalable platforms. Tango 2000 also supports load balancing across clusters of servers, allowing you to easily scale your Tango application to match your requirements. Tango 2000 Application Server also supports caching and database connection pooling to provide optimal performance for your Web applications.

Pervasive Software plans to release a new product before the end of the year that will allow developers to deploy Tango-developed applications to J2EE servers. This product will allow developers to create EJBs and servlets, as well as integrate objects using the same visual approach used to create Web applications in Tango.

CBD promises a more efficient way to develop applications with commercial, vendor-provided or internally developed objects. Using a visual development environment to test and assemble these objects significantly enhances productivity for all the members of the development team.

More Stories By Jeff Chapman

Jeff Chapman is a senior lead quality engineer at Pervasive Software.

More Stories By Gerardo A Dada

Gerardo A Dada is Vice President of Product Marketing and Strategy for SolarWinds’ database and applications business globally. He is a technologist who has been at the center of the Web, mobile, social and cloud revolutions at companies like Rackspace, Microsoft, Motorola, Vignette and Bazaarvoice. He has been involved with database technologies from dBase to BTrieve to SQL Server and NoSQL and DBaaS in the cloud.

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.


IoT & Smart Cities Stories
Early Bird Registration Discount Expires on August 31, 2018 Conference Registration Link ▸ HERE. Pick from all 200 sessions in all 10 tracks, plus 22 Keynotes & General Sessions! Lunch is served two days. EXPIRES AUGUST 31, 2018. Ticket prices: ($1,295-Aug 31) ($1,495-Oct 31) ($1,995-Nov 12) ($2,500-Walk-in)
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
Nicolas Fierro is CEO of MIMIR Blockchain Solutions. He is a programmer, technologist, and operations dev who has worked with Ethereum and blockchain since 2014. His knowledge in blockchain dates to when he performed dev ops services to the Ethereum Foundation as one the privileged few developers to work with the original core team in Switzerland.
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
Digital Transformation and Disruption, Amazon Style - What You Can Learn. Chris Kocher is a co-founder of Grey Heron, a management and strategic marketing consulting firm. He has 25+ years in both strategic and hands-on operating experience helping executives and investors build revenues and shareholder value. He has consulted with over 130 companies on innovating with new business models, product strategies and monetization. Chris has held management positions at HP and Symantec in addition to ...
The challenges of aggregating data from consumer-oriented devices, such as wearable technologies and smart thermostats, are fairly well-understood. However, there are a new set of challenges for IoT devices that generate megabytes or gigabytes of data per second. Certainly, the infrastructure will have to change, as those volumes of data will likely overwhelm the available bandwidth for aggregating the data into a central repository. Ochandarena discusses a whole new way to think about your next...
CloudEXPO | DevOpsSUMMIT | DXWorldEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
All in Mobile is a place where we continually maximize their impact by fostering understanding, empathy, insights, creativity and joy. They believe that a truly useful and desirable mobile app doesn't need the brightest idea or the most advanced technology. A great product begins with understanding people. It's easy to think that customers will love your app, but can you justify it? They make sure your final app is something that users truly want and need. The only way to do this is by ...
DXWorldEXPO LLC announced today that Big Data Federation to Exhibit at the 22nd International CloudEXPO, colocated with DevOpsSUMMIT and DXWorldEXPO, November 12-13, 2018 in New York City. Big Data Federation, Inc. develops and applies artificial intelligence to predict financial and economic events that matter. The company uncovers patterns and precise drivers of performance and outcomes with the aid of machine-learning algorithms, big data, and fundamental analysis. Their products are deployed...