• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

About Jboss

 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JBoss is a microkernel based server. What does it mean?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I am not a Latest Buzzword Certified Professional, but I think the JBoss micro kernel is just a kind of component registry where services are registered and from where one service looks up another.
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Lasse!
What does it mean - "To create service in JBOSS"? I am talking about SAR files.
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In JBoss terms, the services are the components that the application server provides that your application can take care of. Your transaction manager, database connection pools, JMS server, etc... are all examples of services. Really, EVERYTHING in JBoss is a service.
Getting back to the microkernel idea, what is interesting about the JBoss architecture is that the core of JBoss is just the code to load and manage the services. All the services are dynamically loaded and managed and can even be swapped in and out of a running system. They can be mixed and matched as needed, or even replaced entirely.
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Norman
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Norman,
If I want to host my custom service , how do I go about it?
 
norman richards
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what the service is. If it is a standalone service or one that matters only to the applications you will be hosting there, then you would normally bundle your service in a SAR file. You expose a management interface as an MBeans declared in your jboss-service.xml file. JBoss will make sure they get started up when the system comes up.
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Norman. Mine is a stand alone service.

JBoss will make sure they get started up when the system comes up.


Does it mean the lifecycle will be managed by JBoss and I need not worry about creating instances ? Do the classes need to implement some interface ?
Suppose I deploy the service and would like the service not to start up next time the server start up, is it possible to do that without actually undeploying the service. Basically the service is deployed and do not want it to start. can this be done? Can I call each MBean a service or is it a set of classes?
I also recd your Xdoclet book, started reading the book. Thanks for writing a great book.
Thanks
 
norman richards
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lifecycle of JBoss services is managed. If you extend ServiceMBeanSupport you will get the state start/stop methods that all services have. I don't know, off the top of my head, if you can deploy a service in the stopped state. You could deploy the service classes and dynamically create and start an MBean managing your service, but I can't give too much advice here. It's not something I have ever needed to do.
Thanks for the comments on the XDoclet book. I hope it helps you out. Feel free to send me comments any time about it. (it's good to get feedback) Amazon reviews are also highly appreciated...
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you know how to access a service(mbean) from code?
I need to setup a clustered environment and I want to display the name of the server instance that handled the request.
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic