Discussion:
[Middlegen-user] The class of entitybean that Middlegen generated is abstract,why??
俊霖
2002-08-13 06:30:01 UTC
Permalink
And I used the file(*Bean.java) for the source of Xdoclet,

I got an abstract class(*CMP.java),too.

How can I get a concrete class?

Could someone help me?

thanks!!
a***@netcom.no
2002-08-13 08:36:03 UTC
Permalink
Because the EJB spec says so. CMP 2.0 EJBs are always abstract.

http://java.sun.com/products/ejb/docs.html

The class that Middlegen generates will live inside your EJB container
(WLS, JBoss), and the container will automatically make a concrete
subclass of it.

-But it's not these classes your application should deal with. You
should deal with the EJB interfaces (that XDoclet generates).

You sound like you're new to EJB. Recommended reading:
http://www.theserverside.com/books/masteringEJB/index.jsp

HTH
Aslak


----- Original Message -----
From: �  <***@eibsoft.com>
Date: Tuesday, August 13, 2002 10:28 am
Subject: [Middlegen-user] The class of entitybean that Middlegen
generated is abstract,why??
Post by 俊霖
And I used the file(*Bean.java) for the source of Xdoclet,
I got an abstract class(*CMP.java),too.
How can I get a concrete class?
Could someone help me?
thanks!!
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...