• 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

Automatically start local application after JBoss started

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Do anyone know how to configure JBoss, so that once it's started after deploying, it will automatically startup my local application system?
Hope to get help soon.....Demanded for work.....:-)
Thank you!!!
Michelle
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you wrapper your service (not sure what you mean by "application") in an mbean? When the server is started, it will load the management objects which could interface with and start your service.
 
Michelle Lim
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi norman,
Right now, I have created a 1)Startup.java and 2)StartupMBean, to be used to initialize startup to my own-programmed system. Right now I have an error occured :
ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@d677f9c5 { url=file:/C:/jboss-3.0.3/server/default/deploy/startup-service.xml }
deployer: org.jboss.deployment.SARDeployer@aaa1e
status: Deployment FAILED reason: user:service=Startup is not registered.; - nested throwable: (javax.management.InstanceNotF
oundException: user:service=Startup is not registered.)
state: FAILED
watch: file:/C:/jboss-3.0.3/server/default/deploy/startup-service.xml
lastDeployed: 1081925107919
lastModified: 1081925107909
mbeans:
user:service=Startup (state not available)
]MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
[ObjectName: user:service=Startup
state: NOTYETINSTALLED
I Depend On:
Depends On Me: ]

This is the details for file I created, startup-service.xml :
<server>
<classpath codebase="lib" archives="mpistartup-plugin.jar"/>

<mbean code="com.oneempower.mpi10.MPIStartup" name="user:service=Startup">
</mbean>
</server>
Is there some configuration in JBoss that I missed, which to to 'acknowledge' this newly-added MBean?
Thank you. Hope to hear from u soon.
Michelle
 
Michelle Lim
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry...some mistakes in the start-service.xml,
the corrected one is as follows,
<server>
<classpath codebase="lib" archives="startup-plugin.jar"/>
<mbean code="com.oneempower.mpi10.Startup" name="user:service=Startup">
</mbean>
</server>
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
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