Other NetWeave Services

NetWeave for the Web

Secure, Reliable File Transfer

Secure Communications

Queued Messaging (Workflow)

Interactive (Transactional) Messaging

API/Ancillary Services

 

 

 


The Java Interface
NetWeave Integrated Solutions offers two Java interfaces, the NWDSBean and POJO (Plain Old Java Object).

NWDSBean Interface
The first interface, The NWDSBean Interface, is a stateless session bean that is fully Java2 Enterprise Edition (J2EE) compliant and is most often used with an Enterprise Java Bean (EJB) container. The NWDSBean supports transaction semantics. Thus, an EJB can begin a transaction against a NetWeave-supported transaction service such as HP Nonstop TM/MT (TMF).

In a typical J2EE application, Enterprise Java Beans contain the application's business logic and live business data. Using EJBs addresses many of the issues found by utilizing simple Java objects, such as scalability, lifecycle management, and state management. The NWDSBean Interface enables NIS
customers intending to use J2EE as the development framework to implement a cross-platform integration strategy that is fully J2EE-compliant. 

As a result of its being EJBv2-compliant, the NWDSBean can be instantiated just like any other bean. It is loaded into the J2EE container like any other bean. The configuration is provided by a deployment descriptor that contains only one entry, the port of the local server daemon. If the developer is not using transactions, there is only one method to call against the NWDSBean - writeRead.  It is a simple approach using concepts that should be completely familiar to the Bean developer.

Significantly, the NWDSBean offers a performance/efficiency benefit.  Since the NWDSBean is a true stateless session bean, it can exist in the container for a long time period as determined by the container administrator. It can also service many clients. If more than one simultaneous session is required, the container will create a second NWDSBean to service the additional session.  

Even though the NWDSBean may be instantiated and destroyed frequently by the container, the Bean communicates with a local daemon process through which remote platform communications are accomplished and maintained. This local daemon is responsible for maintaining connections to remote platforms on behalf of the NWDSBean components being utilized by the application developers.  As a result, repeated instantiations of NWDSBeans will enjoy the benefits of persistent connections to remote platforms, connections that often are expensive and time consuming to set up, particularly during a transaction.

NIS distributes the NWDSBean as a Java jar file, which contains the most popular container deployment descriptor files, including IBM WebSphere, Oracle WebLogic, and JBoss. The distribution package also contains a simple control program for managing the daemon.

POJO Interface
The second NetWeave Java interface is a POJO (Plain Old Java Object) interface. As the name implies, the POJO interface is a simplified, lighter weight interface that provides Java developers with less structure and less complexity than does the NWDSBean for the J2EE/EJB environment.  The NetWeave POJO Interface, known as the NetWeave Interface Class (N2IC), offers a stateless, context-free Java-class library for communicating with Netweave application servers on local or remote platforms. N2IC also provides Netweave transaction support; so a Java client can start a transaction against a Netweave-supported transaction service, such as HP NonStop TM/MT (TMF). The local server daemon initiates and maintains connections with other Netweave servers and also maintains transaction handles.

In terms of functionality and use, N2IC provides exactly the same capabilities as the NWDSBean for the J2EE/EJB environment. With this architecture, the developer simply instantiates the N2IC like any other component. The configuration is provided in the N2IC.properties file and contains only one entry, the port of the local server daemon. If the developer is not using transactions, there is only one method to call in the object, namely writeRead.

The N2IC classes are distributed as a .jar file and are shipped together with the daemon’s executable appropriate to the computer that runs the Java client. The distribution package also contains a simple control program for managing the daemon.

 

 

About Us | Contact | Our Services | NetWeave Solutions | Downloads | Case Studies | Our Clients | Legal

20 Gibson Place | Suite 210 | Freehold NJ 07728 | Phone: +1.732.786.8830 | Fax: +1.732.780.5558 | E-mail: info@netweave.com

Copyright © 2010 NetWeave Integrated Solutions, Inc. All Rights Reserved.
For questions regarding this site, email: siteadmin@netweave.com