Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > commented properties in ejb file.

Reply
Thread Tools

commented properties in ejb file.

 
 
swun2010@gmail.com
Guest
Posts: n/a
 
      01-31-2008
Hi,

Can anyone tell me whether I have to put down the properties in an ejb
file?
Why I need to do that for ejb file?
Please refer to the following example for discussion,


package examples.ejb20.relationships.bands;

import javax.ejb.*;
import weblogic.ejb.*;

/**
* @ejbgen:entity prim-key-
class="examples.ejb20.relationships.bands.Recordin gBeanPK"
* ejb-name = "Recording"
* data-source-name="cgSampleDataSource"
* table-name = "recording"
* abstract-schema-name = "Recording"
*
* @ejbgen:jndi-name
* local = "ejb.RecordingLocalHome"
*
* @ejbgen:file-generation local-class = "True" local-class-name =
"Recording" local-home = "True" local-home-name = "RecordingHome"
remote-class = "False" remote-home = "False" remote-home-name =
"RecordingRemoteHome" remote-class-name = "RecordingRemote" value-
class = "False" value-class-name = "RecordingValue" pk-class = "True"
*
* @ejbgen:relation role-name="Recordings-have-BandEJB" fk-
column="BandEJB_name" cmr-field="band" target-ejb="BandEJB"
multiplicity="Many" name="Recording-BandEJB"
*/
abstract public class RecordingBean
extends GenericEntityBean
implements EntityBean
{


Thanks
Sam
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to generate "ejb-jar.xml" from EJB class (source)? "ejb-jar.xml" appserver independent? Raymond Schanks Java 0 08-03-2010 08:21 AM
Commented Code Not Treated As Commented Code Jim Heavey ASP .Net 1 12-02-2003 02:25 PM
To EJB or not to EJB Jeremy Haile Java 5 09-10-2003 03:52 AM
EJB on Weblogic7 : accessing Ejb thru *Local interface* fails due to JNDI lookup Mumbai Joe Java 0 07-29-2003 04:16 PM
Dynamically Access & Call An EJB From Another EJB? Steve Java 1 07-15-2003 06:47 PM



Advertisments