Hi,

I'm an EJB newbie.

I wrote a stateless session bean and deployed it with orion server.
Accessing it from servlets/JSPs that are included in the .ear file by
configuring the xmls works fine.

But I do have a problem figuring it out for standalone clients.  What
are the exact steps that
should be taken in looking up, creating and accessing a bean from a
standalone client that resides on another machine given the following
deployment descriptors: ejb-jar.xml and orion-ejb-jar.xml ?

Thanks


****** ejb-jar.xml:

<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

<ejb-jar>
   <enterprise-beans>
      <session>
         <description>Adds, subtracts, multiplies and
divides</description>
         <display-name>Session Bean Calculator</display-name>
         <ejb-name>CalculatorService</ejb-name>
         <home>com.beans.CalcHome</home>
         <remote>com.beans.Calc</remote>
         <ejb-class>com.beans.CalcBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Bean</transaction-type>
      </session>
   </enterprise-beans>
</ejb-jar>

****** orion-ejb-jar:

<?xml version="1.0"?>

<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans
1.1 runtime//EN" "http://www.orionserver.com/dtds/orion-ejb-jar.dtd";;>

<orion-ejb-jar>
   <enterprise-beans>
      <session-deployment>
         <ejb-ref-mapping location="ejb/Calc" name="CalculatorService"/>

      </session-deployment>
   </enterprise-beans>
</orion-ejb-jar>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to