Stop/Start service of Ear application from Jboss AS using JMX Mbean API.

Hi Frendz,
Please help me on this issue :)
I would like to stop/start my ear applcation from JMX Client which is deployed on jboss server 4.2.0.
Code:
ObjectName name = new ObjectName("jboss.j2ee:service=EARDeployment,url='rr-jms-ejb3.ear' ");
MBeanServerConnection connection = (MBeanServerConnection) ctx.lookup(invoker);
connection.invoke(name, "stop", null, null);
I can see the status(stared/stopped) on JMX Console based on my operation(stop/start).
But my application is always running irrespective of operation i have provided to invoke method.
My ear has both web and ejb modules and i would like to stop both modules services.
Any idea? ...please help me on this.
Cheers,
Cap

wow, you waited all of half an hour before becoming inpatient when noone dropped what they were doing to come at your beg and call?

Similar Messages

  • I have purchase some applications from app store using my VISA DEBIT card.

    Hi Sir,
    I have purchase some applications from app store using my VISA DEBIT card. Apps downloaded successfully. After download when I want change my payment method again to none, it says “enter a new VISA CARD to clear outstanding. I am entering my VISA DEBIT card no. but it says again to enter new card no.
    When I check my Debit card statement there no payment made to apple, but apps downloaded on my iphone.
    And when open itunes and want download more apps it say to enter CARD no.
    Please help me.
    Gursharan Singh

    Contact iTunes Customer Service and request assistance...
    Apple  Support  iTunes Store  Contact Us

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • How do I start and suspend Java Application from say C++ program

    I want to start a Java application via C++ and on some condition i want to suspend the same program not terminate , but suspend

    Have you tried running the virtual machine from your C++ application ? You can start Java applications from your C++ application using JNI after starting the Virtual machine from within your C++ application. According to the Java documentation you can even now stop the virtual machine from within your C++ program.
    I haven't looked at the 'suspend' detail but I suppose it will not be a problem to call a method via JNI to set a flag to suspend a thread etc.
    There is a tutorial: 'Invoking the Java Virtual Machine' at the following URL: http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html.
    This example seems to work only for version1.1 of the JDK. For JDK1.3, version 1.2, (I am not so sure whether I fully understand Sun's version numbers for Java yet) there is some updates on the JNI for starting the VM from C++. This article is called 'JNI Enhancements'. The URL for this article is:
    http://java.sun.com/j2se/1.3.0/docs/guide/jni/jni-12.html
    You have to set version to: JNI_VERSION_1_2
    There is only one problem. I get an error when calling JNI_CreateJavaVM from C++. I could not find any documentation that indicates how you can go about diagnosing what is causing the problem. Normally in Visual C++ you can just get the probable cause by inspecting GetLastError() or the function itself can return helpful diagnostic (error) codes.
    If you manage to start the VM correctly from within Visual C++ please let me know. My email address is [email protected]
    good luck
    Henko

  • Stop/Start Services

    Dears:
    I have one question which is can I to stop and start service on windows 2003, such as Windows Audio service
    If yes please provide me with how...
    Thanks and best regards.

    Hello:
    what you answer is correct if i want to kill processes from task manager, but what i wanna do is to stop the service and start it again.
    When you click right click on My Computer and choose manage -> services; this what i meant by services
    Thanks and best regards

  • Problem with web.xml, while migratig application from JBOSS 5.0 to JBOSS5.1

    Hi ,
    Earlier my application was running fine on JBOSS 5.0 .
    In that web.xml was like
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
         id="WebApp_ID" version="2.4">
         <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
                   <param-name>config</param-name>
                   <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <!-- Timer Details -->
         <servlet>
              <servlet-name>perfMonCollector</servlet-name>
              <servlet-class>com.dbag.optimise.performancemonitor.timer.PerfMonitorCollector</servlet-class>
              <load-on-startup>4</load-on-startup>
              <init-param>
                   <param-name>cronExpr</param-name>
                   <param-value>0 0 0 */1 * ?</param-value>
                   <!--<param-value>0 */10 * * * ?</param-value> -->
              </init-param>
         </servlet>
         <servlet>
              <servlet-name>TransAnalysisCollector</servlet-name>
              <servlet-class>com.dbag.optimise.performancemonitor.timer.TransAnalysisCollector</servlet-class>
              <load-on-startup>3</load-on-startup>
              <init-param>
                   <param-name>cronExprTransAnalysis</param-name>
                   <param-value>*/30 * * * * ?</param-value>
              </init-param>
         </servlet>
         <!-- Timer Details -->
         <!-- PerfMonPoints Cache Generation on Server Startup -->
         <servlet>
              <servlet-name>perfMonGenerator</servlet-name>
              <servlet-class>com.dbag.optimise.performancemonitor.timer.PerfMonPointsGenerator</servlet-class>
              <load-on-startup>2</load-on-startup>
         </servlet>
         <!-- PerfMonPoints Cache Generation on Server Startup -->
         <!-- Standard Action Servlet Mapping -->
         <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
         </servlet-mapping>
         <!-- The Usual Welcome File List -->
         <welcome-file-list>
              <welcome-file>jsp/index.jsp</welcome-file>
         </welcome-file-list>
    But now i have deployed my application on JBOSS 5.1 GA version.
    Now its giving exception.
    Caused by:
    org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref}' is expected. @ vfsfile:/local/dubeavi/jboss-5.1.0.GA/server/default/deploy/PerformanceMonitoringISE-1.0/WEB-INF/web.xml[28,15]
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
    ... 41 more

    My new web.xml is like..
    <web-app
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID"
         version="2.5">
         <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
                   <param-name>config</param-name>
                   <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>

  • Starting an external .exe application from within Visual Basic

    How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
    Thanks in advance
    Big Buzzard
    Philippe de Marchin

    How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
    If you know the path and filename of the application, or if it is an application that the operating system will find for you, then you can pass the application details to the Start method of the Process class.   If you don't know the path and filename
    of the application - for instance you want to start the user's web browser but it might be IE or Firefox or something else, then the argument to the Start method can be of any file type for which the extension has been associated with an application installed
    on the system. 
    https://msdn.microsoft.com/en-us/library/53ezey2s(v=vs.110).aspx

  • How to start a Java ADF application from Forms 10g

    Hi,
    I have a Java ADF application deployed to the OAS.
    How can I start the application from Forms 10g?

    By using the web.show_document forms built-in procedure... passing the web address of your ADF app as parameter.....
    Greetings...
    Sim

  • How do i stop all of my previous applications from starting up when i turn my macbook pro on?

    Whenever I turn on my Macbook Pro all of the applications i was using the previous session start up.  It takes a good five minutes to cycle through all of the start ups and closing them down.
    How do I stop this?
    Thanks,
    Lee

    When you restart or shutdown, uncheck this option.

  • Porting application from jboss to glassfish

    I am involved in a project where I need to upgrade an application to a better application server. It is currently running on jboss 4.01. It has been suggested that I consider porting the app, which includes EJB, JSF, and Web Services to glassfish. Does anybody have any experience doing a migration like this? I'd like to hear some opinons as to whether this would be a good idea and how much more difficult it would be than simply upgrading to a more recent version of jboss. All input appreciated. I tried googling, but didn't find much relevant information.
    Mike

    Hi,
    which version of OAS 10g do you use? Did you checked the content of your ear file? How does the full stacktrace look like?
    I guess you could receive better help if you would provide more information.
    Regards,
    Eric

  • Remotely stop\start your Windows Dialog Instance from System i CI

    Hi All,
    Is there a way to remotely stop and start your Dialog Instance running on Windows from your system 'i' Central Instance?
    Thanks,
    Diana

    Hello Diane,
    We thought about the situation and came to the conclusion, that with the 720 DCK the restriction of only starting/stopping IBM I remote instances with one STARTSAP/STOPSAP call can be dropped.
    The new note 1644051 will describe what to do.
    Here is a short summary:
    You have to apply the 720 DCK to all instances of your SAP system following note 1636252. Also follow this note to obtain info when 720 DCK will be available for all SAP Systems newer than SAP NetWeaver 7.0 ("7.00") without restrictions.
    You have to apply at least the 720 dw patch #67 to all instances (all platforms).
    You have to apply at least the 720 ILE Patch #111 (I think this will be the number, but for the official number wait for note 1644051) to all IBM I hosted instances.
    Of course the first stack kernel available after complete 720 DCK availability will contain all patches needed.
    Please remove any additional stuff from the START profile which you added to start/stop remote windows Instances along with your central Instance.
    Then you can call
    STARTSAP SID(<sapsid>) INSTANCE(ALL) INSTHOST(ALL)
    STOPSAP SID(<sapsid>) INSTANCE(ALL) INSTHOST(ALL)
    to start and stop really all instances out of the box.
    Kind Regards
    Joachim

  • How do I stop the Macbook Pro Messages application from sending things I receive to my iPhone 5c through Imessage?

    My iPhone 5c is receiving the same messages that I've already read on my Macbook Pro and I would like to stop connecting my phone number to the computer. Is there a way to fix this? I am using IOS 1.7.2 if this problem has anything to do with my phone and that has any relevance.
    Edit: I would not like to turn iMessage off on my phone, as I use it because a lot of the area I live in does not have service while we have wifi.

    Try this:
    1) On the Mac, open Messages and then open Messages Preferences
    2) In the left-hand pane, select your e-mail account that is receiving message.
    3) Uncheck "Enable this Account"
    Let us know whether this worked or not.

  • How to stop my 1553 Remote terminal application from locking up the Front Panel when the Bus Controller application is causing msgs traffic over the 1553 bus. This simulation uses WIN98SE with excalibur ISA cards.

    This simulation has several transmit and receive messages. The fastest message refresh rate is set to 50Hz (20 ms).

    Hi,
    Can you provide some more information about what hardware and software you are using? What is your application? Thanks!
    JenK

  • Passing strings to a LAbVIEW application from Visual-C++ using ActiveX

    Hello all,
    I have built a LabVIEW application with ActiveX server enabled. I can
    start the application, and can read and set simple control values like
    numerics.
    But now I want to pass (SetControlValue) strings and read (GetControlValue) strings from controls.
    After searching a whole day for examples or HowTos I found nothing. Can
    anyone give me tip where I can find something about that?
    Examples are also appreciated.
    Best regards
    Heinrich Eidloth

    The problem you are running into is that a BSTR is not a normal string (%s in the printf), but a wide character string (i.e., two bytes per character) string with the size stored in it. If the string contains ASCII characters, such as Hello World, then the one of the bytes per character is 0 (for example, 'H' would be 0x48 0x0).
    When printf sees this, it thinks that it is a normal, null terminated string of "H". That is what you are seeing. You might try the %S (capital S) since that tells it the string is a wide character string.
    Also note that BSTR's are part of the COM (Automation) system and so are don't freed with a delete or free() statement. Instead you need to release the memory with a SysFreeString() call.
    If you aren't very familiar with C/C++, then you've taken on an advanced topic on top of a complicated language. If you can, you might want to try using either VB6 or .NET (C# or VB.NET). Those languages handle all of this for you automatically and you don't have to worry about freeing the memory.
    If not, the book I started with to learn COM programming was this one (http://www.amazon.com/gp/product/1572313498/104-3574382-6511132?v=glance&n=283155&n=507846&s=books&v...).
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Launching another Swing application from existing one using Runtime.exec()

    Hi,
    I have two separate Swing applications, say A and B. I need to launch B from A using Runtime.exec() - essentially I am launching another VM instance from one VM. I am encountering strange problems - B's main window comes up, but GUI doesn't update; sometimes B comes up and GUI updates, but huge memory leaks happen. All the problems with B go away once A is shut down. It almost looks like both the instances of VM are sharing (or competing for) the event thread. Any comments will be of great help. Thanks.
    note: There is no problem launching B if A is a console java application (i.e. no Swing GUI).

    Do you have to have the second application running in a seperate VM (process)? If not completely neccesary, then you can just invoke the static main() of the second class. If the type of the second class isn't known untill run-time, you can use Reflection to invoke the method.
    Miguel

Maybe you are looking for

  • My iPod touch is not connecting with iTunes, i'm using Vista 32 bit. help?

    My computer is recognizing it as a camera and itune is not recognizing it at all. *i have downloaded iTune 7.5* i've spent half an hour talking to the support people who ended up hanging up on me because they didnt seem to know what they were talking

  • External hard drive won't install, Please Help

    I just purchased this same external hard drive, 3/7/2011.  I hooked everything up via my USB, put in the installation CD, got the Drive Set-up window, clicked on Backup Software and got a message "C:\DOCUMEN~1\Owner\LOCALS~1\Temp\pft48F~tmp\" and "Ac

  • Downloading files from a browser

    I need to write an app that will download files from our clients and put it on our server. It is client initiated process from a browser. I know the html type is "type=file" and when the user clicks it it brings up a file dialog. Then they can select

  • Master Detail Page

    Hi, I'm new at JDeveloper (using it for 3 weeks now), and I need some assistance in a little problem that I have. Let me give a description: I need to develop a master-detail page (I've tried several examples that I've found in this forum and blogs,

  • Best Mac-to-Mac video chat (AIM or .Mac)

    I have a Core Duo Mac mini w/ an iSight. My parents will be getting a Macbook or Macbook Pro. I currently have a .Mac account. My question is, do my parents need to sign up for a .Mac account and pay $99 just to use iChat video converencing with me?