Hasan,

All j2ee xml configuration files have a partner orion-xxx.xml file which
gives orion specific deployment information. Many times, we don't need to
use these files, but orion nearly always creates them in the deployment
directory when the application is deployed.

You can see these files just by looking into the deployment directory. Must
developers just copy these files if we need to make some special
instructions.

The deployment gui's also generate these files, although I have less
experience with this method.

The "what" and "how" of these files are explained in the documentation by
clicking on the relavent file name.

There are only a few times that these files will ever have to be touched:

1. virtual hosts
2. role/group mapping and security
3. ssl configuration
4. path mapping
5. server tuning
6. clustering/load balancing

If you are just beginning, I would stick to the j2ee specific stuff. Follow
the examples that are given in the applications or demo directories, and
this will give you a good start.

jsp's can be demo'ed by dropping a jsp in the default-web-app directory. A
servlet can be used by just putting the servlet class in the
default-web-app/WEB-INF/class directory of the default application, and
pointing to the servlet with localhost/servlet/servletname.

ejb's take a little more work, but are almost as easy to demo (see the
atm.ear example).

Go to the www.jollem.com site, and do the tutorials...over and over again
until you understand what's going on. I found these very useful for ejbs.

regards,

the elephantwalker

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Hasan
Sent: Friday, June 01, 2001 7:01 PM
To: Orion-Interest
Subject: RE: how to run jsps and servlet on orion?


can i make sth like http://www.myownsite.com/ using orion? how?
in the orion-web.xml file below i found the persistence-path refers to
state.ser. how create that file. and what is the use of that file (I am
still new :)).
and based on ur explanation, the servlet-webdir directory can be mapped to
other than /servlet/, such as /myownserlvet/ ?
so i can call http://localhost/myownservlet/myservlet1 ?

thanks


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker
Sent: Saturday, June 02, 2001 12:39 AM
To: Orion-Interest
Subject: RE: how to run jsps and servlet on orion?


Chris,

You can define the url in two ways:

1. j2ee standard, use the web.xml to define the url mapping to the servlet.
Many examples of this around, you should already know this way.
2. orion specific ... notice the orion-web.xml file in the deployment
directory. it should have something like:

        <orion-web-app
        deployment-version="1.5.1"
        persistence-path="./persistence/state.ser"
        jsp-cache-directory="./persistence"
        temporary-directory="./temp"
        servlet-webdir="/servlet/">

You can replace the /servlet/ with anything you want, but you should be able
to navigate to your servlet
/mysite.com/appboundtodefaultsite/servlet/servletname.

Regards,

the elephantwalker



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, June 01, 2001 10:07 AM
To: Orion-Interest
Subject: RE: how to run jsps and servlet on orion?


Is that URL for accessing servlet only applies to default web app? If I
define my own application, what is the URL for accessing servlet?

Chris

-----Original Message-----
From: Jeff Hubbach [mailto:[EMAIL PROTECTED]]
Sent: June 1, 2001 9:12 AM
To: Orion-Interest
Subject: Re: how to run jsps and servlet on orion?


If you put all of your classes in the META_INF/classes directory at the root
of your application directory, then you can access your servlets (that are
in the META_INF/classes directory, as well as any other folders necessary to
satisfy the package name) by going to
http://yourhost/servlet/fullyqualifiedservletname. eg.
www.foo.com/servlet/com.mypackage.MyServlet

EJBs are a little more tricky, so I suggest you read through some of the
documentation on www.orionsupport.com, try to do some of the walk-throughs,
and if you have any questions/problems, then bring them to the list.

Jeff.

Hasan wrote:

> i built the app using jbuilder and inprise. i was confused about where to
> put my jsps, beans, servlets, and ejbs when trying to run it on orion.
>
> i have got the answer for running the jsps. i have to copy the tools.jar
> into the orion directory and to put the jsps in the my application
> directory.
>
> but, i still dont know how to run the servlets, and where to put the
> servlets, beans, and ejbs.
>
> btw, where can i find the guidance for all the attributes used in the xml
> files used by orion, like security, welcome- file, servlet mapping, etc?
>
> thanks
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Hubbach
> Sent: Thursday, May 31, 2001 11:08 AM
> To: Orion-Interest
> Subject: Re: how to run jsps and servlet on orion?
>
> Can you give a little more info? This is very vague...
>
> Jeff.
>
> On Thu, 31 May 2001 08:52:53 +0700
> "Hasan" <[EMAIL PROTECTED]> wrote:
>
> >i have created a simple web app (only using jsps). but orion didnt want
> to
> >run them.
> >
> >any advice to solve it?
> >

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com










Reply via email to