Can't find my MBean in VisualVM or JConsole

I have a MBean that I'm deploying as part of an ear onto Glassfish. Using JConsole or VisualVM I can't find the MBean. As far as I can tell it's deploying correctly. I've put the class below, in case the problem is in there. Any ideas?
public class TestEmitter implements TestEmitterMBean, NotificationEmitter {
private NotificationBroadcasterSupport broadcaster = new NotificationBroadcasterSupport();
private long seqNumber;
private static final String TYPE_REQUESTED = "requested";
private static final String TYPE_SUCCESSFUL = "request successful";
private static final String TYPE_FAILED = "request failed";
public TestEmitter(){
@Override
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException {
broadcaster.addNotificationListener(listener, filter, handback);
@Override
public MBeanNotificationInfo[] getNotificationInfo() {
return new MBeanNotificationInfo[]{
new MBeanNotificationInfo(new String[]{TYPE_REQUESTED, TYPE_SUCCESSFUL, TYPE_FAILED},
javax.management.Notification.class.getName(), "Notifications")};
@Override
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException {
broadcaster.removeNotificationListener(listener);
@Override
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException {
broadcaster.removeNotificationListener(listener, filter, handback);
public synchronized long getNextSeqNumber() {
return seqNumber++;
@Override
public void sendRequestNotification() {
Notification notification = new Notification(TYPE_REQUESTED,this,getNextSeqNumber());
broadcaster.sendNotification(notification);
@Override
public void sendSuccessfulNotification() {
Notification notification = new Notification(TYPE_SUCCESSFUL,this,getNextSeqNumber());
broadcaster.sendNotification(notification);
@Override
public void sendFailedNotification() {
Notification notification = new Notification(TYPE_FAILED,this,getNextSeqNumber());
broadcaster.sendNotification(notification);
}

Basically, that's it. If I set a break point I can see the code in the bean is being executed so I'm assuming it's been deployed.

Similar Messages

  • Can't find the J2EE Application JDBC Module Datasource in Weblogic

    Hello,
    I am trying to locate the JDBC Module J2EE application Datasource details in weblogic but I cant find it.
    Can someone help me where I can find any Mbean in Weblogic which will specify all the details about the DataSource.
    You can see in the image that under deployment I have an application which has Data source(saasreporef).
    I have already discovered this target in one of my agent and I want to locate some Mbean which can give me details about this Datasource in Weblogic.

    I've solved it myself. It changed to NWDS from the Visual Administrator. It can be undepolyed using undepoly view in the NWDS.
    I can find the answer using keword 'Deploying and Running the Application from NWDS' in the help portal.

  • I have bought a film from itunes and the credit has come out of my account, but i can't find the film anywhere, it said it was downloading, then i left the laptop and on return i couldn't find the film. how do i find the film?

    i have bought a film from itunes and the credit has come out of my account, but i can't find the film anywhere, it said it was downloading, then i left the laptop and on return i couldn't find the film. how do i find the film?

    Maybe it is in the Purchased category of iTunes,
    Try going there

  • Podcasts downloaded to "wrong" folder, then ITunes can't find it anymore

    Hi
    When I subscribe to a podcast or download the newest podcast, it will be saved not to the folder of itunesmusic/podcasts/name of podcast, but to /itunesmusic/downloads/podcasts/name of podcast, apparently as tmp-folder. Synchronising just then with my IPOD works, but when I exit ITunes and restart it, the podcast is not found anymore and I get the exclamation mark. When I search for it I can't find the podcast then anymore.
    I have ITunes 7.0.2.16 and running Windows XP.
    Any one has an idea how to solve this?
    Also is there a way to downgrade ITunes to version 6 or so? Because there it worked without problems.
    Appreciate any feedback.

    Too my a bit to work out *** was going on, but it was driving me insane with podcasts vanishing on me.
    To clarify, this is a full description of the issue:
    I have a problem with iTunes losing podcasts. They'd download, seem to play, but when I exited and reloaded iTunes a load of them would be lost and give me the exclamation icon. I've managed to work out why iTunes is losing my podcasts, but have no idea how to fix it.
    I've got a folder specified which I want iTunes to use to store my stuff in (E:\Media\itunes).
    When I subscribe to a new podcast it downloads to a file called E:\Media\itunes\Downloads\Podcasts\File on 4_ Phone tap evidence - 21 N.tmp\download.mp3 and creates a folder called E:\Media\itunes\Podcasts\File on
    I think it's supposed to save it to the first location and then copy it across to the second folder when it's finished. Except it doesn't. iTunes can run the podcast now, but from the temp folder.
    When you restart itunes, it nukes everything in the E:\Media\itunes\Downloads\Podcasts folder - I assume as it thinks I have no downloads outstanding and anything in here is just junk.
    Apart from manually copying, renaming and point itunes to this file - how do I get around this problem. It's only started since I went to iTunes7 and a complete uninstall/registry/config cleanse followed by a reinstall doesn't fix the problem.

  • Aio remote can't find printer

    I have a HP Envy 4507. My AiO Remote app can't find it. This is not a compatibility issue as I have been selling 4507's which I demonstrate by connecting to them. I originally was able to connect on the one at home but not lately. I keep on seeing the one from work. HP ePrint sees the home one fine. I have reinstalled AiO Remote and now it cannot see any printers, no matter how I try to connect. Tried ip address, direct (which was working before) and through wireless router which worked when I first set it up.

    Hi,
    Thinsg to quickly check would that there has been no recent  wifi password changes - if there has been any, they password would need to be re-entered into both the mobile device and printer.
    Another quick thing to try is restarting the mobile device - this sometimes helps re-establish the  connection.
    "Although I work for HP, I'm speaking for myself and not on behalf of HP"
    "Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any sugge

    I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any suggestions on how I could kill this error message? Thanks.
    iMac, Mac OS X (10.7.2)
    Basically i tried to enter too much information into my calendar and it has crashed  now i can not get rid of the error message or use the calendar  can anyone help please

    did you find ou how to get rid of it i can't

  • Macbook pro can´t find/connect to my hotspot

    Dear experts!
    I recently moved to a new place and got myself a T-Mobile HomeNet Router. Everything works fine (WiFi and Ethernet) with all devices (iPhone, iPad, iMac, Linux-machine...) EXCEPT my MacBook Pro (specs below in the product section) :-(
    Ever since I moved the Macbook can´t find or connect to my home hotspot. Settings on the router are as follows:
    - 802.1 b/g (it IS capable of b/g/n but I found a thread somewhere pointing out that this could be an issue)
    - channel 13 (deactived auto-channel because my neighbours had overlapping channel settings...this was the only one that worked)
    - rate auto
    - frequency 2.4 GHz
    - 30% signal strength (same reason as above)
    - QoS activated
    - SSID hidden (tried broadcasting it, made no difference)
    - WPA2-PSK
    - AES (TKIP and TKIP+AES available as well...but neither made any difference)
    I can connect via ethernet, however that´s not the intended purpose of neither my notebook nor the router :-/ Someone suggested it might be an encryption issue but even without  ANY encryption the hotspot won´t show up in the list. Password contains special characters but even my old iMac doesn´t seem to have problems with it. I tried connecting manually via "other network" without success. Also via Controlpanel -> Network -> Assist me ...
    I´m sitting right next to my router so the signal strength can´t be the cause either (besides all other devices work just fine anywhere in my appartement). Restarted all devices, each one is up to date. Last thing I tried was making the changes in Firefox cause someone suggested it might be a bug in the router software, still no success.....I´m out of ideas.
    Posted this in another Mac forum already but no one could help me :-( You guys are my last hope ... does anyone know this issue and how to solve it??
    any ideas would be greatly appreciated!
    many thanks in advance
    tchintchie

    nevermind...here´s what solved it for me:
    https://discussions.apple.com/docs/DOC-3411

  • HT201269 When I updated my wife's iphone 4s the last time to IOS 7 she lost all her contacts. I logged onto icloud because I thought they would have been save there but I can't find them.  My daughter and wife use the same Apple ID

    About 2 weeks ago I plugged my wife's iphone 4S to our pc to update  it to IOS 7and backup her iphone info to icloud. When I was done my wife's iphone had my daughter's ipod info on it and I can't find my wife's info on icloud anywhere. My wife has about 6 years of business contacts on her iphone so she is rather upset. Is there a way to recover her contacts?

    You don't have to wipe anything, but when you get a chance make sure you backed up to icloud.
    What that means is your contacts inside of the phone either physically or liquid damaged. To check
    which, you can look inside and if you see a little pink, that would give you a water damage. If you don't
    see pink it means that you to many times plugged in that charger the other way or tried to. May be
    used some other things to plug in. If you flash the light in you may be able to see those contacts.
    If I were you, i would not believe me, good luck!

  • Microsoft Office can't find your license for this application - multiple copies of Office 2013 x32 failing to start, Software Protection Service timing out

    We're experiencing a growing problem with our users in several different domains running in to Microsoft Office 2013 x32 'activation' issues.  We use KMS for licensing, which works properly, but some of the machines (~20-30 out of 1000+) sporadically
    throw the following error:
    'Microsoft Office can't find your license for this application.  Microsoft Office will now exit.'
    We know it's not an issue with the licenses per se, since they work on and off and we can force KMS activation correctly / talk to the KMS servers.
    It appears to be an issue with the Software Protection service not starting properly.  In Event Viewer, we see the following:
    'Software protection service failed to start due to the following error- the service did not respond in a timely fashion.
    Event 7000'
    This is occurring on a variety of machines in a variety of environments, all fully patched with the latest Office updates.  It's inconsistent, and the 'manually restart the Software Protection Service' solution is not viable as it's occurring on many
    different workstations.  Office repairs have also been unsuccessful.  
    Has anyone else come across this? Or have any idea why the Software Protection Service might be sporadically failing?  Maybe an Office update in the last 2-3 months?
    Thanks for any info.

    We're experiencing a growing problem with our users in several different domains running in to Microsoft Office 2013 x32 'activation' issues.  We use KMS for licensing, which works properly, but some of the machines (~20-30 out of 1000+) sporadically
    throw the following error:
    'Microsoft Office can't find your license for this application.  Microsoft Office will now exit.'
    We know it's not an issue with the licenses per se, since they work on and off and we can force KMS activation correctly / talk to the KMS servers.
    It appears to be an issue with the Software Protection service not starting properly.  In Event Viewer, we see the following:
    'Software protection service failed to start due to the following error- the service did not respond in a timely fashion.
    Event 7000'
    This is occurring on a variety of machines in a variety of environments, all fully patched with the latest Office updates.  It's inconsistent, and the 'manually restart the Software Protection Service' solution is not viable as it's occurring on many
    different workstations.  Office repairs have also been unsuccessful.  
    Has anyone else come across this? Or have any idea why the Software Protection Service might be sporadically failing?  Maybe an Office update in the last 2-3 months?
    Thanks for any info.

  • At a Genius Bar appointment yesterday, we determined that I needed to go to Mountain Lion from Lion.  I purchased Mountain Lion at the Bar, and paused the install so that I could resume from home.  Now I can't find it to resume. Not in Downloads. ?????

    When I upgraded to Lion, my Parallels stopped working and I got a Bootcamp error message.  It had worked fine for the prior year.  I upgraded to Parallels 7.  No luck. At the Genius Bar, the Genius uninstalled Bootcamp.  No luck.  I still get "The Boot Camp partition /dev/diskOs4 used by Hard Drive 1 is missing."
    Another Genius suggested upgrading to Mountain Lion.  While at the Bar, I purchased Mountain Lion and then we paused the install so that I could resume it at home.  Once I got home, I can't find the Mountain Lion installer to resume.  It's not in the Downloads file.  Any clue?
    My business programs all run on Windows, so I have to get it operating.  The Genius Bar isn't much help.  Does anyone know how to get Mountain Lion installed?  How to get Parallels working?

    The "Geniuses" (and I use that word in sarcasm) at the Bar are lying to you. Upgrading from Lion to Mt Lion will not fix whatever problems you are having. In fact it will most likely make them worse.
    If you want to try installing Mt Lion to fix the problems you are having you will need to open the Mac App Store link in your Dock, Login to your Apple ID account for the MAS and go to your Purchases area. Mt Lion should be in there and you will be able to do a proper download. Once you either set your Mac into sleep or shut down and then left the internet connection at the Bar all record of that download was lost. So you will need to restart it again from the beginning, like described above.
    Good Luck

  • "Can't find dependent libraries" Query

    I created a sample.dll using VC++ which inturn uses java libraries. I
    was getting 'file.obj : error LNK2001: unresolved external symbol
    __imp__JAWT_GetAWT@8' link error while creating sample.dll even after
    providing jawt.dll path. So used jre/lib/jawt.lib to create the
    sample.dll. I am using this sample.dll to run a java program. While
    running the java program, I am getting the error 'Exception in thread
    "main" ava.lang.UnsatisfiedLinkError: sample.dll: Can't find dependent
    libraries'. If I don't use jawt.lib (by commenting relevant code) to
    create sample.dll, my java program runs fine.
    But I need to use the code relevant to jawt.lib. Any idea how to over
    come Can't find dependent libraries error?

    You need to link against "jawt.lib"
    E.g.
    In VC++ goto
    Projects -> Settings ->Link Tab
    Add jawt.lib to the Object/Library modules and Project Options.

  • Can't find IMEI number on the phone. Screen has broken so I can't access the dial pad.

    I can't find the IMEI number in the phone after following the instruction on how to find it. I found a number on the back of my micro sim card but this website wouldn't accept it.
    The screen has SELF-CRACKED after having used it for 2 months. And yes it genuinely cracked itself. No, it was not dropped. No, I did not go swimming with it.
    I'm trying to get this number so I can send it off to be repaired. For which I am told Sony do this for free for their products that have this problem. You can read about it here:
    WatchDog - Z1 Self-Cracking Phones
    All I want is to send off the phone to be repaired ASAP, but insetad I'm wasting my time having to contact customer services for which none of them give me a clear answer, and have to create accounts and aliases on this site which I never intend to use ever again. It is not my fault or any other consumers fault for the majority of problems that arise in these products, it is the manufacturers fault for distributing such faulty goods. Safe to say, I never intend on purchasing Sony products again, nor recommend these to anyone.

    Hi and welcome to the community Samantha2015! Since you're new please be sure that you have checked out our Discussion guidelines.
    If you have the Xperia Z1, I suggest that you take a look at the following link:
    http://support.sonymobile.com/global-en/xperiaz1/userguide/IMEI-number/
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • My system for work only supports Firefox 7.0 and 8.0. I can only find 3.6 and 9.0 available on your website. Where can I find 8.0. I really love Firefox, but I can't use an unsupported version, as features of our Blackboard will not work.

    Where can I find a download for Firefox 8.0. Work does not support the 9.0 platform, yet.

    Firefox 8 English version for windows vista is here
    * http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/en-US/Firefox%20Setup%208.0.1.exe

  • I need to upgrade my version and can't find help or any other way

    I got a message saying I was using an old and insecure version of firefox. I was directed to click on help. I can't find help.
    When I clicked the free download a message said it didn't exist. Try another version.
    I have been having problems with viruses and would like to clean firefox or load a new version while keeping my homepage.
    I keep hearing firefox is known for not protecting users from viruses.

    When I try to install the free app I get three boxes that seem simple enough to follow EXCEPT the first box opens with 62% downloaded and never changes. When I try to click here it doesn't move. Once it opened the choice of open with or file . When I chose open it went to a bunch of apps that are not related. How do I select what to open it with? Why is it stuck at 62%

Maybe you are looking for