RE: Accessing objects with any servlets, where the object is alre ady pre-created

2003-10-30 Thread Dmitry Sklyut
How about Servlet Context, or Session?  Context would be the most logical
place for it.

-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 10:32 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Accessing objects with any servlets, where the object is
already pre-created



Anson,

What about loading them up with an MBean and retrieving via the
servlet?  I've done this with JBoss/Tomcat, never with standalone tomcat
though.   Or, you populating the objects when the application starts and
put the object it into the JNDI tree?  

John Moore


On Tue, 2003-10-07 at 03:42, zeallousbigpond.net.au wrote:
 Hi guys!
 
 Is it possible to create a bunch of objects, put them aside, and
 Servlets can just access them any time without recreating those objects
 or having to pass them around??
 
 say, Vector s = a very large vector of Strings that will appear in many
 servlets, but now I don't want to have to create them in each servlet, I
 want to have them pre-created somewhere, and servlets will go grab them
 when they need that Vector of Strings.
 
 Thanks!
 
 Anson
   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Tomcat Education

2003-07-28 Thread Dmitry Sklyut
Check this out.  I haven't looked at it yet, but it looks good
http://www.amazon.com/exec/obidos/tg/detail/-/0596003188/qid=1059405090/sr=8
-3/ref=sr_8_3/102-6148295-2460900?v=glances=booksn=507846

-Original Message-
From: Reginald Oake [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 11:09 AM
To: Tomcat Users List
Subject: Re: Tomcat Education


Hello Ben.

There are several (about a half dozen) books available for Struts right
now. There is an O'Reilly book called Programming Jakarta Struts and a
book by Ted Husted (acknowledged struts guru) called Struts in Action.
Both of these should be readily available at your local computer book
store.

Reg

On Mon, 2003-07-28 at 09:11, Ben Johnson wrote:
 Hello all,
   I'm new to the Tomcat world and I'm desperately trying to find some
 good resources to learn from.  I bought Professional Apache Tomcat (Wrox)
 and it's decent but it's for version 3.0 or something.  I also have a
 Servlet book from O'Reilly but it doesn't help when integrating with
Tomcat.
 I've spent an inordinate number of hours just trying to figure out how to
 pull DataSources using the admin tool and I still haven't figured it out.
 
 Anybody have any resource or book ideas?  Thanks!
 
 
 Ben Johnson
 Senior Software Developer
  
 Collect America, LTD.
 1999 Broadway, Suite 2150
 Denver, CO 80202
 [p]: 303.296.3345 x124
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Classpath Conundrum (2nd try)

2003-07-17 Thread Dmitry Sklyut
You can add setenv.bat/sh to you tomcat bin direcotry.  catalina.bat/sh will
do the following:

rem Get standard environment variables
if exist %CATALINA_HOME%\bin\setenv.bat call
%CATALINA_HOME%\bin\setenv.bat

# Get standard environment variables
PRGDIR=`dirname $PRG`
CATALINA_HOME=`cd $PRGDIR/.. ; pwd`
if [ -r $CATALINA_HOME/bin/setenv.sh ]; then
  . $CATALINA_HOME/bin/setenv.sh
fi

So this is one way of setting up the classpath.

Dmitry

-Original Message-
From: Thomas Davis [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 10:41 AM
To: [EMAIL PROTECTED]
Subject: Classpath Conundrum (2nd try)


[I apologize is this message is a dupe.  I had trouble sending messages
to this group from a hotmail account.]

I have been tasked with trying to get a legacy Java Servlet based
application running under Tomcat 4.1.24 -- The application currently
runs on JRun 2.3.3

On of the requirements imposed upon me is that I can't disturb the
existing directory structure.  I can't rename or move any directories
(or their contents).

Our third-party Java classes are in:

c:\myapp\foreign

Our application and development Java classes are in:

c:\myapp\native

The root directory of the web server is:

c:\myapp\native\web

I created the following Context in server.xml:

Context path=/tomcat docBase=c:/myapp/native/web debug=0/

Then I created the servlet deployment file:

c:\myapp\native\web\WEB-INF\web.xml

The contents of said file:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

servlet
servlet-namemyapp/servlet-name
servlet-classcom.myapp.servlet.BootStrap/servlet-class
/servlet

servlet-mapping
servlet-namemyapp/servlet-name 
url-pattern/myapp/url-pattern 
/servlet-mapping

/web-app

So now I'm all set to go, except that I'm going to (and did) get a
class not found error because there is no /classes directory under
WEB-INF and as mentioned above I can't copy the classes from
/foreign and /native there.  

I can't create a symbolic link from /classes to /native since that
would be recursive, and it wouldn't include /foreign which is also
required.

The /native and /foreign directories are in the CLASSPATH
environment variable, but as documented in Class Loader HOW-TO that
variable is ignored by the class loaders.

It would seem to me that the easiest and most straight-forward solution
is to get the class loaders to honor the CLASSPATH environment
variable.  I tried to accomplish this by hacking the start-up scripts,
but could not get it to work.

Could somebody please help me out here?  What's the best way to get the
class loader to look in /native and /foreign?  Or is there a better
solution (other than shuffling the directories around, which I can't
do).  Thanks a million!


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



NOTICE:  This communication may contain proprietary or other confidential
business information of Orcom Solutions, Inc.  If you are not the intended
recipient or believe that you may have received this communication in error,
please reply to the sender indicating that fact and delete the copy you
received.  In addition, you should not print, copy, retransmit, disseminate,
or otherwise use the information.  Thank you.  




RE: Loading Different XML Parser

2003-06-06 Thread Dmitry Sklyut
JDOM is using JAXP to locate the parser.  Use JAXP to change the parser that
you use.
Check out www.javasoft.com for more info on the JAXP.


As a side note - JDOM is not a parser, it is an api to simplify access to
the DOM model.

Dmitry

-Original Message-
From: Brendle, Douglas A. [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 9:27 AM
To: [EMAIL PROTECTED]
Subject: Loading Different XML Parser


Hi all,
 
I'm using the JDOM api for xml parsing. Trouble is,
Tomcat still tries Xerces no matter where I install
the jdom.jar file. I've put it in /shared, /common and
/webapp but no luck. Any ideas?
 
 


RE: book on EJB

2003-03-31 Thread Dmitry Sklyut
www.theserverside.com

Download Ed Roman's book

-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 6:20 PM
To: [EMAIL PROTECTED]
Subject: book on EJB


i am an intermediate lvl jsp/servlet developer and would like to learn ejb. 
i am looking for a good tutorial/reference for novice/intermediate ejb 
developers. any suggestions?

Chris

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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