tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <>
Subject Re: How to run own java application within Tomcat
Date Wed, 04 Jun 2008 14:43:13 GMT

----- Original Message ----- 
From: "Slobodanka Dimitrijevic" <>
To: "Tomcat Users List" <>
Sent: Tuesday, June 03, 2008 10:18 PM
Subject: RE: How to run own java application within Tomcat

>Hi Johnny,

>Thanks for the answer but I think I didn't explain my problem correctly.

>I need the following situation:
>1. a java application has to run continiously outside tomcat (when tomcat 
>crashes the application must be still running). This application runs in 
>its own virtual >machine (VM1).

    when tomcat crashes... you have no faith ha ha... its tomcat, nothing 
fishy about it ;)

>2. I have also Axis2 webservices that have to have access to the objects in 
>VM1. These webservices run inside Tomcat. However Tomcat runs in its own 
>virtual >machine (VM2). So I have a problem.

    Yes you do ;)

>How to be able to run the java appplication (outside tomcat), and the Axis2 
>webservices (inside tomcat), in the same virtual machine

As soon as you have applicatios in different VMs, you into interprocess 
communications, RMI or the like.
Even if that is not true, and its TC and an external app in the same VM, you 
have "ring fenced" class loader problems.
TC keeps itself away from the rest of the machine, which is actually a good 
thing, else we'd all go insane.

Using traditional Java technology its going to be something like RMI, or 
another cross process technique like sockets (your own rmi).
So soap call comes into TC, TC chats to external application thru a socket, 
(or like the other poster suggested) an embedded TC app that also has soap 
(a lot of work I think).

So thats what you got to do...

The POJO Application Server approach to this you may find interesting, but 
its probably not want you want

TC(Application inside TC) ----------- Application used from Network or 
Internet (looks like the original app to the user)
--------------------------------------- TC(Soap Application Using 
Application inside another TC, or the same TC)

Thats how it would be done in a PAS.... but its inside TC and well, you 
think TC is going to "crash"... we used to be friends ;)
Have fun.... 

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message