Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Can we push more than one war in bluemix and make them run on same instance?

270007EYFU gravatar image
Question by thirunarayan  (55) | Aug 08, 2014 at 05:28 AM javaibmcloud

Hi All,

I can came across a situation were i needed to push 2 wars. In which one war was a support to another.You can think of it as a service war and any other war deployed will depend on the services provided by these was.

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
120000HBVH gravatar image
Accepted answer

Answer by SGormley (58) | Aug 08, 2014 at 08:51 AM

If you can deploy it to a Liberty Server on your own machine, you could then package the server and push that to Bluemix up as per the instructions here:

https://www.ng.bluemix.net/docs/#starters/liberty/index.html#optionsforpushinglibertyapplications

Look in the section "Liberty Servers" that describes how to get a package from your server.

Comment
Andrew Whitfield
marvin_goodman
thirunarayan

People who like this

  3   Show 2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
060001QHD8 gravatar image KrisKobylinski (5283)   Aug 08, 2014 at 02:02 PM 0
Share

I would follow this advise. Deploy both wars to one server. Package the server and push it to Bluemix.

270000XYBA gravatar image Ram Vennam (2928)   Aug 11, 2014 at 02:02 PM 0
Share

Creating an ear file with both wars is also an option

270000XYBA gravatar image

Answer by Ram Vennam (2928) | Aug 08, 2014 at 09:41 AM

Any reasons for not running them as separate apps?

Comment
lmsurprenant
thirunarayan

People who like this

  2   Show 3   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007EYFU gravatar image thirunarayan (55)   Aug 08, 2014 at 11:21 AM 0
Share

When i was pushing 1 war the buildpack runtime environment setup is done like it downloads jdks etc etc. And the same thing again happens when i want to push another war. So should i create two diff project and push them. I dont know what to do cant i push the another war into the same container

060000FMTY gravatar image lmsurprenant (1593) ♦   Aug 09, 2014 at 08:28 AM 0
Share

This is the design of Cloud Foundry (and thus Bluemix); each application gets its own container and runtime. Pushing the war files as two separate apps has some nice properties like being able to scale and update the components separately.

270000XYBA gravatar image Ram Vennam (2928)   Aug 09, 2014 at 02:10 PM 0
Share

Another option for having one container for both wars is to package them inside an ear file.

http://docs.oracle.com/javaee/6/tutorial/doc/bnaby.html

Each war should have its own /context-root (append at the end or your app url), depending on how you packaged it

120000MTDK gravatar image

Answer by Amardeep Bhattal (43) | Sep 09, 2014 at 04:28 AM

In one of the associated answers : "This is the design of Cloud Foundry (and thus Bluemix); each application gets its own container and runtime."

It doesn't have to be that war's are pushed one at a time onto a different server. It's possible that an "app" is a number of co-operating wars (depends on what you consider your app to be). I'd also like to be able to push multiple wars from a single directory. This would be a nice enhancement.

But as mentioned, the options for now are separate wars on separate server instances, package the wars in an ear file and push the ear, push a packaged server, or there is also the alternative to push from a server directory with the war's in Liberty's apps or dropins folder.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007EYFU gravatar image thirunarayan (55)   Sep 09, 2014 at 01:36 PM 0
Share

Thank for your response For now I have user packaged server to push multiple wars it worked fine.

Follow this question

No one has followed this question yet.

Answers

Answers & comments

Related questions

WAs Liberty Buildpack and MongoLab Mongo DB Connection problem... Help! 1 Answer

MQLight - Not able to get connection in Java 2 Answers

How to integrate Mobile app and Web app, 2 Answers

Issue faced while uploading the war file. The project was developed in Netbeans and is needed to deploy in bluemix. the following error is genrated while upoading 1 Answer

How fast is Watson speech to text and why is it timing out? 4 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges