Re: How to keep the application running on the server

2001-08-21 Thread Matthew Jensen

This is a realy old post I found on the archives:
> On Sun, Aug 27, 2000 at 02:05:07PM -0400, Andrew Majercik wrote:
> > Applications "tie" themselves to the console window in a parent/child
> > relationship. (once the parent goes away, so do all the children!) What you 
>
> Actually, they are tied to the process which spawned them (typically
> the shell). It' a subtle difference.
>
> > need to do is detach the process from the terminal.  One way of doing this 
> > is to run it as a daemon (if there are other ways, I do not know them ), 
> > which essentially forks a process(which copies the process), and exits that 
> > process, leaving a detached child process(your java app, in this
> > case).   It 
>
> This can be done with a simple shell script.

Ive done this, but I want the user that ran the shell script to get a message
if the application dosnt load properly.  By that I mean the java app reads its
config files, if that fails, then the shell script should display 'fail' or
something..

The problem is getting the Java app to display something, and the shell script
to know that its failed, and how long to wait etc.

Ultimately i would like to rid my self of the shell script, and do something
to detach the JVM process from the shell process if it loads successfully.  But
as Chris said in the original email this would definately not be platform
friendly.

This was an old post, is there another or better way to do it now?

-- 
[EMAIL PROTECTED] Do not meddle in the affairs of dragons, because you are
crunchy and taste good with ketchup.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Novice user requesting help with JIT and RedHat Sparc Linux 6.1

2001-09-03 Thread Matthew Jensen

> I run RedHat Linux 6.1 on an Ultra 5 sparc, bog standard installation 
> - GNOME rather than KDE.  Yesterday I installed 
> jdk-1.2.2-RC4-linux-sparc-glibc-2.1.2.sh and as far as I can see from 
> the README's JIT is turned on by default.  Yet what I get is:
> 
>   Warning: JIT compiler "sunwjit" not found. Will use interpreter.
> 
> I'm obviously doing something stupid but after spending all morning 
> searching the web for an answer I'm getting nowhere fast.  Please 
> would somebody help me out.

>From memory there was a problem with permissions on libsunwjit.so that came
with 1.2.2, find it and make sure its permissions allow you to read it.

Its in jre/lib/i386 on my copy.  Chmod it.

# chmod 755 libsunwjit.so

Hope this helps.

-- 
[EMAIL PROTECTED] Do not meddle in the affairs of dragons, because you are
crunchy and taste good with ketchup.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: just new to linux

2001-09-03 Thread Matthew Jensen

> i have just bought a pentium ii 300 mhz machine with win95 on it.
> i am a java programmer. but all the time i have worked on windows and intel, 
> sometimes ported code from windows to linux and unix.
> but its the first time i'm going to install linux on my own.
> first thing is i need to run a application server for hosting my own website 
> using java server pages and servlets and jdbc.
> i have some plans for the architecture but i'm thinking on the Operating 
> system. the site i currently host is javareference.com is html based. i will 
> be porting it to a dynamic site.
> suggestions needed on linux, java versions, stability, appserver etc.
> thanks all in advance,

Depends realy on cost, there are some free servers that will let you run
servlets etc (Tomcat, Orion, JBOSS).  Do you need J2ee development environment?

If all you need is jsp, servlets, and some database thing, I would look at
Tomcat (http://jakarta.apache.org/tomcat/index.html), with a some JDO
implementation (JDBC is so 1990's:).  JDO makes your life very esay by 
hiding the jdbc stuff, you to queries an object level.  Most of them do all
sorts of funky shit as well like caching.

For a JDO implementation, i believe JBOSS comes with one, but ive never used
it.  I have used and would recomend Castor (castor.exolab.org).

-- 
[EMAIL PROTECTED] Do not meddle in the affairs of dragons, because you are
crunchy and taste good with ketchup.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: FTP

2001-09-19 Thread Matthew Jensen

On Wed, Sep 19, 2001 at 06:33:27PM +0200, Raphael Mack wrote:
> Hello,
> 
> we want to access a ftp server via java. Does anyone know a simple 
> possibility?

There are heaps of FTP classes out there, i would suggest to do a
search on jars.com, or .. i think there are others just cant think
of them off the top of my head.

I havnt actually used one my self, but I've used ant quite a bit, and
that recommends to use this netcomponents pacakage.  Found at
http://www.savarese.org/oro/downloads/index.html#NetComponents.

Good luck.

> Thanks,
> Rapha
> 
> -- 
> procreo - Webseitenentwicklung und Individualsoftwarelösungen
>  _
> / __  /  _/ __  / ___/  _/ / __  /  procreo GbR
>/ /_/ / / / /_/ / /__/ / /  O__/ /_/ /   Kochgasse 1
>   / /_/ /_//_/ /_/_/73630 Remshalden
>  / /[EMAIL PROTECTED]
> /_/  http://www.procreo.de
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
[EMAIL PROTECTED] Do not meddle in the affairs of dragons, because you are
crunchy and taste good with ketchup.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]