• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss 5

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic