Hello everyone, I have some (hopefully) simple questions about
J2EE/jBoss. I've written some servlet-based apps and have had them
happily running with Apache+JServ. Since I've wanted to try out J2EE
features for a while now, I finally grabbed the time and downloaded
the bundled jboss+tomcat binary. It started up and the "/jboss"
example ran nicely, after I figured out that I have to clear the
CLASSPATH before running the startup script (I'm running on Linux,
btw).
Anyway, I now have some questions on how to migrate my apps to
jBoss. Some of these are probably obvious to J2EE users, but bear with
me - I'm a fairly experienced Java programmer, but so far my only J2EE
experience comes from books.
So...
a) How do I plug the jBoss+tomcat combo to Apache? If there some sort
of conduit available (like the one for jserv)?
b) My current apps serve HTML that is generated from XML. Some of the
content references images, which are served as direct HTML image
links. Some of the apps also modify some XML data files (so not all
of the XML is read-only).
So I would typically have something like this under a directory
that is visible to the web server:
appdir
images
xml
(maybe some config files here)
With J2EE platforms it seems you should package apps as war/ear
archives. That's fine for static content, but since not all of my
content is read-only, I need to keep at least some of it on the
file system (not inside the archive). Can I do this, in other words
does jBoss support web apps that are opened up into directories
(instead of packaged inside archives)? If yes, what would a typical
web app directory structure need to look like so that jBoss would
understand it? Does jBoss support (servlet) code reloading if the
app is "opened" and not in an archive? Can I keep parts open, and
some other parts (the servlet code for ex.) in a jar file?
c) As I said above, my apps reference and sometimes modify files on
the file system. If the app in running on jBoss, is there some
unified way for the app to infer the base directory for these
files? Currently the apps (servlets) take a parameter that gives
both the URL linking base "directory" and the actual filesystem
base path to the data. I suspect there is a more intelligent way to
get this information under J2EE/jBoss?
Apologies if some of these questions are obvious, I'm a bit confused
on where I can find up-to-date documentation on these sorts of basic
questions.
P.S. I'm very impressed with what little I've seen of jBoss so far,
building an app server is a huge undertaking. Kudos to the developers
:)
//Petri
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]