Implement business data monitoring for applications on was by using CBE and JAXB integration

Source: Internet
Author: User
Tags bind memory usage websphere application server

Today's businesses advocate change on demand, so it is necessary to analyze metadata in the shortest possible time to respond to the great challenges of these changes. In addition, how to predict the potential problems in the enterprise application in advance, such as the customer registration amount, the fluctuation of order quantity and so on, are very important to the enterprise plan, so we need to collect and analyze the metadata in time. As one of the current mainstream technologies, EJB3 provides a range of technical points to support better operational JavaBean for developers, making it easier to control JavaBean, while JAXB provides a mutual conversion between JavaBean and XML.

As we know, all applications in WebSphere application Server are based on JavaBean for data interaction and delivery, so we consider implementing a common technology using EJB3 's new technology points and JAXB to implement the E JB3 the application configuration to monitor the business data in JavaBean.

Introduction to JAXB Technology

JAXB (Java architecture for XML Binding) is an industry standard and is a technology that can generate Java classes from XML schemas. In this process, JAXB also provides a way to reverse-generate JavaBean XML instance documents and to write the contents of JavaBean to an XML instance document. On the other hand, JAXB provides a quick and easy way to bind XML schemas to Java representations, making it easy for Java developers to combine XML data with processing functions in Java applications.

This article uses the functionality of JavaBean in JAXB to serialize XML through Annotation, and JAXB has the following important Annotation, which are described in detail for each Annotation in the following text.

@XmlAccessorType

@XmlAttribute

@XmlElement

@XmlElements

@XmlRootElement

@XmlTransient

@XmlValue

The following figure shows the architecture for JAXB:

As shown, JAXB simplifies the access of Java programs to XML documents through the BIND compiler (Binding Compiler), and then presents XML documents in JavaBean format.

At the same time, JAXB provides the appropriate API for converting between XML documents and tree content objects, which is more beneficial to saving memory usage than XML documents.

Figure 1. JAXB System Architecture Diagram

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.