aspose file tools*
The moose likes Java in General and the fly likes Can you run an app server on top of Java RTS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can you run an app server on top of Java RTS?" Watch "Can you run an app server on top of Java RTS?" New topic
Author

Can you run an app server on top of Java RTS?

Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
This is a newbie question, no doubt , but since I first heard about Java RTS a couple of years ago I've wondered about running an app server using it.
Is Java RTS a subset of the full JVM? If not then why wouldn't you run JBoss, or some other app server on top of it? I know it's fast enough to use for controlling aircraft, so why not a business app?

Thanks,
Burk


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

Burk Hufnagel wrote:Is Java RTS a subset of the full JVM?


Java RTS implements not only the RTSJ but also the specification for Java Platform, Standard Edition (Java SE). So any program runs on Java SE will also run on the Java RTS, although without real-time behavior.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Vijitha Kumara wrote:Java RTS implements not only the RTSJ but also the specification for Java Platform, Standard Edition (Java SE). So any program runs on Java SE will also run on the Java RTS, although without real-time behavior.

So, in order to get real-time behavior, you have to write your app to do or not do specific things? I thought the RTS JVM handled that.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Application servers were not written with Real Time programming in mind - its not really their domain.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Paul Sturrock wrote:Application servers were not written with Real Time programming in mind - its not really their domain.

Paul,
What's the downside? Seems to me that knowing when garbage collection was going to occur, or having some control over it, would be a useful thing. No trying to be difficult, just trying to understand.
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
There are two things to remember:

1 - Although Java RTS will run any existing Java application unmodified, you must make at least some minor modifications to attain real-time behavior. Therefore, running an existing application server on top of Java RTS will yield little to no benefit.

2 - It's complicated to explain, but you will lose throughput when running on Java RTS compared to Java SE. Most applications written to work with an application server are web applications, and hence have high-throughput requirements instead of real-time requirements, so it generally doesn't apply. However, there may be exceptions so it's a valid question, just not a common one.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Eric,
Thanks for the information. I think I'm getting it. It makes sense that you must add something to take advantage of the real-time benefits of Java RTS, I just hadn't considered that aspect before.

Burk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can you run an app server on top of Java RTS?