Welcome!

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

Related Topics: Weblogic

Weblogic: Article

Rapid Enterprise Application Integration with BEA WebLogic

Rapid Enterprise Application Integration with BEA WebLogic

Your WebLogic applications have a diverse array of integration requirements, and WebLogic Application Server provides a rich set of technologies to meet these needs. In this article we'll survey these integration needs and show how you can rapidly meet them using WebLogic Application Server and NeuArchitect for rapid application development.

The integration needs of your application may be categorized (see Figure 1) as :

    1. Integration with packaged enterprise applications, such as SAP, Siebel, or PeopleSoft
    2. Integration with legacy systems, such as logic in a CICS application or data in an IMS database
    3. B2B integration with customers and partners
    4. Publishing and using components in a component-based development environment
    Technologies are now available to meet these application integration needs. They include messaging using XML and JMS, Web services, many types of connectors - J2EE connectors, legacy connectors, and API connectors. For each need, more than one type of integration technology may be available, and you'll need to select the one most suited to your needs.

Enterprise Application Integration
Your packaged enterprise applications, such as those from SAP, PeopleSoft, Siebel, and J. D. Edwards, may provide alternative methods of integration. SAP, for example, originally provided a proprietary API interface called BAPI, and a proprietary messaging system called iDocs. More recently, SAP has offered standards-based integration approaches that include XML messaging, J2EE Connector Architecture, and Web services. Most packaged application vendors are similarly moving toward offering standards-based integration.

Legacy Integration
Legacy integration requires that your application be able to interact with older systems that have data and program elements of noncontemporary technologies such as CICS or MVS programs and IMS, VSAM, IDMS, and ADABAS databases. These systems were written well before today's sophisticated integration technologies were available; therefore, legacy connectors are needed to wrap data and logic. These connectors are available from many vendors, including iWay Software and NeuVis.

B2B Integration
Business-to-business (B2B) integration allows your applications to interact directly with your partners' applications - for example, sending orders directly to your vendors or receiving them from your customers - to provide an efficient way of conducting your business. Originally, EDI messaging was developed to meet these needs, but it proved to be cumbersome and expensive and has been implemented mostly by large companies. Now XML messaging over the Internet is making B2B integration more flexible and less expensive. Web services will also be a promising technology for B2B integration after it has developed appropriate standards and infrastructure for security and reliability.

Component-Based Development
Component-based development allows you to reuse your application components across many applications. Integration at the component level involves developing a common interface that other programs and systems can use to access the features of the component. You have a choice of component technologies: you can publish and use your EJB components as session and entity beans, or you can bridge to COM and CORBA components. Most importantly, Web services promises to be the universal standard for component-based development - that will be implemented on all platforms and technologies.

Integration Technologies and Rapid Integration Development
Application integration needs can be met with a variety of technologies. In the following sections we'll examine key technologies available on WebLogic and see how you can rapidly develop your application integration solution using the WebLogic platform and NeuArchitect, a RAD tool from NeuVis software.

Messaging Using XML and JMS
Messaging is the most flexible and formal means of integrating your application with existing applications. It is suitable only if the applications being integrated have an agreed-upon and supported protocol for messaging. This protocol may be an industry standard, or a custom protocol adopted between the providers of the applications. Messaging is a very popular means of integration within the enterprise and for B2B integration. Messaging involves two technologies - XML as the format of the message and JMS-enabled transports for transporting the messaging between applications (see Figure 2).

XML - Lingua Franca of Integration
One of the main problems with early integration efforts was the lack of a standard for sending information between programs and partners. There was EDI, but it required a customized communications infrastructure to support that was also very expensive on a per-transaction basis. What was needed was something that could work (securely) over the Internet and could provide a significantly reduced per-transaction cost. Enter XML.

XML has had a profound impact on integration, as well as computing as a whole. It's the basis for other technologies, such as SOAP (Simple Object Access Protocol), the protocol used as part of Web services. XML provides a means of describing both the structure and content of data in a form that is easily exchanged over the Internet. The format is defined either in a DTD document or as an XML schema. These formats are then exchanged between trading partners. Additionally, a variety of industries have developed XML-based standards for describing data, which further eases the task of integration.

JMS Messaging
Java Message Service (JMS) is a standard J2EE API for reliable asynchronous messaging between applications. Many vendors, including BEA, have implemented this API. BEA's offering is composed of a transport mechanism and the JMS application layer API for administration and sending and receiving messages. These systems usually support two messaging paradigms: point-to-point (PTP) and publish-subscribe (pub-sub). PTP is a mechanism in which messages are sent from a particular source to a particular destination. The messaging system uses queues to accomplish this. Pub-sub works differently in that messages are sent to possibly multiple destinations. Receivers subscribe to a particular topic and when a message is generated for that topic all the receivers who subscribe to it receive the message.

With the release of the EJB 2.0 specification, a new mechanism was added to support JMS messaging: the message-driven bean or MDB. The MDB container provides a standardized listening service that monitors queues or topics for messages. It has a single standard interface method called OnMessage() that is executed once a message is received. This mechanism eliminates the need for the developer to write complicated listeners that would need to provide thread management, load balancing, and transactional controls. The container handles all of it. WebLogic supports the concept of the MDB in versions 6.0 and higher.

Now let's look at how you can create some rapid integration solutions using WebLogic and NeuArchitect.

Rapid Integration Using XML and JMS
As a first step, you will need to do some setup in the WebLogic Console. You need to do the following:

    1. Enable JMS for the main server instance. Click on the server instance and select the services tab and then the JMS tab.
    2. Create a JMS Server instance and assign it to your main server instance. You can do this by clicking on the JMS Servers node in the administration tree.
    3. Once a JMS Server is created, you need to create your destinations. Under your new JMS Server node, create your queues.
That's pretty much it as far as configuration. You can then use NeuArchitect to create the business logic to process either inbound or outbound messages. In NeuArchitect, you need to do the following:
    1. Create a project. Set the application server to BEA WebLogic
    6.1 (or later). Set the Messaging technology to JMS.
    2. Using the class diagram, create your business classes. The classes you define will be generated for the target technology with a host of essential plumbing code, so all you have to do is write your business methods.
    3. For a given class, use the Messages tab to define your message. You can identify it as inbound or outbound, and select what queue to use, encryption methods, and so on. For inbound messages, you can choose to use MDBs to process them.
    4. For your message, you can use the NeuArchitect Message Mapper to load a DTD for an XML message and then map the elements of the DTD to the business classes you created in the class model. It will generate all the code for reading the message and mapping the elements of the message to the business objects.
    5. Write your business method for processing the data that was mapped to your classes. Instead of parsing methods, you simply address objects and attributes. The NeuArchitect API allows you to insert the information into a database or do any further processing you wish.
    6. Press the Construct Messages button to generate the Java code, build the beans, and automatically deploy them onto WebLogic.
Web Services Web services is a newer technology that has the potential to transform integration and computing itself. The technology allows programs to communicate with one another using standard protocols such as HTTP. A service provider will write a piece of software that provides a useful business function. Using special tools, the service provider creates a definition of this service using Web Services Description Language (WSDL). Using this definition, the service provider will then publish the service to a Universal Description, Discovery, and Integration (UDDI) server that acts as a lookup registry similar to the way DNS works for finding hosts on the Internet. Anyone who wishes to use this service will query the UDDI server to discover a list of services from the provider and select the one they wish to use. As part of the discovery process, the user is provided with information on the nature of the service, how to call it, what parameters it accepts, and what information is returned from the service. The mechanism for communicating between a program and a Web service is Simple Object Access Protocol, or SOAP. SOAP is XML-based, and provides a powerful mechanism for making requests and receiving responses (see Figure 3).

Rapid Integration Using Web Services
BEA, along with several other vendors, has been an industry leader when it comes to Web services support. WebLogic Version 6.1 supports the deployment of Web services by providing automatic generation of WSDL definitions and the handling of SOAP messages for deployed Web services. NeuArchitect also provides development support to make it easy to create and deploy Web services on WebLogic. Here's what you need to do:

    1. There's no real setup for the WebLogic Server. The Web services support is supplied by the basic installation of Version 6.1 or higher.
    2. Using NeuArchitect, create an application and create your business classes.
    3. When you create your business classes, you also create your business rules in the form of methods on the classes. These rules are written in Java. With a click of a mouse, you can declare any of these methods to be Web services. Additionally, NeuArchitect allows you to create and publish components that can combine several classes and methods together. Again, with a click of a mouse, all the methods in the component can be defined as Web services.
    4. Once you've created your methods and/or components, construct them. NeuArchitect will use WebLogic's inherent WSDL creation facility to generate the WSDL. WebLogic also provides the location of the WSDL, which is needed for publishing to a UDDI server.
    5. The developer can point at a public or private UDDI server, and then provide the WSDL from WebLogic to indicate where the Web services are published. All of this is done with a few clicks of the mouse.

Web services can also be used to reinvigorate existing assets. NeuArchitect can create wrappers that call existing functions. These wrappers would then be published to WebLogic as Web services.

J2EE Connector Architecture
In the 1990s, enterprises began the process of consolidating internal systems by deploying enterprise resource planning (ERP) systems from companies such as SAP, Baan, J.D. Edwards, and PeopleSoft. These systems provided all the basic functionality for an enterprise: human resources, accounting, order processing, and inventory control, to name a few. These systems, once deployed, became the lifeblood of the organization, and a need arose to integrate them with other systems used by the enterprise.

Initial efforts required coding to a complex API provided by the ERP vendor. Sun has attempted to address this problem by providing the J2EE Connector architecture specification. WebLogic has introduced support for this in Version 6.1 and higher, providing a standardized method for accessing these ERP systems. ERP vendors write adapters to their systems that provide connectivity, as well as a discovery mechanism so the calling program can know the structure of the data that the ERP system supports.

Rapid Integration with Legacy Connectors
In order to integrate with legacy systems, you need to use the appropriate legacy connector. NeuArchitect provides legacy connectors to access data on IMS and VSAM databases and logic on CICS and MVS platforms. It also integrates with more than 140 legacy adapters offered by iWay Software. The following steps illustrate rapid legacy integration with the IMS database connector (see Figure 4).

    1. Using the mainframe translator software provided with NeuArchitect, translate your COBOL copy files into an XML schema file that will be imported into NeuArchitect and COBOL stored procedures that will perform the read/write access on the mainframe.
    2. Import the XML schema file into NeuArchitect. It's converted into a UML class model that remains mapped to your IMS database.
    3. You can now develop the rest of your application - e.g., you can integrate the application through messaging and Web services and design Web and wireless transactions. Auto-construct and deploy the application.
    4. When you use the application, it connects to the mainframe using JDBC through DB2 connect and uses the COBOL stored procedures that were generated in Step 1 to access the IMS database for read/write access.

In a similar manner, you can use other legacy connectors to access other types of legacy databases and logic.

Conclusions
There have been significant advancements toward easing the pain of EAI in the past few years. BEA, with its WebLogic platform, has provided support for the best of the emerging integration technologies. Moving forward, BEA will continue to refine and enhance WebLogic's integration capabilities.

Coupled with RAD tools such as NeuVis' NeuArchitect, the obstacles to integrating complex systems are being eliminated. This allows developers to use integration to form a comprehensive, cohesive enterprise information network that adds enormous value to the enterprise.

More Stories By Joseph Noonan

Joseph Noonan has been in
software development for 18 years. He is product development
manager at NeuVis Software, where he manages the runtime/J2EE
construction and system architecture groups
focusing on J2EE technologies and integration. Joe has an extensive
background in object-oriented analysis and design, UML, and
system architectural development. He is coauthor of a Windows 98 API
programming book.

More Stories By Arun Gupta

Arun Gupta is a Java evangelist working at Oracle. Arun has over 15 years of experience in the software industry working in the Java(TM) platform and several web-related technologies. In his current role, he works to create and foster the community around Java EE and GlassFish. He has been with the Java EE team since its inception and contributed to all releases. Arun has extensive world wide speaking experience on myriad of topics and loves to engage with the community, customers, partners, and Java User Groups everywhere to spread the goodness of Java.

He is a prolific blogger with over 1300 blog entries and frequent visitors from all around the world with a cumulative page visits > 1.2 million. He is a passionate runner and always up for running in any part of the world. You can catch him at @arungupta.

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
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
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, discussed how they built...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
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, discussed 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 covered some of the best practices for structured team migration an...
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
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 ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits,...
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. 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 ov...
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...
SYS-CON Events announced today that Cedexis 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. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
SYS-CON Events announced today that Google Cloud has been named “Keynote 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. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
SYS-CON Events announced today that Vivint to exhibit at 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. As a leading smart home technology provider, Vivint offers home security, energy management, home automation, local cloud storage, and high-speed Internet solutions to more than one million customers throughout the United States and Canada. The end result is a smart home solution that sav...
SYS-CON Events announced today that Opsani 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. Opsani is the leading provider of deployment automation systems for running and scaling traditional enterprise applications on container infrastructure.
SYS-CON Events announced today that Nirmata 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. Nirmata provides a comprehensive platform, for deploying, operating, and optimizing containerized applications across clouds, powered by Kubernetes. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of application containers and its underlying ...
SYS-CON Events announced today that Opsani to exhibit at 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. Opsani is creating the next generation of automated continuous deployment tools designed specifically for containers. How is continuous deployment different from continuous integration and continuous delivery? CI/CD tools provide build and test. Continuous Deployment is the means by which...