How to use Angular6 in cordaapp - corda

I want to use Angular 6 in Cordapp which is running at port 4200 and is placed under Java-Source/Src/main/Resouces directly.
Every node web app is running at http://localhost:10009/web/example/ and http://localhost:10011/web/example/.
How can I configure the node settings? I want to use Angular 6 inCordapp-Example given in docs. How can I do that? What node configuration changes need to be done?

Angular 6 would not have to be placed on the node. You would import it using a script directive in your HTML front-end.
You can see an example of doing this for Angular 1.6 here: https://github.com/corda/cordapp-example/blob/release-V3/kotlin-source/src/main/resources/exampleWeb/index.html#L28.

Related

Design asp.net web application as two separate modules for separate deployment

I'm working on a web application that consists of two separate modules. I've finished working on module 1 of the application and right now I'm starting to work on module 2. I need to find a way that allows me to deploy the two modules separately at the customer.
For example, when doing changes to module 1 I would deploy module 1 only, when adding new features in module 2 I would deploy module 2 only.
I currently have a single project in my application which includes module 1:
should I create a new project for module 2? If so, I'm not sure how I can create a link between them, as I will need to navigate from Module 1 to Module 2 using an aspx page or so.
If I let them be in the same project, would that be a good design practice? Also Is there a way to still separate between the deploys?

Tomcat or JBoss hosting 1 webapp with multiple websites

I want to have 3 websites, all with distinct public domain names but they all share a common java back-end SpringMVC server and use common static web resources like js and css files.
Rather than maintaining the UI code in 3 places, I'd rather run 1 server and deploy 1 WAR on a Tomcat8, Jboss or Wildfly cloud instance like OpenShift or AWS, but still be able configure my dns CNAME's to point to different paths on that WAR.
For example, here is where each domain would map to their respective endpoints but not have visibility of the others:
www.mydomainA.com ---> mycloudprovider.ip/sharedcontext/A
www.mydomainB.com ---> mycloudprovider.ip/sharedcontext/B
www.mydomainC.com ---> mycloudprovider.ip/sharedcontext/C
Is this possible? If so, what would be the steps to configure?
It is actually beneficial to configure 3 separate projects. They will all need to have their own application contexts, but can share a single parent POM. This will result in better load balancing performance. Also, since Amazon's pricing structure is such that it is cheaper to set up 3 micro instances than one powerful instance to run all 3 wars. Note: You can still have all 3 instances pointing to the same dataSource.
To solve the problem of duplicate webapp code, you can create a pom overlay using the maven-war-plugin. When Maven applies the overlay it will essentially apply a union of the files from your app with the files from the overlay. Any files that intersect will be used from the app rather than the overlay.
To solve the problem of duplicate java code, you can separate the common code into a new project and build a jar to use as a dependency.

Flex 4 SWFLoader - Main app detecting events from remote sub app swf

I have 2 separate Flex 4 projects, same framework but running on different servers.
1) MainApp (IP:192.168.12.113:8080)
2) SubApp (IP:192.168.10.19:5080)
I need to integrate SubApp into MainApp and I have managed to do so using a SWFLoader.
//MainApp/mainapp.mxml
<s:SWFLoader id="contentLoader"
loadForCompatibility="true"
trustContent="true"
source="http://192.168.10.19:5080/SubApp.swf"/> //Using url
Right now, I need the SubApp to notify the MainApp when a particular button is clicked so that the MainApp can perform some functions (E.g. Open/close a sliding window). How can I go about doing it?
In addition, to clarify, is this kind of setup considered as multi-versioned remote sandbox? Both applications are trust-able and should be able to access each other variables/functions.
Help is greatly appreciated. Thanks.
Since they are in a differant domain, they are sandboxed applications. You can use the following for your case
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f0d.html#WS2db454920e96a9e51e63e3d11c0bf69084-7f00

How to configure single unity container for multiple project's within an application?

Since I am new to using Unity 2.0, I need some pointer or suggestion as to how can I configure a single Unity container for multiple project within the same application?
I need to configure the container using configuration files instead of the API.
You can load different config files if you want to. This article describes how to load configuration from alternative files.

404 Error using Flash Builder 4 BlazeDS wizard

My issue this time around is trying to use the new DCD BlazeDS wizard in Flash Builder 4. If I set my project up as a combined Java/Flex app I am unable to connect to the RDS servlet using the wizard. I get a 404 error every time.
I'm certain the service is set up correctly since my app can access the exposed java classes and BlazeMonster can see the exposed services.
Is anyone else having this issue and if so has anyone found a work-around? I'd very much like to use the code generation features of the wizard for my project.
Thanks as always,
Codeflayer
You also need to make sure you have the RDSDispatchServlet setup in the web.xml config file.

Resources