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
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
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
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
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
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
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
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
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
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
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
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 (?)
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
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
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()%"
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
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
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)
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
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
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=
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
22 matches
Mail list logo