The descriptors shown are not descriptors associated with an ear file but a jar 
file. application.xml and jboss-app.xml are the descriptors associated with an 
ear file.

EAR files are enterprise archives that can contain jar, sar, war, har files as 
well as jar libraries. JAR files are java archives that contain entity and 
session beans.

In order to reference one bean from another one, you should populate the 
ejb-ref element in the first bean.

Further information on how to populate ejb-ref element can be found in the 
following dtd file:

$JBOSS_HOME/docs/ejb-jar_2_0.dtd

Assuming you wanted to reference bean with ejb-name 'honda2', the following 
element should be added to the definition of your first session bean in the 
ejb-jar.xml file:

<ejb-ref>
  |   <ejb-ref-name>my-ejb-references/honda2</ejb-ref-name>
  | <ejb-ref-type>Session</ejb-ref-type>
  | <home>$FULLY_QUALIFIED_NAME_OF_HOME_INTERFACE</home>
  | <remote>$FULLY_QUALIFIED_NAME_OF_REMOTE_INTERFACE</remote>
  | <ejb-link>honda2</ejb-link> <!-- ejb-name of the second session bean in its 
ejb-jar.xml file -->
  | </ejb-ref>

Hope this helps :-D

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to