What's the difference between standalone and domain on JEE6?
Asked Answered
W

3

49

I'm starting an JBoss to use on the development, and I'm using it as standalone. I read that on the production environment the JBoss should be as a domain.

I searched for that to understand what's the difference between than. But I didn't found any document well explained.

Wooton answered 30/10, 2012 at 16:50 Comment(0)
W
63

That's not really correct. Standalone is fine for production. It's commonly used in production, especially when you only need one instance of the server.

Domain is used when you run several instances of JBoss AS and you want a single point where you can control configuration from. You can read more about it in the documentation.

Update

The link has been changed to the latest version of WildFly as the JBoss AS 7 documentation has been archived, but is still available at https://docs.jboss.org/author/display/AS71/Admin%20Guide.html#8094211_AdminGuide-StandaloneServer

Weakly answered 30/10, 2012 at 18:0 Comment(2)
Thanks for that. Just checking. If I want an clustered EJB, I need to use it as a domain. Right?Wooton
Nope, you can run that from standalone as well. Just use the standalone-ha.xml docs.jboss.org/author/display/AS71/Clustered+EJBs. It might be more typical in a domain environment though. This is definitely not my area of expertise.Weakly
S
19

Standalone mode

  • each JBoss server has its own configuration
  • single JVM process

Domain mode

  • central control of multiple servers
  • central configuration for multiple servers
Siusan answered 22/9, 2013 at 17:6 Comment(1)
does that mean multiple JVMs can be setup in Domain mode and only one can be setup in standalone mode?Troche
A
17

It's important to understand that the choice between a managed domain and standalone servers is all about how your servers are managed, not what capabilities they have to service end user requests. This distinction is particularly important when it comes to high availability clusters.

So, given all that:

  • A single server installation gains nothing from running in a managed domain, so running a standalone server is a better choice.
  • For multi-server production environments, the choice of running a managed domain versus standalone servers comes down to whether the user wants to use the centralized management capabilities a managed domain provides.
  • Running a standalone server is better suited for most development scenarios. Any individual server configuration that can be achieved in a managed domain can also be achieved in a standalone server, so even if the application being developed will eventually run in production on a managed domain installation, much (probably most) development can be done using a standalone server.

For the Above explanation and more follow this link

Amil answered 22/1, 2015 at 11:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.