MY GOAL:
I would like to properly log into orion, from a servlet, when requesting EJB
calls. I'd like to know which servlet users are hitting which EJBs without
explicitly passing the username and password around. This must be
possible!!
Here is the situation:
I'm running Orion 1.3.8 on WINNT 4.00.1381 with JDK-1.2.2_005.
Orion is running a servlet that accesses EJBs also run under Orion. I am
attempting to pass a username and password back through the use of the
SECURITY_PRINCIPAL and SECURITY_CREDENTIAL.
When the servlet sets up the call to the EJB and calls it, the PRINCIPAL,
when printed out from the EJB always seems to be 'guest'. When I use a test
program that calls the EJB through through orion, it seems to get the proper
username and password. Why does it not work through the servlet?
Why is this happening? One theory brought to my attention was that the two
scenarios use different virtual machines. i.e. the first scenario
(servlet -> ejb) always uses a single virtual machine, while the second
(test class -> ejb) uses two virtual machines (one for orion, one for the
test class). Why would separate virtual machines affect the PRINCIPALS and
CREDENTIALS?
Any and all help would be appreciated.
Matt MacGillivray
Technical Developer
Delfour Corporation
(905) 415-9779 x2021
[EMAIL PROTECTED]