Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 5

 
Stephane Clinckart
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Stephane Clinckart
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara 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.

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...

Well... I will have a look on JBoss anyway.

What is the minimum footprint with JBoss?

Thanks a lot

Stephane
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephane,

If you are interested in the OSGi part of it, then you should perhaps checkout the JBossOSGi project
 
Stephane Clinckart
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:Stephane,

If you are interested in the OSGi part of it, then you should perhaps checkout the JBossOSGi project


Ohoh !!!

At the end may be it is a good product ( :-))) )

Thanks a lot, I will have a look.

What about minimal foot print ???

Any idea?

Thanks a lot
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Minimal footprint on disk? 147MB You can reduce this a little by removing unwanted server configurations. But hey, disk is cheap. ;)
 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara 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.

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
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks.

Stephane
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stephane Clinckart
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic