Yes,

It's a little unclear, but there's an expectation that you have to do some
homework before venturing into EJB development.

The Cart EJB demo with a command line client is in the <ORION
DIR>/demo/ejb/cart directory.

The top-level instructions for the EJB demos (including the Cart demo) are
in <ORION-DIR>/docs/ejbexamples/index.html

If you have not downloaded the documentation, then do so at the
"Download->Documentation" link on the http://www.orionserver.com main page.
 Then unzip the docs and look at the page above.  It will tell you how to
create a data source.

As for the JNDI settings, open the jndi.properties file in <ORION
DIR>/demo/ejb/cart.  It should look something like the following:
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
extFactory
java.naming.provider.url=ormi://localhost/ejbsamples
java.naming.security.principal=admin
java.naming.security.credentials=123

The "admin" principal indicates that you should have a user "admin" in your
<ORION DIR>/config/principals.xml file defined and that the password for
this user is "123" (gee, wouldn't it be nice if the property was
"java.naming.security.password" instead of
"java.naming.security.credentials").  

Also, you have to make sure that "deactiveated=false" for this user in
principals.xml.

You need to ensure that the following is in <ORION DIR>/config/server.xml
<application name="ejbsamples" path="../demo/ejb" /> 

Then you should be able to run the cart client from the command line.
Before trying to run the client, make sure that you have started Orion
server.  When Orion deploys the EJB examples, it should create a directory
<ORION DIR>/application-deployments/ejbexamples/cart that wasn't there
before).

Hope this helps.

Jay Armstrong
[EMAIL PROTECTED]

At 11:55 AM 3/12/01 -0800, you wrote:
>hello ~
>
>i was wondering if anyone could point me to an example which demonstrates
>how  a cmd line client could access a bean deployed in orion server. the
>docs talk about setting some jndi properties, but i am not too sure about
>what values to set them to. an example would be ideal. i did not find
>anything on the orion server or the support website or the faq.
>
>tia ~
>---
>Nimret Sandhu
>http://nimret.dhs.org
>
>


Reply via email to