How to pull application names & version numbes  from  weblogic servers ??

Hi Friends,
I have situation that I need to display the application names and version number of ear/war/jar files that got deployed on weblogic servers using WLST or any simple way to do that.
Scenario: I have 2 manged servers MNG1 & MNG2 and I had deployed google.1.4.5.ear, web.4.514.war & xxx.jar files and targeted to MSG1 & MSG2.
++++++
Now I want to pull the applications names and the version numbers associated with it and display to some kind of dashboard page like below.
| Application Name | Dev Environment | TEST Environment | PROD Environmnet |
google 1.4.5 1.4.5 1.4.5
web 4.514 4.514 4.514
Like this .....
can any one tell me the best way for achieving this task
Thanks in advance,
newbee
Edited by: user11140631 on Dec 23, 2009 11:18 PM

HI,
Here i have developed a Simple JMX Code which displays the Application Name, It's Current Status and The Application Version. Please let me know this is what u wanted?
import java.util.*;
import java.util.Enumeration;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.management.ObjectName;
import weblogic.jndi.Environment;
import weblogic.management.*;
import weblogic.management.runtime.*;
import javax.management.*;
public class ApplicationStatusChecker
MBeanServer server = null; // MBeanServer
MBeanHome mbeanHome=null;
Hashtable inStart = new Hashtable();
public ApplicationStatusChecker()
try {
Environment env = new Environment();
env.setProviderUrl("t3://localhost:7001");
env.setSecurityPrincipal("weblogic"); // username
env.setSecurityCredentials("weblogic"); // password
Context myCtx = env.getInitialContext();
mbeanHome =(MBeanHome)myCtx.lookup("weblogic.management.home.localhome");
server = mbeanHome.getMBeanServer();
catch (Exception ex)
System.err.println("\n\n\tCannot get MBeanServer: "+ex);
public void getAllMBeans()
Set set=mbeanHome.getAllMBeans();
Iterator it=set.iterator();
while(it.hasNext())
System.out.println("\n\t "+it.next());
public void getMBeanByType(String type)
Set set=mbeanHome.getMBeansByType(type);
Iterator it=set.iterator();
while(it.hasNext())
ApplicationRuntimeMBean appRun=(ApplicationRuntimeMBean)it.next();
int n=appRun.getActiveVersionState();
String status="";
if(n==0) status="UNPREPARED";
if(n==1) status="PREPARED";
if(n==2) status="ACTIVATED";
System.out.println("Application Name : "+appRun.getApplicationName());
System.out.println("Application Status : "+status);
System.out.println("Application Version : "+appRun.getApplicationVersion());
System.out.println("---------------------------------------");
public static void main(String ar[]) throws Exception
ApplicationStatusChecker sm=new ApplicationStatusChecker();
sm.getMBeanByType("ApplicationRuntime");
OUTPUT
C:\DELETE>java ApplicationStatusChecker
Application Name : UsernameTokenEar
Application Status : ACTIVATED
Application Version : null
Application Name : consoleapp
Application Status : ACTIVATED
Application Version : null
Application Name : bea_wls_internal
Application Status : ACTIVATED
Application Version : null
Application Name      : complexServiceEar+
Application Status    : ACTIVATED+
Application Version   : VesionB+
Application Name : bea_wls9_async_response
Application Status : ACTIVATED
Application Version : null
Application Name : mejb
Application Status : ACTIVATED
Application Version : null
Application Name : SystemModuleA
Application Status : ACTIVATED
Application Version : null
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic JMX And Wonders Are Here)

Similar Messages

  • How to pass version number from source location to records center?

    When designing our record management approach, one of the requirements from business is to pass the version number from the source location to records center. They need to know which version has been declared as a record for the same document.
    Is there a way to implement this (OOB)? Thank you.

    Hi,
    Based on your description, my understanding is that when you sent a document to records center, you want to pass version number from source location to records center.
    When a document is sent to the records Center, we keep its version number as assigned in its original document library as metadata that is submitted along with the document to the Records Center (in the “Properties” sub-folder of the document library in
    the Records Center).
    Automatically synchronizing that version number directly into the versioning system in the Records Center is something we should probably consider for a future version, but even in the current version we definitely don’t lose that information.
    Hope this helps clarify.
    Refer to the following article:
    http://blogs.msdn.com/b/recman/archive/2006/08/24/715883.aspx
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I remove the page number from the first page of the document that is the cover page?

    How can I remove the page number from the first page of the document that is the cover page?

    If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
    It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages).

  • Adding caller with name and number from call list to the contact list only inserts the number and not the name

    I recently bought a BlackBerry Z10 and moved my cell service to Rogers to take advantage of the name display service offered by Rogers (Fido also offers this service).
    Due to the number of calls that I receive from first time clients, I wanted the name display service to help me know who was calling. Evidently it is impossible to add clients to my contact list before they call me so I'm constantly seeing numbers that have no name to help me decide if I want to answer the call.
    When I try to add a caller from my call list to my contact list, only the number gets inserted in the new contact. The name needs to be entered manually.
    I understand and realize that not all call display formats are the same and that it's virtually impossible to parse the first and last names from the name portion of the caller id.
    However, I would like to see BlackBerry add the functionality to insert the name portion of the call entry from the caller list to a "Nickname" entry in the contact list just like it adds the number to a "Home", "Mobile", or "Work" entry in the contact list.
    If a user doesn't have a name display service, there would be no change to how their contacts are added because there is no name variable to copy over.
    Can someone from BlackBerry please let me know if this feature can be added to BB10 and when it can be added? For me it's an obvious feature that should just work.
    I am really enjoying my Z10 but I'm feeling let down that something so logical and helpful is not supported out of the box.
    Regards,
    Marc

    Hey ViciousFerret,
    It appears that you are not aware of the fact that both Rogers and Fido offer name AND number display service (although the name display feature is an add-on service) and have been offering it for many years (since 2006). Here is a link to the name display service description of each provider...
    http://www.fido.ca/web/content/manageyourcalls/calldisplay&lang=en
    http://www.rogers.com/business/on/en/smallbusiness/products/wireless/addons/valuepacks/
    As you can see from the link below, Rogers and Fido have been offering this service since 2006.
    http://www.businesswire.com/news/home/20060914005951/en/Teams-HP-Rogers-Wireless-Fido-Succeed-North
    My BlackBerry Z10 shows both the name and number when someone calls (and the caller is not in my contact list).
    All I would like is for the Z10 (and Q10) to support the addition of the name and number from the caller list to my contact list without me having to type the name. As I mentioned in my original post, to avoid the OS having to parse the first name and last name from the name portion of the caller list entry the name could simply be added to the contact list as a "Nickname". If your provider only has number display, nothing would have to be copied from the name variable in the caller list to the contact list.
    I find it difficult to believe that BlackBerry would not be aware of this name display service since it's been around since 2006 with both Rogers and Fido.
    I hope I have clarified the reasons why I would like to have this feature added to BB10 and how it's surprising that this simple feature is not already a part of the BB10 OS.
    Either way, I don't think this is a difficult feature for the BlackBerry team to add. They're just copying a 2nd variable from the caller list to the contact list.
    I'm surprised that Rogers hasn't asked BlackBerry to add this feature to their phones. I think it would be a popular feature for those who receive a high number of calls from first time callers.
    How can I get this feature request to BlackBerry for their consideration?
    Cheers,
    Marc

  • How do I remove a phone number from iMessage on my Mac?

    I get a new iPhone tomorrow on a completely new number and I wanted to know how I can remove my current number from being used for iMessage on my mac so that when I get my new phone I can set it up

    HI,
    In the Finder > Go Menu > Go to Folder
    Enter ~/Library/Preferences in the dialogue box that appears (you can Copy and Paste the bold text).
    In the Preferences folder find the com.apple.iMessage.bag.plist and drag it to the Trash
    Restart Messages.
    It will list nothing in the iMessages account and you will have to Add the Apple ID.
    Once you have the new iPhone set it up for the Apple ID and the Mac version will then get a pop up asking for your to Accept which will then add the iPhone Number to the Settings.
    9:17 pm      Wednesday; November 27, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How do I disconnect my phone number from an Apple ID that I don't know the PW to?? Thanks!!

    Hi everyone! How do I disconnect my phone number from an Apple ID that I don't know the PW to?? I am trying to help my friend - she got divorced from her husband who has her phone number under his Apple ID. He claims he doesn't remember the PW and that Apple couydn't help him?! Any thoughts? Thanks!!

    1. He is lying.
    2. Require him to buy her a new iPhone in the settlement.

  • How do I get my UDID number from my ipod if I can't plug it into itunes?  Apple took it back because it was broken and gave me a new one but I have games and apps that can only be moved over with the UDID from the old pod.

    How do you get the UDID number from your ipod if you don't have the ipod anymore.  The apple store took it because it wasn't working so I can't plug it in to get the number.  Some of my apps are associated wtih that number and I can't move them to my new Ipad without that number.  Any ideas?

    Hi KT. I restored my information back to November 10th and the one app that I need the info on is still empty like I just downloaded it. Do you have another suggestion? I was able to track down my serial number but can't get the UDID without plugging it in and I no longer have it. Suggestions?

  • How can i remove the phone number from the text messages that i receive in the notification center

    how can i remove the phone number from the text messages that i receive in the notification center?

    You choose whether to see text messages in Notification Center or not.  If you elect to see them, they will display the phone number (unless they are from a contact in your contacts list).
    You can choose not to see them at Settings > Notification Center > Messages.

  • How can I dial a phone number from an email message directly

    How can I dial a phone number from an email message directly,
    But even before the selection i will change or correct the number?
    If I copy the number in the notebook, all spaces are filled with % signs.
    When I dictate SIRI the number I get the answer: I do not know the number
    If I copy the number in the phone selection (above) the number can not be edited afterwards.

    You can dial a number appearing in an email by tapping on it.
    But if you need to correct the number first you cannot edit a received email.
    To edit the number tap on the forward symbol and when the draft comes up you should be able to correct the phone number, copy it and paste into your Phone App. Then delete the forward email without sending it.

  • How do I dial a phone number from Forms6i ?? OLE2,DDE??

    How do I dial a phone number from Forms6i ?? OLE2,DDE??
    Is it do-able??
    I have a contact form that has the contacts phone number, etc... I would like to add a button to dial the number which would open the phone line (probably through my modem) and dial the number ... where I would pickup the receiver and wait for connection...
    I need an example or a "How to" link or something where if I take the time I can get it working....
    IF not, is there software to do it?
    Thanks, Bill

    Yes, great! I will check into my modem... but I remember years ago have a c program that I used to send error messages through the modem to my alpha-numeric pager. With that I started with that c program being called from REXX IBM language and it spoke modem language...
    Is there another forum that would handle this type of request? what do you call telephone support? telephony? communication links? ....
    Thanks for the input!

  • I want to setup Lightroom on my new laptop.  I have my latest serial number but it is the upgrade serial number for LR5.  I do not have the original serial number from my purchase of LR3.  How can I recover the serial number from my original purchase of ?

    I want to setup LR on my new laptop.  I have the serial number from my latest purchase but not the original purchase of LR3.  How can I recover the serial number from my original LR purchase?

    If you did register it back then, open your Adobe account with your Adobe ID and you will find it there: Find your serial number quickly
    If you still have it installed, open the System info in Help menu or look here:
    C:\ProgramData\Adobe\Lightroom\Lightroom xy Registration.lrreg

  • Stolen ipad 4. How can i get my serial number from Apple?HELP!!

    My Apple iPad 4 was stolen i do not have the box anymore because when i bought it i was living as an aupair in the USA so on my return after that about 2 months ago my iPad got stolen i never wrote the serial number down did email it to my father though but he lost that email. PLEASE HELP! how can i find my serial number from Apple, they surely should have my serail number on my apple ID???

    It seems it was never registered to your Apple ID.
    Do you have an iTunes backup of the iPad?
    Open iTunes.
    Open Preferences. (In Mac OS X, choose iTunes > Preferences. In Windows, choose Edit > Preferences.)
    Click the Devices tab.
    Position the mouse over a backup to display the serial number of the backed-up device. iPhone and cellular iPad models also display the IMEI/MEID and Cellular Data Number:
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How do I remove my mobile number from appearing in...

    How do I remove my mobile number from appearing in my profile?
    Im not gonna lie this has me heated. I never entered my mobile number in my profile, and now i cant remove it.... this is complete crap. i need help or i will just remove skype. thanks

    http://support.apple.com/kb/TS5185

  • How do I remove my phone number from my iphone so that i can continue to use it like an ipod touch and use imessages with email/apple ID?

    How do i remove my phone number from my iphone 4s so that i can continue to use it as an ipod touch and use imessages with email/apple ID?

    This article explains what to do:
    http://support.apple.com/kb/HT5661

  • How do I remove my phone number from another iCloud account so that text messages cannot be seen on another phone?

    How do I remove my phone number from another iCloud account. The issue is another phone receiving my text messages because of a shared apple ID.

    You can't remove your phone number from iMessage on an iPhone.  To prevent another phone from receiving your messages, use different Apple IDs for iMessage.  One of you should go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a different ID.  You can still share the same ID for other services such as iTunes if you want; they don't have to be the same as your iMessage ID.

Maybe you are looking for

  • Sender file adapter with FCC not creating last field

    Hi, I've got the following file: field1;field2;field3 FCC is the following: Recordset streucture: ITEM,* ITEM.fieldSeparator     ; ITEM.endSeparator     'nl' ITEM.fieldNames FIELD1,FIELD2,FIELD3 ignoreRecordsetName     true I expect to generate the f

  • IPod nano skipping song

    Hi all. I downloaded a song from the itunes music store and uploaded it it my nano (1gb), after about 16-19 seconds, it will skip to the next song. I have checked the settings for it on itunes, tried the 5 r's and taken it out from the library and ad

  • Alternatives to Apple superdrive for Macbook Air?

    I am looking for a cheaper more reliable alternative to the Apple Superdrive for my Macbook Air. I am using the Superdrive in an equipment van, meaning it breaks all the time. Any ideas? Thanks!

  • EDI ALE Payment advice inbound

    Hi Experts,             Could any body help me how to do edi inbound report . The relation is between company vendors bank. When the bank giveing payments to the vendors the company has to receive conformations that should be updated in sap tables in

  • Archiving Document Factory output to CMOD

    Hi There, In my Documker 12.3 Factory implememtation I want real time archival to be done on CMOD (Content Manager On Demand). I am not sure if this is possible and if so how? lots of question is arising.... if the the archival will be synchronous, w