RE: tomcat and JMS

2005-09-22 Thread Jason Bell
Stas,

The original link gave a 404 error, but there is this article on the OnJava 
site that may shed a little more light for you.

http://www.onjava.com/pub/a/onjava/2001/12/12/openjms.html

I hope this helps.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat and JMS

2005-09-22 Thread Jason Bell
 Hi !
 
 Thanks for your resnonce. I saw that article at ONJava.com. They use
 standalone openJMS server. I'm interested in embedded.

I was Googling around, I have to admit, as I found your posting very 
interesting.  I've downloaded OpenJMS and will try and have a play when I have 
half an hour to do so.  Not too sure when that will happen, possibly over the 
weekend.

Kind regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5.9

2005-09-21 Thread Jason Bell
Elisabeth,
Could you post a small snippet of your code, then I will try and have a look 
at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat detecting http header

2005-09-20 Thread Jason Bell
Hi, 

When developing web app code I tend to enumerate on the headers coming in.

Have a look at:
public java.util.Enumeration getHeaderNames();

So:

// get the header names

Enumeration ee = request.getHeaderNames();

// then iterate through them

for(;ee.hasMoreElements();){
  String header = (String)ee.nextElement();
  System.out.println(header +  =  + request.getHeader(header));
}

It's just good to get an overall picture of what is being  send in the 
headers.  As for why the value is null, I don't know 100% but this link may or 
may not help.

http://forum.java.sun.com/thread.jspa?threadID=507098messageID=2404807


 getHeader(REMOTE_ADDR);
 
 and getting null.

I hope this helps in your quest.

Kind regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error with Error Document defined (really need ideas)

2005-09-20 Thread Jason Bell
Your config file suggests that you expect Tomcat to load the .html files to a 
path on your server.  The specified files should be relevent to your web 
application.  

So more than likely it will look something like:
  location/NotFound.html/location

If memory serves me Tomcat, according to your xml config, would be looking for 
the error pages in
http://localhost:8080/srv/www/tomcat/base/errorpages/NotFound.html

I hope this helps you.

 ==
 2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource '/' headers and data
 2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource 
'/srv/www/tomcat/base/errorpages/NotFound.html' headers and data
 ==


--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What's better, having one large servlet or many small ones?

2005-09-06 Thread Jason Bell
Raueber

Keep in mind that one day it could be many people reading your code, so I 
would suggest you have many servlets doing specific things.  

Regardless of whether it's a servlet, jsp or Java application think of future 
prospects of your code.  Ideally you could hand it to anyone and they 
understand what is going on with the minimum of comments.

Regards
Jason Bell

 Should I have one handler with many methods or more handlers with less 
methods
 (1-2)?

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Source code for naming-factory-dbcp.jar ?

2005-09-06 Thread Jason Bell
naming-factory-dbcp.jar 

Have a look at Commons DBCP.
http://jakarta.apache.org/commons/dbcp/

Hope this helps.

Regards
Jason


--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Showing maintenance page while app is down

2005-09-02 Thread Jason Bell
Edmon

This is a personal suggestion of mine and not the definitive answer.  I create 
a seperate war file for maintenance times.  All it contains in an index html 
page and an image of the web site (brand is still important when a site is 
down).  I replace the temp war with the live one.  This means I can work on 
the live war and then redeploy it on top of the maintenance one.

Users are informed and you get the work done.  A win win situation.

There are probably other ways of doing this but this one works for me.

Hope this helps.
Jason
--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Downloading files.

2005-09-01 Thread 'Jason Bell'
Hi there,

The WEB-INF folder is not publicly accessable from the web application.  This 
is because you wouldn't want the public to be able to access your class files, 
your lib folder or any of the xml configuration files.

I hope this helps.

Kind regards
Jason Bell

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple IP addresses

2005-09-01 Thread 'Jason Bell'
Hi Brian

There is a useful Tomcat page on the Jakarta site which covers virtual 
servers/hosts,
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html

That page covers version 4.0, for version 5 it's at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html

I hope this helps.

Kind regards
Jason Bell

 Is there a way to do this with Tomcat stand alone or is Apache Web Server or
 IIS required?

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]