Is JBoss based on the OSGI framework?
If yes, is it possible to configure easilly what service is "activated" on startup?
Any references ?
Thanks a lot.
Stephane
Francesco Marchioni
author
Ranch Hand
Joined: Sep 22, 2003
Posts: 174
posted
0
Stephane Clinckart wrote:Hi,
Is JBoss based on the OSGI framework?
If yes, is it possible to configure easilly what service is "activated" on startup?
Any references ?
Thanks a lot.
Stephane
Hi
JBoss 5 doesn't use a specific OSGi implementation, but the OSGi interfaces have been mapped to the new microcontainer (MC): the MC is a superset of what OSGi specifies.
Turning on/off services is just a matter of removing libraries/configuration files from the deploy folder. This is covered in the book I'm promoting.
Hope it gelps,
Francesco
Francesco Marchioni wrote:Turning on/off services is just a matter of removing libraries/configuration files from the deploy folder. This is covered in the book I'm promoting.
In case of configuration files is it a matter of commenting out a line for a service? So then it handles all the dependencies (if any) automatically?
Francesco Marchioni wrote:Turning on/off services is just a matter of removing libraries/configuration files from the deploy folder. This is covered in the book I'm promoting.
In case of configuration files is it a matter of commenting out a line for a service? So then it handles all the dependencies (if any) automatically?
Thanks for the info.
I will never understand why application want always to have them own "standard"...
OSGI looks to be a standard for severals years now...
Francesco Marchioni wrote:Turning on/off services is just a matter of removing libraries/configuration files from the deploy folder. This is covered in the book I'm promoting.
In case of configuration files is it a matter of commenting out a line for a service? So then it handles all the dependencies (if any) automatically?
In JBoss AS 5 services are much better organized. For example messaging and clustering have their own folder in the deploy directory. Most of the time you'd need just to remove the folder (or the single .xml file) + jar files
regards
Francesco
Stephane Clinckart
Ranch Hand
Joined: Oct 21, 2003
Posts: 89
posted
0
Peter Johnson wrote:Minimal footprint on disk? 147MB You can reduce this a little by removing unwanted server configurations. But hey, disk is cheap. ;)
Hum... I was speaking about memory foot print... sorry.
Thanks
Stephane
Francesco Marchioni
author
Ranch Hand
Joined: Sep 22, 2003
Posts: 174
posted
0
Stephane Clinckart wrote:
Peter Johnson wrote:Minimal footprint on disk? 147MB You can reduce this a little by removing unwanted server configurations. But hey, disk is cheap. ;)
Hum... I was speaking about memory foot print... sorry.
Thanks
Stephane
JBoss 5.1.0 JDK 1.6 requires at startup ~ 250MB with a default configuration
with the "web"configuration ~ 130 MB
regards
Francesco
Stephane Clinckart
Ranch Hand
Joined: Oct 21, 2003
Posts: 89
posted
0
Francesco Marchioni wrote:
Stephane Clinckart wrote:
Peter Johnson wrote:Minimal footprint on disk? 147MB You can reduce this a little by removing unwanted server configurations. But hey, disk is cheap. ;)
Hum... I was speaking about memory foot print... sorry.
Thanks
Stephane
JBoss 5.1.0 JDK 1.6 requires at startup ~ 250MB with a default configuration
with the "web"configuration ~ 130 MB
regards
Francesco
Is it possible to configur JBoss 5 to make "leasy Loading" of somes services?
--> With some "timeout" to unload later when not used anymore?
Is it possible to configur JBoss 5 to make "leasy Loading" of somes services?
--> With some "timeout" to unload later when not used anymore?
Not that I know of (though I have seen rumors and discussions of a lazy loading capability for AS 6)
And regarding memory utilization, any Java EE application server that is serving a decent-sized community (thousands of users) will consume around 1GB to 1.5GB of memory. That is sort of the nature of the beast.
This message was edited 1 time. Last update was at by Peter Johnson
Stephane Clinckart
Ranch Hand
Joined: Oct 21, 2003
Posts: 89
posted
0
Peter Johnson wrote:
Is it possible to configur JBoss 5 to make "leasy Loading" of somes services?
--> With some "timeout" to unload later when not used anymore?
Not that I know of (though I have seen rumors and discussions of a lazy loading capability for AS 6)
And regarding memory utilization, any Java EE application server that is serving a decent-sized community (thousands of users) will consume around 1GB to 1.5GB of memory. That is sort of the nature of the beast.
Thanks for the info.
For 1000 and more users... it is normal that it use more memory. But this memory is more binded to the session of the users than to the server usage himself ;-)
Kind regards,
Stephane
Francesco Marchioni
author
Ranch Hand
Joined: Sep 22, 2003
Posts: 174
posted
0
Stephane Clinckart wrote:
Peter Johnson wrote:
Is it possible to configur JBoss 5 to make "leasy Loading" of somes services?
--> With some "timeout" to unload later when not used anymore?
Not that I know of (though I have seen rumors and discussions of a lazy loading capability for AS 6)
And regarding memory utilization, any Java EE application server that is serving a decent-sized community (thousands of users) will consume around 1GB to 1.5GB of memory. That is sort of the nature of the beast.
Thanks for the info.
For 1000 and more users... it is normal that it use more memory. But this memory is more binded to the session of the users than to the server usage himself ;-)
Kind regards,
Stephane
Some services are actually embeddable so that you can start them programmatically. HornetQ for example (the next generation of JMS message providers, coming with JBoss 6) works this way......
Francesco
Anil Vupputuri
Ranch Hand
Joined: Oct 31, 2000
Posts: 527
posted
0
Francesco Marchioni wrote:Turning on/off services is just a matter of removing libraries/configuration files from the deploy folder. This is covered in the book I'm promoting.
Hope it gelps,
Francesco
Isn't that easy, can we add/remove components while the server is running? (I think that is the primary objective of OSGi)
SCJP 1.5, SCEA, ICED (287,484,486)
Francesco Marchioni
author
Ranch Hand
Joined: Sep 22, 2003
Posts: 174
posted
0
Anil Vupputuri wrote:
Francesco Marchioni wrote:Turning on/off services is just a matter of removing libraries/configuration files from the deploy folder. This is covered in the book I'm promoting.
Hope it gelps,
Francesco
Isn't that easy, can we add/remove components while the server is running? (I think that is the primary objective of OSGi)
Yes, you can add/remove services while the server is running (Actually I have tried this with just a few services like JMS and Timer, however, unless they raise dependencies issues, it should be ok with other services too).