How do you use WLST to get a deployed Apps name?

I am writing an application update script to make updating our environments quicker/easier with the following code from an ant build file:
<wlst debug="true" failOnError="true">
<script>
connect('login','pwd','t3://...')
updateApplication('${app.name}',block='true')
</script>
</wlst>
However, b/c our application has a version in the manifest file, our application name looks like this:
AppName-BuildNumber-TimeOfBuild
Since the TimeOfBuild is always different from build to build it is impossible to hard code this value. Is there a way to get the application's name using WLST?
connect(...)
cd('AppDeployments')
This shows me all applications deployed on the server, but inorder to go any farther I need the name of a specific app. I'm sure I am just overlooking an mbean somewhere, but I can't seem to find it! Any ideas??
Thanks.
Message was edited by:
bftanner

Ok, so I figured out how to get an applications name but I can't get the following script to work from an ant build file:
<wlst debug="true" failonerror="false">
<script>
connect('system','weblogic','t3://...')
apps=cmo.getAppDeployments()
for app in apps:
if app.getName().startswith("4X"):
stopApplication(app,block='true')
undeploy(app.getName(),targets='MS1,MS2',block='true')
deploy('4X','//box/domains/applications/4X.ear',targets='MS1,MS2',stageMode='stage',block='true')
apps=cmo.getAppDeployments()
for app in apps:
if app.getName().startswith("4X"):
     startApplication(app.getName(),block='true')
</script>
</wlst>
When this is run I get the following error:
BUILD FAILED
C:\docume~1\dtanner\desktop\RELupdate.xml:134: Error executing the script snippe
t
connect('system','weblogic','t3://192.168.0.250:
7001')
apps=cmo.getAppDeployments()
for app in apps:
if app.getName().startswith("reporting-r
eport"):
stopApplication(app,block='true'
undeploy(app,targets='MS1,MS2',b
lock='true')
deploy('reporting-report-server','//bfediapp3/do
mains/applications/reporting-report-server.war',targets='MS1,MS2',stageMode='sta
ge',block='true')
apps=cmo.getAppDeployments()
for app in apps:
if app.getName().startswith("reporting-r
eport"):
startApplication(app,block='true
due to:
Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('invalid syntax', ('<string>', 2, 33, '\t\t\t\tapps=cmo.getAppDepl
oyments()'))
Any Ideas??? Also, how can you keep the format i.e. tabs and spaces at the front of a line in these forums???
Thanks.

Similar Messages

  • How do you use passbook? Finally got the app to connect to App Store. Does not seem to allow me to add anything.

    How do you use passbook? Finally got the app to connect to App Store. Does not seem to allow me to add anything.

    http://support.apple.com/kb/HT5483
    Use this

  • How do you use emojis in the iPhone 5s

    How do you use emojis in the iPhone 5s

    Tap on Settings, General, Keyboard, Then Keyboards, Add New keyboard, and choose emoji.
    The next time you are in text messaging or email, and the keyboard pops up, select the globe to get to the emoji symbols.

  • How do you use ReadyHosting's myLittleTools?

    A client I do some work for occasionally, has normally wanted me to add links to various partner websites. These have all been pretty small over the years I’ve done this work for him, like make 5 at most. Well now he’s hit me
    with about 2 dozen partners that he wants a link to. When it gets to this point I think of databases.
    I created a MS SQL Server database on Ready Hosting’s server, associated with my client’s account. (Got his permission before doing so.) Then I created a user for that, so that I could get into it. Ready Hosting uses something
    called “myLIttleTools” for managing and administering one’s SQL Server databases on their servers. So I tried going into it, entering the credentials that I created. But it refuses to allow me to log in. I get the following error message:
    “Error -2147217843
    Login failed for user ‘MyID'.
    Provider=sqloledb;Data Source=ReadyHostingServer;Initial Catalog=ClientDB;User Id=MyID;Password=MyPassword;Connect Timeout=120;”
    (Clearly I’ve changed the credentials here; they’re not what I’ve created.)
    Two days ago I opened a help ticket with them. Still haven’t heard from them.
    So I’m asking here, does anyone have any experience with SQL Server database management on ReadyHosting? How am I supposed to log in when it refuses to accept the credentials for the user I created on it? They want you to use
    this “myLittleTools” thing, but WOW how do you use that when you’re prevented from even getting into the door?
    Rod

    Readyhosting is still around? They were a really good host back at the turn of the century then were bought by a company that proceeded to hire incompetents and became totally unreliable. I'd have thought they folded a decade ago.
    As others said, this is an issue to be resolved through Readyhosting's support personnel. EW is not really deigned for managing database servers. If their connection permits it you can use the MS SQL tools to manage remotely (doubt they allow it though)
    and most people use MS Web Developer Express for their database work on small websites not EW.
    Free Expression Web Tutorials
    For an Expression Web forum without the posting issues try
    expressionwebforum.com

  • How do you use AdobeExportPDF??

    I'm not sure what you have changed with ExportPDF, but have used it in the past and there was always sign in page that popped up after you paid the annual fee. Now it keeps trying to sell me the subscription again. How do you use Export now? You have already charged my bank for the fee and I can go to my account when I sign in and see that I'm supposed to have an active subscription, but there is no place to select the option of exporting a PDF to convert to word. I have called Adobe customer care and guess what, no support available there nor help getting to the right people to help. I see from the discussions on this page that it seems to be a common problem.
    So, how do I use Adobe ExportPDF?
    Is this a scam?
    Why did you make it so difficult to use now?

    Im having the same issue!!! Help

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • How do you use the bluetooth VIs with a Microsoft Bluetooth Driver?

    How do you use the LabVIEW Bluetooth VIs with the Microsoft Bluetooth driver?  I have been trying with no such luck.
       I want to use 2 computers to talk to each other using the bluetooth VIs.  Eventually, I think we would like a PDA/phone to talk to a custom built electronics board with Bluetooth.  But for now, I would just like 2 computers to talk and then eventually talk to our own device. 
    One is a desktop w/ the Belkin F8T012 USB adapter.  It installs fine with the Belkin driver (but I know I need to use the Microsoft Driver in order to use the LabVIEW VIs, but I have tried to get Windows to install its own but it says it is a BCM92045DG-Flash.  It says it cannot install it because it cannot find the necessary hardware.  I thought this USB adapter was on the approved Bluetooth devices list?  What else should I try?  Another Bluetooth USB adapter? 
    The other computer is a Dell Latitude 820.  It has a built in Bluetooth module which I believe is the Dell 350 Bluetooth Module.  On this machine I have been able to setup a COM port with a bluetooth device (blood glucose meter).  It came with a serial port interface which we modifed to go through a bluetooth interface.  It comes up as COM40. We have been able to communicate to it using their program originally designed to talk through a serial port.  But we would like to use the Bluetooth VIs in LabVIEW.  I can't even use the Discover VI.  Perhaps it is not using the Microsoft Driver as well.  Do I just uninstall the driver and then try to have Windows install its own driver?  Do you have any other recommendations?
    Thanks,
       Javi

    Hi Javi,
    This sounds like an issue with Windows and your specific Bluetooth devices.  As you mentioned, the LV Bluetooth VI's do require that the devices use the Windows drivers.  Take a look at this link for specific requirements for using Bluetooth with LabVIEW.  Also, you can take a look at our Developer Zone tutorial on designing Bluetooth applications a found here.  Regarding your device drivers, sometimes it is as easy as uninstalling the driver and then letting Windows discover the device and fine its own driver.  You could check out the Microsoft Knowledgebase for more information.  Thanks and have a great day!    
    Stephen S.
    National Instruments
    1 Test is worth 1000 expert opinions

  • How do you use Airport extreme at hotels etc, when traveling? I can plug my computer into the Airport with my ethernet but how does Airport pickup signal?

    How do you use Airport extreme at hotels etc, when traveling? I can plug my computer into the Airport with my ethernet but how does Airport pickup signal? What equipment & devices do I need to travel with to make this possible?

    You may mean the AirPort Express.....not AirPort Extreme.....as the Express is a popular travel router.
    The whole idea behind using this device is that the hotel must provide an Ethernet jack in the hotel room. Then you connect the AirPort Express to the Ethernet jack with an Ethernet cable and configure it to provide your own wireless network in the room. You still have to agree to terms, pay the fees, etc.
    The problem with this approach is that it is getting very difficult to find hotels in North America that prrovide an Ethernet jack....most have moved to wireless networks and the others are not far behind.
    So, if the hotel is already providing a wireless signal, the AirPort Express is of no use in that situation.
    If you normally stay at the same hotels, and know that they provide Ethernet ports, an AirPort Express might make sense in terms of convenience.

  • How do I use daqmx to get encoder direction/count on E-series board?

    Hardware:
    PCI-6014
    Labview 7.1
    I have a linear actuator and wish to get distance/direction.  The
    motor has a quad encoder with phase A and B only.  I connected the
    lines according the the E-series, PFI-8 and PFI-6, and ground to
    digital ground. I then attempted to design a control with daqmx but
    failed.  I have tried the daqmx examples but none were attempting
    a reverse in direction.  Most examples given for direction change
    are for traditional daq control; i cant make a correlation on what to
    use to substite traditional daq with daqmx vi's. 
    2 questions:
    How do I use daqmx to get encoder direction/count on E-series board?
    Are there low pass filter vi's recommended for each phase connection to stabilize data?
    Thanks,
    Wayne Hilburn

    Hello Wayne,
    Take a look at the Count Digital Events.vi shipping example.  You can find this in LabVIEW by selecting Help >> Find Examples... then browsing to Hardware Input and Output >> DAQmx >> Counter Measurements >> Count Digital Events.
    If you set the "Count Direction" control to "Externally Controlled", you will be able to count up and down depending on which direction you rotate your encoder.  Make sure you wire Phase A to Ctr0 Source and Phase B to P0.6.  P0.6 is the up/down line for counter 0.
    I hope this helps.  Please let me know if you have any further questions.
    Regards,
    Sean C.

  • How do you use one managed session bean from another?

    Hello -
    I am a complete newbie to JSF coming from Struts 1. My question is how do you use one managed bean from the method of another one? I think this would be a common senario. For example I put a bean in session scope when a user logs in and in a different method within a different bean I want to get some of this user's information. What is the correct way to retireve one bean from a method in another with session scope?
    Also what would the code look like to retieve another bean from the method of a managed bean where the bean you want to retrieve has application scope?
    Thank you in advance.

    Sinplicity wrote:
    Could you be a bit more specific? If a bean is configured in the faces config file then all of it's properties are managed, correct?Not necessarily.
    What would the code look like to retireve the bean?You don't retrieve it, it has been injected.
    Can I retrieve the whole bean or just a property of the bean. I would be really interested in seeing how this is done in code? And would really love a bit more information on what it means to be a managed property?Time to consult a JSF tutorial.

  • How do you use Logical Expressions in the RTF?

    How do you use logical expressions such as "and", "or" when you want to do conditional printing of XML data in the RTF?
    For example:
    if (conditionA and conditionB) then...
    Regards,
    Smita

    Thank you Sir! - I had something else wrong in the expression, but the error message I was getting was a bit misleading and sent me down the wrong path.
    Thanks again, and best regards:)

  • How do you use inspirion 13 7000 stylus with adobe photoshop cc

    how do you use inspirion 13 7000 stylus with adobe photoshop cc? Doe anyone know how to use the stylus on this dell 2 in 1? I was told by dell that you could use the stylus to edit in photoshop but its not working-

    You are asking a huge question. You'll get a better response if you ask something specific about a problem you are having with layers.
    I'm not trying to be mean but you can find vast amounts of basic info on layers with a simple Google query. If you click the Video link after inputting a search query, you can even find video tutorials.  YouTube  is one place that has quite a few video tutorials.
    How layers work hasn't changed between Elements versions.  Layers work the same in Photoshop. The application interfaces may be slightly different but layers are layers.
    FWIW, I'm not a big fan of the manual. You're better on getting something like "The Missing Manual" by Barbara Brundage or looking for info on the Internet.  One free resource with tons of info can be found here:
    http://www.garymgordon.com/misc/tutorials/photoshop_tutorial/elements/psE_intro.htm
    The tutorials found at the above link use an older version of Elements so you won't find info on the newest tools and features but the basic Editor info on layers and the tools still apply.

  • Cssmill - how do you use it?

    Looking at cssmill for the first time, and i'm trying to figure out some things...
    1) how would you use cssmill to create the default - out-of-the-box stylesheets? The ones that are deployed after install don't have any 508 styles, but they are generated by cssmill. You would have to edit the template files to exclude these styles.
    (edit, i see now that removing the d_ styles is done by the make_508_css task, but its erroring out on my machine)
    2) out of the box css has no comments. cssmill includes all comments. run them though a css compressor first?
    3) make_portal_css. is this a relic from yesteryear? why would the portal ever use mainstyle-en.css instead of mainstyleX-en.css?
    Is it worth trying to make changes to template files or just edit the resulting CSS manually?
    I'm thinking this should be my methodology:
    1) Create custom color.propertiles file(s) that make sense for my organization
    2) Generate css file
    3) paste all my custom stuff at the top
    I'd really love to get away from using cssmill completely but not sure if its possible.
    Edited by: Joel Collins on May 18, 2009 12:33 PM
    upon closer inspection, it looks liek the make_508_task is failing (silently) wtih the error: "The requested operation cannot be performed on a file with a user-mapped section open". this is what removes the comments and d_ lines
    Edited by: Joel Collins on May 18, 2009 1:22 PM
    i updated the java file under bin and it works now
    http://joelcollins.posterous.com/cssmill-508-fix

    I'm testing out a new way to do the stylesheets....let me know if you guys have any ideas or concerns...
    so i generate the stylesheets using cssmill...but then i rename them to mainstyleXX-en-orig.css
    then I create a custom stylesheet, wtih all of our custom styles (we override a lot of stuff...)
    then, i add @import statements at the top of that css class for the orig...
    so my stylesheet looks liek this:
    @import "mainstyleXX-en-orig.css";
    @import "analytics.css";
    html { height:100%; }
    body { font-family:arial, Verdana, sans-serif; font-size:12px; line-height:1.4em;  color:#333333; margin:0px; padding:0px; height:100%;}
    p { margin:1em 0;padding:0; }
    a:link     { color:#003399; text-decoration:none; }
    a:visited { color:#810081; text-decoration:none; }
    a:link:hover { text-decoration:underline;}
    a:visited:hover { color:#810081; text-decoration:underline; }
    ... etc...
    This way, when you orerride a style that is in the original stylesheet, you dont' have to modify the orig.css...

  • How do you use imessages on "Mountain Lion"

    How do you use i-messages on Mountain Lion, Several analysis of the new operating system seem to say you can do that but  I tried to send a message to my Ipod, Iphone and I-Pad from the new operating system " Mountain Lion"  But I guess I got things set up wrong it did not work.  I got no messages from the I-Mac.
    Since I am a new I-Mac used ( Have a ipod, ipad & Iphone) would like to be able to send Imessages from my I-Mac and can't figure out how to do that. I keeps wanting to send AIM messages and when I go to change it to I Cloud mesages I don't see I-Cloud on the list???

    Joe thanks for the reply but I am still confused here is the problem:
    I opened The accounts window and went to my ME.com account but it wants me to set up an AIM account , what is that all about . I was sure I was sending the messages thru the apple server .
    Second I am a PC person and this is my wifes I-Mac,  so I am new to MACS but I have used PC's for 35 years. 
    She wants to be able to send me I-Messages for her MAC that is why I am trying to set this up for her.   She is NOT a Techie and so she depends on me.  I am very confused by the MAC as I have buily trouble shoot and fixed PS (not as a profession but as a hobby) I am trying to get used to the MAC so I can help my wife. As I have an IPOD and an 4S I-Phone. Now you know the whole story.  Sorry to bore you with the details but I was sure it would help you give me a better Idea of where to go to correct the AIM situation.
    OK when I go to the ME.com account there is no where where I see Caller ID???
    What I see is My wifes e-mail a Bonjour ( imactive) account, &  Yahoo account.  I may be in the wrong place
    Toi be frank I don't see an Imessages account.  Under mail accounts I see My wifes 5 e-mail accounts and one of them is a .ME account ( I assume that is the icloud account) but where it says account type it says AIM how do I change it to an I Cloun account?
    OK the next question when you say click on the DOCK I go to system preferences and click on DOC and I get some screen that shows SIZE, Magnification Position on screen and so on.
    When I go to the Finder and click on Applications I get a window that says messages but there is nothing on that window that I can adjust?
    Help Where is i messages

  • How do you use your iPod Touch?

    I'm thinking of buying an ipod touch 5th gen, but I have to convince myself that it would help me significantly before I drop $300 on a device. My question: how do you use your iPod Touch, aka, what things have helped you significantly, excluding games? I've heard a ton about how awesome the new version is, and everything about its camera and retina display, but I want to know that I would actually use one first....
    Thanks.

    Surf the web from bed and coffee shops/bookstores.  When in a store that has WiFi I may research a product that looks interesting to buy.
    It is a camera that is always with you (assuming you always take it with you), so you can capture that picture that happens once in a life time.  Also the camera is great when shopping for "Big Ticket" items as you can take pictures to remind you of things you were looking at so you can do additional research at home before making your final decision.
    Check my mail from bed and coffee shops/bookstores, etc... when WiFi is available.
    Use it as an alarm clock, meeting reminder, todo reminder.
    Take notes (not school notes, just ideas, stuff I maybe want to buy, useful information I may pick up in a bookstore, books I may want to buy, etc...)
    Contains my contacts for friends, family, and businesses (plumber, dentist, doctor, etc...)
    Plays music, or in my case, I listen to podcasts
    Reading ebooks.  I use it a lot to read ebooks.  It is always with me, so I can read a book anywhere, such as waiting in a doctor/dentist office, at the motor vehicle registry.  And reading in bed is great as when you fall asleep, it remembers what page you were on vs that book that drops onto your face and wakes you back up while at the same time loosing your page
    The Maps app is great for finding where something is located, and plotting how to get there (not as good as having an iPhone with GPS, but still useful).  Also the satellite images make it easier to visualize where you are going.
    When connected to WiFi it can be used for Facetime when calling a friend or family member that also has an iOS device.  Seeing a loved one when they are not near can be emotionally satisfying.  You can also make skype calls.
    I use 1Password to store all my passwords.  It keeps them secure, I always have them with me, and I do not need to use the same password over and over again, or make them too simple to remember.  1Password has a built-in browser so you it can substitute the correct password for the web site you are visting without actually needing to look it up.
    1Password related but not passwords.  Because 1Password encrypts all the data it holds, I can also store sensitive information (such as medical conditions, or other information I do not want made public should my device be lost or stolen), yet always have that information with me should I need it.
    I can get the weather.  This week, I've been using an app to get high/low Tide infromation, plus sunrise information.  But getting weather info when you wake up so you can plan your day and if you need to shovel the driveway before going to work.  I find it easier to get the weather from my iOS device than it is to use my laptop or turn on the Weather Channel.
    Calclator.  2+2 = 4, but there are times you do need to get something right, and calculators are useful. They have all kinds available, including hexidecimal calculators for programmers.
    RSS newsfeed reader (I follow about 20+ feeds, including these discussions groups via RSS feeds).
    Travel services.  Most airports have WiFi, and you can get updated travel info for your flights via some speciallized travel apps.
    If you are into tracking your car mileage, gas usage, maintenance costs, etc..., there are apps for that.
    While you can watch video on your iOS device (downloaded movies, YouTube), you can also stream movies from services such as Netflix.  This can be useful when traveling, or if you are stuck in bed with a cold, or if you have lost control of the "Remote" and do not want to watch "Dancing with the Stars"
    TV related, there are apps that will give you the TV schedule for your area, so you can browse the shows on this evening.
    List.  You can keep lists, including grocery shopping lists, items to pack for a trip lists, things to do for that bathroom remodel, things you need to get before school starts, Christmas lists, etc....  NOTE:  Ideas for Christmas/Birthday/Anniversary gifts may come anytime during the year, but if you do not write them down, you may be scratching your head when the event arrives.  Putting them in a list can help you later on.
    You can get a Level app.  You may laugh, but I have actually used my iOS device to check if something was level.  It was there, and a carpenters level was not.  Not perfect, but it did what I needed at the time.
    Finding a good resturante (Yelp, Urbanspoon, etc...).  The iOS device can be very helpful in finding a good nearby place to eat when away from home, or even discovering a new play where you live to get out of that eat at the same place rut.
    That is some of the things I use my iOS device for.

Maybe you are looking for

  • How to add members in REDO group in RAC

    Hi All I need to know the syntax to add members in redolog group in RAC database. Currently i have 4 groups (2 belonging to each thread) and one member in each group. I want to multiplex. Thanks in advance

  • Besoin d'aide : Configuration d'un 2821 pour remplacer une Freebox

    Bonjour, Je souhaite remplacer complètement ma Freebox par les équipements suivants : - Un routeur Cisco 2821 équipé d'un module ADSL2+ (HWIC-1ADSL-M) J'utilise la dernière version de l'Advanced Enterprise Services, IOS version 15.1(4)M7 - Un switch

  • How to calculate "same store sales"

    Hi, What's the best way to do "same store sales" type calculations in OBIEE? The star schema I'm working from has a "sales" fact that just includes sales per product per store per day. And our "store" dimension includes a "store open date". I'm just

  • Cannot run X apps in a docker container

    Hi, I have a Dockerfile which enables me to run X apps. It works perfectly in Ubuntu, but not in Archlinux: FROM mascip/archlinux:2014.12.09 # To avoid a bug with the filesystem: https://registry.hub.docker.com/u/base/arch/ RUN sed 's/^CheckSpace/#Ch

  • How To Make A Tabular Form Field Conditionally Readonly

    Hello. I am using Apex 4.0.1. I've created a tabular form on the EMP table and have made the ENAME column a select list that is being sourced from a simple SELECT query like: select distince ename d, ename r from emp order by 1 When a user selects "K