users@glassfish.java.net

Generating business interfaces automatically

From: Tharaka Abeywickrama <tharakawick_at_gmail.com>
Date: Wed, 17 May 2006 13:22:26 +0530

Hi,

Can we get EJB3 to generate the business interface, or do we always need to
define one explicitly?

I saw in http://java.sun.com/developer/technicalArticles/ebeans/ejbease/
that this is possible. It says:

"*...To create a session bean using EJB 3.0 technology, a developer only
needs to code a bean class, annotated with appropriate metadata annotations,
and a business interface. The business interface can be generated by
default. ...*"

It gives the example

@Stateless @Remote *public* *class* ConverterBean {
    //...
}



If this is possible, what is the name of the class/interface accessed in the
clients of the bean?


Thanks in advance,
Tharaka