RE: Migratingfrom GSP

2001-04-17 Thread Marcel Schutte

 well,

 here go my 2c's...

 - For part two i would suggest you implement a session
 listener in which
 you can code all the stuff you want to do on session init.

 - for part three the best option is a filter.

 Aniket


I'll second that. And besides that, I think you should avoid coding directly
to orion classes. So don't override anything in orion's JSPServlet.
Perhaps you should start by reading the servlet 2.3 and jsp 1.2 spec from
sun, they describe everything compliant containers should provide. The
obvious advantage being that your app will run under orion and tomcat alike
(that is, when tomcat will have implemented the same version as orion does).

Marcel




 At 03:42 AM 4/17/2001, you wrote:
 Hi all.
 I am new to the orion/JSP/EJB sort of paradigm.
 Anyways, I am attempting to migrate a substantially
 sized GSP(Gnu Server Pages)/JServ application to the Orion
 platform for
 evaluation. I have a lot of functionality in place which relies on
 hooks present in GSP which do not seem to be obviously present in
 JSP/Orion. Namely when using the JSP facilites of Orion I need hooks
 into the following:
 
 *when the servlet is loaded
 -it seems that I have to overide the init method of
  the Orion JSPServlet. HOwever, how do i indicate that
  my application should use this new subclassed servlet
  to handle JSP requests?
 
 
 *when the session is created per user
 -in GSP there is a sessionStart() hook.
 
 *when the request is recieved before it is handed
to the JSP for further processing.
  -in GSP there is a requestStart() hook
 
 I also have a fair amount of custom code doing session
 persistence among multiple servers. Is there a particular
 interface thgat I could wrap my code with so Orion would
 use this stuff to do its session handling.
 
 These are probably stupid questions but I just started looking at
 JSP/Tomcat/Orion
 a couple of days ago and I am finding the amount of
 configuration a bit
 daunting. Thanks. toph








Re: Migratingfrom GSP

2001-04-16 Thread Rian Schmidt

What the heck, as long as I'm here already...

I'd say that you want to look at setting up filters to handle the
pre-request action.  You can basically catch every request for your site in
a filter, make sure that it is appropriate, that sessions and application
are set-up right, and even do funky model 2 (request.setAttribute) stuff in
there before the actual JSP gets it.

Look at:
servlet-mapping and filter-mapping in web.xml
http://www.orionserver.com/docs/web.xml.html

That should cover both pre-JSP action and catchall servlet mapping.

The load balancing business is usually pretty implementation specific, so I
don't have much to offer there.

Rian

--
Rian Schmidt
[EMAIL PROTECTED]

- Original Message -
From: "Topher LaFata" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:12 PM
Subject: Migratingfrom GSP


 Hi all.
 I am new to the orion/JSP/EJB sort of paradigm.
 Anyways, I am attempting to migrate a substantially
 sized GSP(Gnu Server Pages)/JServ application to the Orion platform for
 evaluation. I have a lot of functionality in place which relies on
 hooks present in GSP which do not seem to be obviously present in
 JSP/Orion. Namely when using the JSP facilites of Orion I need hooks
 into the following:

 *when the servlet is loaded
-it seems that I have to overide the init method of
 the Orion JSPServlet. HOwever, how do i indicate that
 my application should use this new subclassed servlet
 to handle JSP requests?


 *when the session is created per user
-in GSP there is a sessionStart() hook.

 *when the request is recieved before it is handed
   to the JSP for further processing.
 -in GSP there is a requestStart() hook

 I also have a fair amount of custom code doing session
 persistence among multiple servers. Is there a particular
 interface thgat I could wrap my code with so Orion would
 use this stuff to do its session handling.

 These are probably stupid questions but I just started looking at
 JSP/Tomcat/Orion
 a couple of days ago and I am finding the amount of configuration a bit
 daunting. Thanks. toph