Browse Prior Art Database

A method for building Enterprise JavaBeans components from existing JavaBean components, and using script languages

IP.com Disclosure Number: IPCOM000015453D
Original Publication Date: 2002-May-16
Included in the Prior Art Database: 2003-Jun-20
Document File: 2 page(s) / 56K

Publishing Venue

IBM

Abstract

Enterprise JavaBeans (EJBs) provide a powerful environment and programming model for writing business logic. Most EJBs follow a simple schema, and the main effort of writing an EJB should be to develop the business logic. However, while the EJB development is conceptually simple, in practice it is complex, because for each EJB the developer has to write a number of Java code files, many of which are interrelated. Also, EJBs can currently only be written in Java**.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 2

  A method for building Enterprise JavaBeans components from existing JavaBean components, and using script languages

Enterprise JavaBeans (EJBs) provide a powerful environment and programming model for writing business logic. Most EJBs follow a simple schema, and the main effort of writing an EJB should be to develop the business logic. However, while the EJB development is conceptually simple, in practice it is complex, because for each EJB the developer has to write a number of Java code files, many of which are interrelated. Also, EJBs can currently only be written in Java**.

    A recent system - Bean Scripting Components (BSC) - allows developers to create Java components using script languages such as Python, REXX, VBScript and JavaScript. To extend this approach to provide EJB support would provide two major benefits:

1) it would bring the simplicity of writing scripts to the process of building EJBs.
2) It would bring the capabilities of EJBs (transactions, automatic persistence of objects into a database, security) to scripted components.

    EJB-ML is a markup language which allows developers to create components using BSC, or any other Bean development system, and then convert these beans into Enterprise JavaBeans

    The EJB-ML language allows the developer to annotate an existing object using an XML syntax. The use of scripting and XML annotation improves useability for EJBs, and so facilitates use of more complex programs in the EJB environment.

    EJB-ML allows any input JavaBean to be wrapped as an Enterprise JavaBean. The annotations are read by the EJB-ML compiler, which generates an EJB based on the underlying component. The EJB uses a proxy approach to delegate incoming method invocations onto the underlying component.On the output side, EJB-ML allows the mapping of JavaBeans into Entity Beans (which can have persistent state, backed by a database).

    Thus, EJB-ML is a simple markup language that enables an enterprise bean (EJB component) to be described. EJB-ML can be used to describe both stateless session and persistent-state entity beans. EJB-ML does not describe the business logic of the component - this is deferred to the "implementation bean". EJB-ML aims to provide an environment where the implementation can be developed by a variety of means, including the Bean Scripting Components (BSC) system. BSC allows beans to be built with logic written in a number of pluggable scripting languages, including Py...