The servlet is running on orion so you don't need to elaborate on the
context.
This should get your ejb:

            Context     context = new InitialContext();


            // Get home interface
            CommandHome cHome   = (CommandHome)context.lookup("Command");

            // Create a command object
            Command     command = cHome.create();

Command for me is a stateless session bean.
snippet from orion-ejb-jar.xml

        <enterprise-beans>
                <session-deployment name="Command" location="Command"
wrapper="CommandHome_StatelessSessionHomeWrapper1" max-tx-retries="3"
cache-timeout="60" persistence-filename="Command" />
        </enterprise-beans>


Good Luck!


Reply via email to