Re: question about object pool

2001-09-28 Thread Boris Erukhimov
Looks like what you really need is to make these methods static and not bother with object instance at all. Jirka Vorac wrote: > > Hi, > > this question is not about Orion. I hope you'll answer it. > > I don't know when to use object pool. > > Following scenario is what I need, but I'll be ha

Re: Test Post to Servlet Doesn't Work.

2001-07-05 Thread Boris Erukhimov
ve Orion configured properly or my application > deployed properly because all the code examples I see all have the same structure > and others seem to be able to make them work. > > Thank you for taking the time to look at my problem. > > Milton S. > > Boris Erukhimov wrote:

Re: Data source for Sybase with Jconnect 5.2

2001-07-05 Thread Boris Erukhimov
url="jdbc:sybase:Tds:hostname:8000/mydbname" >connection-driver="com.sybase.jdbc2.jdbc.SybDriver" >username="user" >password="pwd" >schema="database-schemas/sybase.xml" >

Re: Test Post to Servlet Doesn't Work.

2001-07-05 Thread Boris Erukhimov
It looks like you are not properly supplying arguments for "POST" method The right order based on Jason Hunter book example is below: To use it in your case just put your xml string into Properties object as a value against "cmd" as a name public static final InputStream sendPostMessage(Properti

Data source for Sybase with Jconnect 5.2

2001-07-04 Thread Boris Erukhimov
I'm trying to ask it second time. Does anyone use Jconnect 5.2 ? If so could you please share your data-source.xml and access code. I'm particularly interested to see how "pooled-location" works, not "ejb-location". Thanks ~boris

How to get Connection Pool working ?

2001-07-02 Thread Boris Erukhimov
Here is a second post, the first one never appeared I'm trying to use Pooled Connection for web application. The application does not use EJB. Here is my a part of data-source.xml Here is the code: public class DbUtils { private static ConnectionPoolDataSource cpds = null; ///

Re: Virtual Hosts - Newbie question

2001-06-08 Thread Boris Erukhimov
You need to set up your own little DNS. I assume you're on NT otherwise as a UNIX user you'd sure knew how to do it. If so 1. Open a file \WINNT\system32\drivers\etc\Hosts 2. Below the line 127.0.0.1 localhost Add a line 127.0.0.1 www.example1.com 3. Reboot Th

HTTP server timetable-like exception

2001-05-07 Thread Boris Erukhimov
Here is a piece of my server.log below. The setup simulates development/production environment on the same box. There are three virtual hosts representing three would be production sites on port 80, each one runs it's own "default" application. There is also default web site on port 8080 that h

Re: IIS, Orion, virtual host

2001-04-25 Thread Boris Erukhimov
See http://www.orionsupport.com/articles/vhosts.html olivier wrote: > > I wanted to create virtual host to avoid having to type : in the > browser. > I know it works if I use different ports. I was using loopback (127.0.0.1:80 > and 127.0.0.1:8080). But I would like to avoid that. > In IIS, you

Running Orion on multiple ports

2001-04-01 Thread Boris Erukhimov
Hello, I've tested Orion running default web site on port 8080 and some virtual host (another web site) on port 80 simultaneously. Works perfectly. I hope it's a legitimate feature, not a side effect. Does anybody know how it's handled internally ? Is it another instance of Orion main class or J

Off topic : Conversion HTML to a plain text

2001-03-21 Thread Boris Erukhimov
Hello everybody, My aplication produces HTML e-mail attachment, but because of some e-mail client hassle I need to duplicate the content as a plain text placed in the message body. To do this I need some quick and dirty solution to present HTML file (which is built already) as a plain text simu

Re: Capturing the output of a JSP page as HTML

2001-03-02 Thread Boris Erukhimov
We had a similar task that Andy described and solved it in almost exactly a way Geoff suggested. But if I were to approach it now, I'd rather use filter and owerwrite response object. That saves extra HTTP connection within request processing and looks more elegant anyway. ~boris Geoff Marshal

Is xerces.jar too old ?

2001-02-19 Thread Boris Erukhimov
Our application uses XML data exchange wrapped into HTTP. It is handled by a servlet running under Orion and doing its own XML parsing and generating. We are using pretty convenient XML API (Jdom ) from http://www.jdom.org which I highly recommend. The jdom.jar bundle comes with the latest (?) xe

Re: Client site HttpSession simulating

2001-02-06 Thread Boris Erukhimov
D=" > > NOTE THE SEMICOLON > > JP > > > -Original Message- > > From: Boris Erukhimov [mailto:[EMAIL PROTECTED]] > > Sent: Lunes, 05 de Febrero de 2001 10:45 > > To: Orion-Interest > > Subject: Client site HttpSession simulating > > > > >

Client site HttpSession simulating

2001-02-05 Thread Boris Erukhimov
I have a site which stores user profile in HttpSession after user gets in supplying user id and password. I need to provide some client site batch operation on the site using standalone java client. I remember old servlet spec which allowed you to embed session ID into URL if there is no way to us

Re: How to specify cache time out period for images !!!!

2001-02-02 Thread Boris Erukhimov
I could not manage to prevent caching of dynamically generated images playnig with response headers. A simple hack is to add some dummy request parameter to the image URL, assuming it won't break your servlet : The image URL gets cached and is used from cache among responses as long as cache co

Re: Downloading a file via a Servlet

2001-01-29 Thread Boris Erukhimov
You may try this for download any type of file //Ns and MSIE need different content type to force download if(-1 < _request.getHeader("User-Agent").indexOf("MSIE") ) response.setContentType("message/external-body; access-type=anon-ftp") ; else r

Re: problem invalidating servlet

2001-01-24 Thread Boris Erukhimov
att > > Conrad Chan wrote: > > > I think he was trying to invalidate the existing session before setting the >attribute. > > > > Conrad > > > > -Original Message- > > From: Boris Erukhimov [mailto:[EMAIL PROTECTED]] > > Sent: Wednes

Orion web site error

2001-01-24 Thread Boris Erukhimov
That's what I got after clicking on FAQ at www.orionserver.com 500 Internal Server Error com.evermind.server.rmi.OrionRemoteException: Database error: The database is already in use by another process at KeywordHome_EntityHomeWrapper73.findAll(KeywordHome_EntityHomeWrapper73.java:642)

Re: problem invalidating servlet

2001-01-24 Thread Boris Erukhimov
Try this ... if (event instanceof LogoutEvent) { HttpSession validSession = request.getSession(true); validSession.setAttribute(WebKeys.ModelManagerKey, mm); } ~boris Matt Bauer wrote: > I have this small bit of code that handles a log out. What I want to do > is invalidate the sess

Re: Client hits STOP button..is there a way to detect this before sending a response?

2000-11-15 Thread Boris Erukhimov
"Duffey, Kevin" wrote: > > So here is the problem. If a user submits a form (say..to search for all > clients) and lets say that search will take two minutes. 10 seconds later, > the client sees he/she made a mistake on what they were searching for. As if > often the case..they hit STOP on the

External DTD's

2000-11-14 Thread Boris Erukhimov
I'm developing an XML-based interapplication communication facility. It is intended to work accross public Internet, so where to place DTD becomes an issue. Being newbe to XML I'm curious where orion keeps it's external DTD files which are referred by all .xml files in config and other directorie

Re: Servlet class folder

2000-10-27 Thread Boris Erukhimov
It's java, not Orion you have trouble with ... Make your "Test" servlet class belong to package "pack" named after your folder name. Refer to the servlet class as pack.Test in URL or in web.xml to set a servlet mapping: AliasForTestClass /pack.Test ~boris Yi Su wr

Re: Orion as NT4 Service

2000-10-26 Thread Boris Erukhimov
Kevin, Were you able to get a gracefull shutdown if Orion is run as service installed by JNT ? If so could you please specify JNT command line to install the service ? I'm interested in part following –Dshutdown.method= ? jnt "/InstallAsService:OrionWebServer" "/SDd:\Orion" -Dshutdown.method=

Redirecting JSP output to a file

2000-10-04 Thread Boris Erukhimov
I need to have HTML output from JSP page stored in a file. There are 2 different requests requiring output from the the same JSP page. First is regular one RequestDispatcher rd = req.getRequestDispatcher("foo.jsp"); rd.forward(req, res); The second one has to forward "foo.jsp", I mean HT

servleet setup

1999-10-24 Thread Boris Erukhimov
A couple of fresh user's questions. I was able to address my packaged servlet placing it into "servlet" directory under default site. The URL is "http://localhost:8000/servlet/MayPackage.MyClass". Questions : 1. Where can I specify init parameters for my servlet ? 2. Is there a way to alias cal