Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4096430
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:02:43+00:00 2026-05-20T20:02:43+00:00

how can i deploy a app in weblogic only if it is not present

  • 0
  • how can i deploy a app in weblogic only if it is not present in it using wldeploy ant task
  • when i run ant testapp it deploys fresh everytime over existing app as far as i could see in console messages (ie in sysout).
  • i call this ant target as dependency in some other target, and i want this to run only if app is not already present in weblogic server (to be more efficient)


<target name="testapp" depends="init-wls">
<wldeploy action="deploy" verbose="true" debug="true"
name="testapp" failonerror="false"
...
source="testapp.war"/>
</target>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:02:44+00:00Added an answer on May 20, 2026 at 8:02 pm

    an interesting question. I’m not sure if wldeploy can do what you want. One approach that might work would be to use the wlconfig ant task. You could use it to get the ApplicationRuntimeMBeans and then query their ApplicationName attributes (again, with wlconfig task) to see if the application is deployed. Not super straightforward but at least you would avoid the application redeployment.

    This is just a quick idea off the top of my head so not sure if it is feasible in practice, sorry…. 🙂

    –edit: tried it out, something like this should work, the assumption here is that if we can find the MBean then it is already deployed which should be a valid assumption since these beans live under AppDeployments:

    <project name="test" default="deploy">
         <property name="domainName" value="ejbTestDomain"/>
         <property name="serverName" value="AdminServer"/>
         <property name="appName" value="ejbWebEAR"/>
         <target name="findApp">
                  <wlconfig url="t3://localhost:7001" username="weblogic" password="password_for_weblogic">
                           <query pattern="${domainName}:ServerRuntime=${serverName},Name=${appName},*,Type=ApplicationRuntime" property="app.is.deployed"/>
                  </wlconfig>
         </target>
         <target name="deploy" unless="app.is.deployed" depends="findApp">
                  <echo message="Deploying..."/>
                  <!-- deploy using wldeploy task -->
         </target>
    </project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how i can deploy an application to iphone but not run the application. is
Can you deploy a Rails3 app using Bundler's Gemfile WITHOUT running bundle install ...
Using a WinCE C# Forms app .NET3.5 on device link I can deploy fine
I have weblogic where I can deploy this java application and database where I
Can I deploy an azure application to Staging Environment, using the 1.7 SDK, if
We need to have some kind of app that we can deploy to an
I can deploy my app successfully in Debug mode for both Nokia 710 and
Could someone give me some advice on how I can deploy the Android app
I am using the gem Paperclip and now I wanted to deploy my app
I already have a deploy.rb that can deploy my app on my production server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.