Are your trying to retrieve something from "java:comp" DIRECTLY from code
not running on Orion?

I have looked (very quickly) at the specs, and I don't think that's
allowed(seems pretty unsafe to me)
Perhaps you can build a session bean that preforms the lookup, then passes
the reference to the client

<flamebait>
But I think it's a bad idea anyway... it's kinda like "one and a half" layer
programming...
</flamebait>

My 2c,

JP

-----Original Message-----
From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
Sent: Martes, 24 de Octubre de 2000 7:10
To: Orion-Interest
Subject: get reference to UserTransaction fails


Hello,

i'm using transactions within servlets, sessionbeans
with no problems.

now i'm trying this from an ordinary app-client but it
caught an exception:
   "java:comp/UserTransaction not found"

what goes wrong?

thanks a lot
  klaus


 import javax.naming.*; 
 import javax.transaction.*; 
 ... 
 TransactionManager tm =
   (TransactionManager)new
InitialContext().lookup("java:comp/UserTransaction");

--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "There's got to be more to life than compile-and-go."

Reply via email to