Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

JBoss 4.2.3 JMX-Console  RSS feed

 
Greenhorn
Posts: 20
Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JBoss 4.2.3 GA which has 3 applications (ears) deployed in it. For a new requirement, I need to develop start/stop scripts for each application.
I intend using JMX console to stop/start the ears using the MBean jboss.j2ee: EARDeployment.

Unfortunately, the behavior seen is as below. It would be great if someone can suggest what it is going on here:

Invoking stop():

HTTP Status 500 -


Is this the correct way to stop and start a service temporarily? Is the JMX console robust in v4.2.3?

Any suggestion would help.


 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's been a very long time since I last used JBoss AS 4.x version, so I don't exactly remember possible causes for this error. But it looks like perhaps you are passing an incorrect URL/name to the MBean operation. Are you sure that's the right value?
 
Jinu Vijay
Greenhorn
Posts: 20
Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran

Good to see at least some response . It really is difficult to support old versions of a software with limited online support.

I am not passing any url. The mbean suggests that the ears/wars are deployed correctly. I click the stop() method, 'expecting' it to stop the war/ear. Apparently, it doesn't like something.

Nevertheless, since the individual ears are independent and I require to stop/start them independently, I now changed the design to create separate jboss instances for each. I have done this using the service-binding.xml example to handle port conflicts. Another requirement was to have separate logs for the applications, and this design also supports that.

What are your thoughts on this design?



 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jinu Vijay wrote:

Nevertheless, since the individual ears are independent and I require to stop/start them independently, I now changed the design to create separate jboss instances for each. I have done this using the service-binding.xml example to handle port conflicts. Another requirement was to have separate logs for the applications, and this design also supports that.

What are your thoughts on this design?



That sounds fine as long as there are no other factors in play (for example, whether the server machine running this has enough memory for these multiple Java process to run). In fact, it is not so uncommon to run separate instances for unrelated applications since like you note it has its own set of advantages.
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!