How to create a .war file in JDeveloper 11g? - ide

How can I create a .war file of an application in JDeveloper 11g?

Please refer to "Oracle Fusion Middleware Java EE Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1.4.0) - 8 Deploying an ADF Java EE Application". This should have all the information you need to create WAR deployment profiles for your application.

you can create a war file for an UI application. Click on the application, select project properties and navigate to the deployments tab. Select the type of deployment as WAR and add the dependencies.

simplest way is just right click on the UI project and hit deployment. it will deploy with a default profile which is good unless you have some specific requirements

Related

SAP libraries in Mule domain

I'm going to develop couple of Mule applications that will use SAP connector so I'd like to keep SAP libraries (sapjco3.jar, sapidoc3.jar and native sapjco3.dll) in the Mule domain however I'm struggling with how to export sapjco3.dll.
I'm not using MVN and I tried to place sapjco3.dll to the project /lib folder, also to src/main/domain/lib and src/main/resources/lib folder ... but it seems that Mule Eclipse plugin always ignores it when exporting the domain as "Anypoint Studio Project to Mule Deployable Archive".
Are there any best practises how to organise this in the domain ?
I am not sure how to organize these in the project when your exporting from Studio. But instead of keeping these jar files as part of the project, you can keep in the mule standalone server in the below locations
--> $MULE_HOME/lib/user
--> $MULE_HOME/lib/native
for further details, refer the mule documentation
https://docs.mulesoft.com/mule-user-guide/v/3.7/mulesoft-enterprise-java-connector-for-sap-reference

Multiple .war files in a single IBM MobileFirst Server 6.3?

How does MobileFirst Server update a single WAR file? does it update the existing or add with new version? can we have multiple war files with same application versions?
In an IBM MobileFirst Development environment (= Eclipse Studio plug-in or CLI tool), after any change made to files that reside in the your-project\server folder, an updated .war file is generated for you and is automatically being re-deployed to the server. You could say that the existing .war file is replaced with the new .war file.
In a QA/UAT/Production environment (= WebSphere Full profile/Liberty profile with IBM MobileFirst Server running on top of it), you as the person who administers the application server must re-deploy the updated .war file by either manually replacing the file or by using the IBM-provided Ant task scripts. As in the development environment, this action also replaces the existing .war with the new .war file.
A MobileFirst Server is able to run multiple projects (.war files) at the same time.
It is not clear from the question what do you mean by "can we have multiple war files with same application versions?"
If you mean multiple .war files of the same project, each being an exact replica of the other - it sounds useless to me, but as long as each .war file is given a different context root in the server.xml file, you should be able to do that.
If that is not what you mean, well, take the time to better explain yourself.
Before that, read the documentation: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.installconfig.doc/topics/c_install_config.html

Can i deploy more than one war files in a Mobile First (Worklight) server?

I have installed Mobile first Server (not the development server that comes with eclipse)
I have created a project in eclipse with 2 applications. Then i deployed the war file using the configuration tool. And finally i uploaded the wlapp files using the worklight web console. Everything is ok but i have one question:
Should I deploy a different war each time i create an application in a different project in eclipse? Should i create all apps under the same project, so no other war should be deployed? How does this work?
Yes you can deploy different war files so MobileFirst runtimes in the same application server. The context root of course must be different for each war.
In the MobileFirst console you will see the different runtimes deployed in your application server. Then for deploying the applications/adapters you have to select one runtime.
If you put applications under a project in Eclipse you could deploy the applications under another project but only in some circumstances (several projects using the same security tests for example or no security defined). But it is better to deploy all the applications on the project where they are created. Because for example you could reference in your application security tests or push notifications that don't exist in the runtime where they are deployed.

Mule deployment based on Jenkins Jobs

I have a Zip file exported by Mule Studio. Need to deploy it on Mule Server using Jenkin Jobs. Please provide the Steps.
I am having mule enterprise standalone 3.3.2
Mule apps deployment apps is just as simple as most the other container ones. Just copy the zip to an APP folder. If you have an scp tool, there you go.
Of course this only applies to the community edition, enterprise edition is bundled with more sophisticated mechanisms of monitoring/management.
Agree with Victor here, however, you can use the MMC agent REST APIs also to deploy the apps directly to the mule platform which will also add the build into the repository.
You just need to look for an option how to place the zip in the $MULE_HOME/apps.

How to create worklight project in eclipse dynamically?

I googled about how to create eclipse project dynamically, but most of them explained about creating Java projects. I wants to create worklight project programatically. Any help would be appreciated.
You cannot do this with Worklight 6.0 and 6.1. However the next release of Worklight, v6.2, will provide a CLI that will allow you to create and manage projects from command line without using Worklight Studio.
http://www.websphereusergroup.org/go/article/view/articles/265479/impact_2014:_mobile_strategy_and_ibm_worklight_6.2