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 hapy to

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(Properties

Re: Data source for Sybase with Jconnect 5.2

2001-07-05 Thread Boris Erukhimov
password=pwd schema=database-schemas/sybase.xml max-connections=4 inactivity-timeout=3600 /data-source --- Boris Erukhimov [EMAIL PROTECTED] wrote: I'm trying to ask it second time. Does anyone use Jconnect 5.2 ? If so could

Re: Test Post to Servlet Doesn't Work.

2001-07-05 Thread Boris Erukhimov
work. Thank you for taking the time to look at my problem. Milton S. Boris Erukhimov wrote: 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

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 data-source class=com.evermind.sql.DriverManagerDataSource name=Expanets

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

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

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 IP:port 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

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

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 (?)

Re: Client site HttpSession simulating

2001-02-06 Thread Boris Erukhimov
E 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 I have a site which stores user profile in HttpSession after user gets in supplying user

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

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 : img src= "/YourServletImageGenerator?DUMMY=%=JspBean.getCacheControlValue()%"

Re: Downloading a file via a Servlet

2001-01-29 Thread Boris Erukhimov
You may try this for download any type of file code //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

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

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
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: Wednesday, January 24, 2001 4:05 AM To: Orion-Interest Subject: Re: problem invalidating servlet

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: servlet-mapping servlet-nameAliasForTestClass/servlet-name

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