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
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:
url="jdbc:sybase:Tds:hostname:8000/mydbname"
>connection-driver="com.sybase.jdbc2.jdbc.SybDriver"
>username="user"
>password="pwd"
>schema="database-schemas/sybase.xml"
>
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
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
Here is the code:
public class DbUtils
{
private static ConnectionPoolDataSource cpds = null;
///
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
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
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
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
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
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
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
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
> >
> >
>
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
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
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
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
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)
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
"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
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
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
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 HT
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
26 matches
Mail list logo