Markus,

Thank you so much!  Your answer combined with some of the stuff I've tried
ended up being the whole solution.

Here's the solution for those of you who may be having the same problems:

- You have to run orion in secure mode.
- You have to have a policy file to be able to run in secure mode (see my
original email for the contents of my policy file).
- Then you can read system properties from an EJB.

But as Markus said, you can't write properties from your EJB code, so you
have to have a properties file to set those.

Here's the whole commandline syntax:

java -Djava.security.policy=orion.policy -jar orion.jar -secure -p
orion.properties

I can't believe how much time this took to figure out.  May I bitch about
the poor documentation now? and the lack of available support/timely
response from Orion?

:)
Sarah


-----Original Message-----
From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 8:40 AM
To: Orion-Interest
Cc: Farrell, Sarah
Subject: Re: Writing System Properties - java.protocol.handler.pkgs


On Tue, May 29, 2001 at 08:10:51PM -0600, Farrell, Sarah wrote:
> I'm having a serious problem that will keep us from shipping our
application
> on Orion if I can't figure it out.
> 
> I need to be able to set the system property "java.protocol.handler.pkgs"
in
> an EJB to "com.sun.net.ssl.internal.www.protocol".  The EJB is
> C:\orion\applications\SystemAccess\SystemEJB.java

You shouldn't be setting the property that way. Remove your property
modifying code from your EJB, and try this instead:

Create a file named "orion.properties" in your Orion directory, and put
the following inside it:

java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

Then launch Orion using "java -jar orion.jar -p orion.properties".

Markus

-- 

Markus Holmberg         |       Give me Unix or give me a typewriter.
[EMAIL PROTECTED]      |       http://www.freebsd.org/

Reply via email to