[jboss-user] [Beginners Corner] - EJB entity with static final field

buggsbunny101 do-not-reply at jboss.com
Tue Nov 28 10:52:15 EST 2006


Hi,

I'm new in EJB, and i'm looking for a way to define constant for entity.
I have a Client class. This client can be of various type, and i want to define constant for this definition.
Apparently, the use of static filed in EJB is not a good practice. SO my question is : "How to define this constant?"

Here is a sollution http://publib.boulder.ibm.com/infocenter/rtnlhelp/v6r0m0/topic/com.ibm.etools.ejb.assembly.doc/topics/tecrteev.html .
Is there an equivalente in JBOSS 4.0.5? 

In fact i'm not really satisfied by this sollution, so is there another way to do that?

Should I define my constant in each interface (ClientLocal and Client)?
Is there a simple solution with xdoclet?

Thank you for supporting begginer :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989368#3989368

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989368



More information about the jboss-user mailing list