Auto-reply: RE: Calling EJB From a Servlet..

2001-09-12 Thread ORAPOST



I am out of the 
office until September 5th. Please contact Mark.Reeves:oracle.com if you 
require assistance.

Regards
Antony


BEGIN:VCARD
VERSION:2.1
N:Reynolds;Antony;J
FN:Antony J Reynolds
ORG:a href=http://www.oracle.com/index.html; target=_topimg src=http://www.oracle.com/admin/images/oraclelogo.gif; width=188 height=44 border=0 alt=/abrbA href=http://www.uk.oracle.com;Oracle Corporation UK Limited/A;A href=http://presales.uk.oracle.com;BCorporate Pre-Sales/A
TITLE:Principal Sales Consultant
NOTE;ENCODING=QUOTED-PRINTABLE:Principal Consultant in Corporate Pre-Sales for Oracle UK=0D=0Aspecialising =
in Java, CORBA and large-scale online transaction=0D=0Aprocessing systems us=
ing Oracle Server platform.=0D=0A=0D=0AInternally my time can be requested v=
ia a a href=3Dhttp://presales.uk.oracle.com/cps_tools/plsql/cpsreq$.startu=
pCPS request/a.
TEL;WORK;VOICE:+44 (0)118 924 3245
TEL;WORK;VOICE:+44 (0) 1454 631524
TEL;CELL;VOICE:+44 (0)7775 896150
TEL;WORK;FAX:+44 (0)118 924 3721
ADR;POSTAL;ENCODING=QUOTED-PRINTABLE:;;Castlegate=0D=0ATower Hill;Bristol;;BS2 OJA;UK
LABEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Castlegate=0D=0ATower Hill=0D=0ABristol BS2 OJA=0D=0AUK
URL:http://www.oracle.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20010601T130645Z
END:VCARD

 smime.p7s


Hi, The Elephant walker.
  Sure the error says domain was null, but the situation is that the
servlet is just an another stand-alone program (not part of deployed Hello
Session Bean) residing in
D:\Oracle\iSuites\j2ee\home\default-web-app\WEB-INF\classes\trg\HelloServlet
directory and from there I'm trying to access Hello Session Bean which is
deployed on the Orion.  Both client and server are on the same machine as
I'm testing this saught of workability. So I guess domain name won't be
needed and if yes could you elaborate on domain name you are talking about

Regards
Prashant

-Original Message-
From: The elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 4:28 PM
To: Orion-Interest
Subject: RE: Calling EJB From a Servlet..


First, if the servlet and ejb are in the same application, you don't need to
use properties to initialize your contextbut if you did, it looks like
you left off the domain in the properties.

Regards,

the elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Prashant
Gaikwad
Sent: Tuesday, September 11, 2001 3:27 AM
To: Orion-Interest
Subject: Calling EJB From a Servlet..


HI Friends,
I'm having a serious problem in my code and am unable to
understand. I've deployed a simple Hello bean on the orion container and
want to access it from a servlet. I have the servlet in
D:\Oracle\iSuites\j2ee\home\default-web-app\WEB-INF\classes\trg\HelloServlet
. Following is the code in servlet

 try {

trace(In Try);
Hashtable h = new Hashtable();

h.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.rmi.
RMIInitialContextFactory);
h.put(javax.naming.Context.SECURITY_PRINCIPAL,
ejb);
h.put(javax.naming.Context.SECURITY_CREDENTIALS,
ejbadmin);

h.put(javax.naming.Context.PROVIDER_URL,ormi://localhost/Hello);
trace(Before Init Contect );
Context context = new InitialContext (h);
trace(after Initial context);
Object boundObject =
context.lookup(java:comp/env/ejb/HelloHome);
 trace(At Trap);
   helloHome = (HelloHome)
javax.rmi.PortableRemoteObject.narrow(boundObject,HelloHome.class);
  }
   catch (Throwable exception) {
exception.printStackTrace();

 //System.out.println(Look up exception : +
exception.toString());
 //throw new ServletException(
 //   Unable to get home interface:  + exception.toString());
  }


 When I run servlet from browser I get an exception when the Context is
getting crerated as  folloew

D:\Oracle\iSuites\j2ee\homejava -jar orion.jar
Oracle9iAS (1.0.2.2) Containers for J2EE initialized
ConstructorBefore TryIn TryBefore Init Contect
java.lang.NullPointerException: d
omain was null
at com.evermind.server.rmi.RMIServer.addNode(RMIServer.java:428)
at
com.evermind.server.rmi.RMIServer.getConnection(RMIServer.java:497)
at
com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(RM
IInitialContextFactory.java:150)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at 

webserver proxy plugin + i/o question

2001-09-12 Thread Lucio Piccoli

hi all,
i am new to orionserver but i have read the docs and the archives relating
trying to find information relating to:
i) Webserver proxy plugins
ii) The type of i/o handling used.

A variety of appserver vendors (BEA/IBM) recommend an architecture of a high
performance webserver ( iplanet/apache ) proxying on requests to the
appserver. This has several benefits including limiting the exposure of the
appserver to the outside world. I was hoping to eval orionserver in a
similar environment. However the only mention of a webserver handling in
orion is to use the tunnelling servlet which still seems to require the
orionserver to be exposed to the outside world. Is this the case?

What is the I/O mechanism used in orionserver's request handling? I assume
that it is using java's blocking i/o, is this correct?

any help appreciated.

adios

-lp

[EMAIL PROTECTED]
Titan Court 
3 Bishops Square Business Park
Hatfield AL10 9NE
Hertfordshire England
tel : +44 01707 289 798
fax : +44 01707 289 941 
__ http://www.one2one.co.uk _




NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.






RE: webserver proxy plugin + i/o question

2001-09-12 Thread Montebove Luciano


Hi,

You can use Apache as a reverse proxy (see this article
http://www.orionsupport.com/articles/apachefrontend.html on orionsupport)

In the future AJP13 could be provided.

Hope this help

Luciano

-Original Message-
From: Lucio Piccoli [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 12 settembre 2001 11.13
To: Orion-Interest
Subject: webserver proxy plugin + i/o question


hi all,
i am new to orionserver but i have read the docs and the archives relating
trying to find information relating to:
i) Webserver proxy plugins
ii) The type of i/o handling used.

A variety of appserver vendors (BEA/IBM) recommend an architecture of a high
performance webserver ( iplanet/apache ) proxying on requests to the
appserver. This has several benefits including limiting the exposure of the
appserver to the outside world. I was hoping to eval orionserver in a
similar environment. However the only mention of a webserver handling in
orion is to use the tunnelling servlet which still seems to require the
orionserver to be exposed to the outside world. Is this the case?

What is the I/O mechanism used in orionserver's request handling? I assume
that it is using java's blocking i/o, is this correct?

any help appreciated.

adios

-lp

[EMAIL PROTECTED]
Titan Court 
3 Bishops Square Business Park
Hatfield AL10 9NE
Hertfordshire England
tel : +44 01707 289 798
fax : +44 01707 289 941 
__ http://www.one2one.co.uk _




NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.






Fw: condolences

2001-09-12 Thread Morten Wilken




- Original Message - 
From: Morten Wilken 

To: Orion-Interest 
Sent: Wednesday, September 12, 2001 8:10 AM
Subject: condolences

to all americans, all new yorkans and all who is 
directly affected by the horrorfying bombings, i offer my sincerest 
condolences

this is a sad day for the world

morten wilken


R: webserver proxy plugin + i/o question

2001-09-12 Thread Davanzo Luca

look to the site
www.orionserversupport.com
there are many useful articles and tips, including one on how to use Apache
as a proxy to orionserver ie.e. apache serves the static html, while orion
serves servlets/jsp and manages ejb invocations..


 -Messaggio originale-
 Da: Lucio Piccoli [mailto:[EMAIL PROTECTED]]
 Inviato: mercoledì 12 settembre 2001 11.13
 A: Orion-Interest
 Oggetto: webserver proxy plugin + i/o question
 
 
 hi all,
 i am new to orionserver but i have read the docs and the 
 archives relating
 trying to find information relating to:
 i) Webserver proxy plugins
 ii) The type of i/o handling used.
 
 A variety of appserver vendors (BEA/IBM) recommend an 
 architecture of a high
 performance webserver ( iplanet/apache ) proxying on requests to the
 appserver. This has several benefits including limiting the 
 exposure of the
 appserver to the outside world. I was hoping to eval orionserver in a
 similar environment. However the only mention of a webserver 
 handling in
 orion is to use the tunnelling servlet which still seems to 
 require the
 orionserver to be exposed to the outside world. Is this the case?
 
 What is the I/O mechanism used in orionserver's request 
 handling? I assume
 that it is using java's blocking i/o, is this correct?
 
 any help appreciated.
 
 adios
 
 -lp
 
 [EMAIL PROTECTED]
 Titan Court   
 3 Bishops Square Business Park
 Hatfield AL10 9NE
 Hertfordshire England
 tel : +44 01707 289 798
 fax : +44 01707 289 941 
 __ http://www.one2one.co.uk _
 
 
 
 
 NOTICE AND DISCLAIMER:
 This email (including attachments) is confidential.  If you 
 have received
 this email in error please notify the sender immediately and 
 delete this
 email from your system without copying or disseminating it or 
 placing any
 reliance upon its contents.  We cannot accept liability for 
 any breaches of
 confidence arising through use of email.  Any opinions 
 expressed in this
 email (including attachments) are those of the author and do 
 not necessarily
 reflect our opinions.  We will not accept responsibility for 
 any commitments
 made by our employees outside the scope of our business.  We 
 do not warrant
 the accuracy or completeness of such information.
 
 
 




RE: Calling EJB From a Servlet..

2001-09-12 Thread Lou Farho

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!





Re: Debugging with Orion/Kawa Pro 5.0

2001-09-12 Thread DENNIS STRAIGHT

 We had a problem where if you install Enterprise the uninstalled.
 Then installed Kawa Pro you could not run orion from inside.

This is it!!  I tried it on a computer that Kawa had never been
installed on and it worked.

Kawa is now giving me a message that it can't find server.xml so I guess
I have to tell Kawa to look in the orion\config directory or add
server.xml to the project.

Thanks alot Owen!

-Dennis



Owen Fellows wrote:
 
 I remember seeing something about orion not working in Kawa Enterprise.
 We had a problem where if you install Enterprise the uninstalled.
 Then installed Kawa Pro you could not run orion from inside.
 
 Can't remember if this was orion but there where issues with changing Kawa'a
 (if think kawa released a patch to fix it).
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of DENNIS
 STRAIGHT
 Sent: 07 September 2001 06:48
 To: Orion-Interest
 Subject: Debugging with Orion/Kawa Pro 5.0
 
 I appreciate Dave Smith's write-up on debugging with Orion/Kawa but,
 unfortunately, I think I'm missing something and need more info.
 
 Here is what I did:
 Created a new project with all of my java files (servlets, EJBs, and
 regular Java).
 Added Orion.jar to the Kawa classpath.
 Set the class to run to com.evermind.server.ApplicationServer
 Made sure JVMDI was turned off
 Added breakpoints, hit F5 and... nothing happens, I don't see orion
 starting in Kawa's output pane... I don't see anything.
 
 Next, I open a web browser set to a localhost url that works fine when I
 run Orion from DOS and, of course, the page is not found.  Because Orion
 hasn't started, I'm sure.
 
 Does anybody know what I'm doing wrong (Why Kawa isn't starting Orion)?
 Below I'll print Dave Smith's debugging tips, if anybody can tell me
 anything that is missing I would greatly appreciate it.
 
 Thanks,
 Dennis
 
 Dave Smith adds:
 
 Debugging with Orion and Kawa is a pleasure.
 
 Get Kawa Pro (not the enterprise version) from Tek-Tools and install it.
 Configure your JDK as required when you first run Kawa. (Note that Kawa
 is a
 Win32 application, which is one of the reasons I don't use it.)
 
 Create a new project for your servlets or EJBs. Add orion.jar, any
 additional jars required by the application, and the deployed class
 directory (i.e., c:\applications\myApp\myApp-web\WEB-INF\classes or
 c:\applications\myApp\myApp-ejb, or both).
 
 From the Project/Interpreter menu, set the Java class to run to
 com.evermind.server.ApplicationServer and remember to tell it to use
 this
 class (as this image, given me by Chris Miller, shows). Turn off JVMDI
 debugger from the Customize/Options/Advanced Paths form, which is for
 performance only and is not vital.
 
 Add the breakpoints to your servlets and/or EJBs. F5 starts debugging,
 and
 Dave adds to Relax, sit back and enjoy the ride. The speed kills
 NetBeans
 dead.
 
 Also from Dave: For a real screamer, use Jikes:
 
 Customize/Options/Advanced Paths/Compiler = D:\jikes\jikes.exe +E
 
 And set Orion to use jikes from $ORION/server.xml.




Help!!Subject.getSubject(AccessControlContext) returns null

2001-09-12 Thread Xiaowen Wang

Hi:
I've been trying to send the authenticated app client's Subject to
a RMI Activatable server in another JVM. In the app client, I run the follwing:

AccessControlContext ac = AccessController.getContext();
Subject sbj = Subject.getSubject(ac); 

However, sbj turns out to be null. Is it because ac is NOT the Subject
that's authenticated at the beginning of the app client run?

Thanks
XW