aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 5" Watch "JBoss 5" New topic
Author

JBoss 5

Stephane Clinckart
Ranch Hand

Joined: Oct 21, 2003
Posts: 89
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

Joined: Sep 22, 2003
Posts: 191
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


WildFly 8 Administration Book - JBoss Tutorials
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3855

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?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Stephane Clinckart
Ranch Hand

Joined: Oct 21, 2003
Posts: 89
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

Joined: Jul 20, 2005
Posts: 10266
    
168

Stephane,

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

[My Blog] [JavaRanch Journal]
Stephane Clinckart
Ranch Hand

Joined: Oct 21, 2003
Posts: 89
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

Joined: May 14, 2008
Posts: 5843
    
    7

Minimal footprint on disk? 147MB You can reduce this a little by removing unwanted server configurations. But hey, disk is cheap. ;)


JBoss In Action
Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 191
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

Joined: Oct 21, 2003
Posts: 89
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: 191
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
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

Joined: May 14, 2008
Posts: 5843
    
    7

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

Joined: Oct 21, 2003
Posts: 89
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: 191
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
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: 191
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 5