Oky.

Well there's not much documentation about it... but i did this:


1. application-client.xml

<application-client>
  |    <display-name>J2EE Client Tests</display-name>
  |    <description>A sample application client descriptor</description>
  | 
  |    
  |     <ejb-ref>
  |       <ejb-ref-name>ejb/PruebaSession</ejb-ref-name>
  |       <ejb-ref-type>Session</ejb-ref-type>
  |       <home>co.com.mazda.pruplat.PruebaSessionHome</home>
  |       <remote>co.com.mazda.pruplat.PruebaSession</remote>
  |    </ejb-ref>
  | 
  | 
  |     <resource-ref>
  |         <res-ref-name>PostgresDS</res-ref-name>
  |             <res-type>javax.sql.DataSource</res-type>
  |             <res-auth>Container</res-auth>
  |             <!--res-sharing-scope>Shareable</res-sharing-scope-->
  |     </resource-ref>
  | </application-client>

2. jboss-client.xml

<jboss-client>
  |    
  |    <jndi-name>test-client</jndi-name>
  | 
  |    <ejb-ref>
  |       <ejb-ref-name>ejb/PruebaSession</ejb-ref-name>
  |       <jndi-name>PruebaSession</jndi-name>
  |    </ejb-ref>
  | 
  |    <resource-ref>
  |       <res-ref-name>PostgresDS</res-ref-name>
  |       <jndi-name>java:/PostgresDS</jndi-name>
  |    </resource-ref>
  | 
  | </jboss-client>

3. application.xml

<application>
  | 
  |   <display-name>Prueba Plataforma</display-name>
  | 
  |   <description> Prueba de plataforma </description>
  | 
  |   <module>
  |     <ejb>prueba.jar</ejb>
  |   </module>
  |   
  |   <module>
  |     <java>app-client.jar</java>
  |   </module>
  | </application>

and the client code is already in other post...

thanks in advice!

Kata

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826198#3826198";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826198>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to