I have an application which serves a central hub for multiple other applications.
So my Vendor folder contains bundles, that are actually the main bundles for other applications.
Now from my central application I want to load a page from one of these main bundles.
The problem is that the default entity manager is used in these main bundles. Now that they are loaded in my central app, it should use the non-default manager (which has been properly configured in config.yml)
How do I tell these main bundles to now use the corresponding entity manager?
Related
Looking for some help/suggestion to integrate SPA.
Our parent app is an ember app, which is having multiple child routes (i.e. combination of ember engines + React ).
How can we support this using micro front end/SPA?
Currently these are deployed to VSI’s however we plan to deploy them to cloud soon.
Thanks in advance,
we tried using SPA framework with our app, however since we have parent app as ember and few child too as ember. I am trying to use ember as one of the child application with single spa, however I am unable to bring child app up.
we are configuring ember app as single-spa micro frontend and updated app Root UI to launch on specific route pattern. Ember App uses global variables, currently our app UI is the main application which is already in memory so when launching another ember app using single spa lib overwrites existing Global variables like Ember, requires which breaks both the applications. According to Single SPA we need use – Single SPA Leaked Globals module https://github.com/single-spa/single-spa-leaked-globals ,which is of no use for us since we already loaded landing ui App (mounted).
I want to be able to able to inject some configurations from each app, and then run some code after all apps are loaded to load a service with all the provided configurations from all apps. How do I go about implementing that ?
Could you elaborate more the intention of loading all the config from each app? IMO Django by default has an ability to centralize the configuration in the one particular main app inside the project, and of course, it's configurable by mean you can store the configuration outside the project, using env_vars for instance.
TWITTER_SECRET = os.getenv('TWITTER_SECRET')
Some reference might help:
Django settings
The Twelve-Factor APP
We have an existing eclipse RCP application that works as a standalone product. At a high level, this product is used to configure a image specification using its UI and we can export a sample Image based on these configuration.
Now we are developing another web application that has several modules and one module of it is to develop something that our eclipse RCP application does.
Just to provide a QUICK integration of the RCP application for demo purpose, I plan to run the RCP application separately in the server machine and expose its static functionality as a RESTful webservice. So the module shall make a RESTful call to the RCP application.
Now just to begin with I tried to embed a jetty server for hosting the REST service during the start of RCP application like below
But the thing is after the Jetty server is started I am not able to access the TestWebService using the path i configured. So I am confused if this is the right approach to have a RESTful service inside a RCP application. Please note that iam able to hit the server with http://localhost:1002, but not the service.
Following is the console log when i hit on http://localhost:1002/hello/test:
It's a really weird architecture you're experimenting with.
I mean to write an RCP-application which listens on a port and offers REST services on it; this could lead to further obstacles.
Instead I would seperate it into two software artifacts: an RCP-app and a web-application (.war).
You could extract a business-logic jar (It can be an OSGi plug-in if necessary) contaning your image manipulation logic.
Then include this plug-in/.jar as a dependency in the webapp and offer out it's functionalities thru a Web-container (Tomcat, GlassFish, etc.)
So your other (third) application will connect to the Web-services offered by this .war file.
opt.1) If you need a single running instance (because of database or other shared resource) then your RCP-app will have to use this REST service too.
opt.2) If not then simple compile the .jar/plug-in containing the business-logic into your RCP-app.
Is it possible to consume web-services and/or use own libraries (and thus custom objects) into a jBPM workflow? Eventually, could I expose this process as (another) web-service?
You can use web services in jBPM, at least in version 5 and 6. I believe the tooling support in eclipse is minimal or non-existent however. Don't know about the support in web console. See Maciej's blog for details on that.
It is possible to use custom objects and own libraries in jBPM. You just have to make the libraries available to the jBPM runtime. If you're using your own application where you run jBPM, just include the libraries in the CLASSPATH. For the jBPM console, you will have to include the libraries in the lib/ directory of the war, or inside WEB-INF/classes if you have .class files.
Not sure if there is out of the box support for exposing jBPM services over web service. If all you want to do is orchestrate other web services and expose yourself as a web service, you could consider using a BPEL engine rather, like Apache ODE
jBPM can call web services and contain custom libraries. A jBPM project is a Maven project, so you can add dependencies to your POM to include custom libraries. You can call web services or execute any custom Java code you want by creating a "Domain-specific process." There is an example in the documentation about how to do that: http://docs.jboss.org/jbpm/v6.0.1/userguide/jBPMDomainSpecificProcesses.html
Also, if you deploy your projects into the jBPM web console, they can be started and controlled by a REST API. So yes, they are exposed as a REST web service. See this page in the documentation about the REST API: http://docs.jboss.org/jbpm/v6.0.1/userguide/jBPMRemoteAPI.html
For example, the following REST call can initiate a process (taken from the link above):
[POST] /runtime/{deploymentId}/process/{processDefId}/start
So I have a Sitecore (CMS) web application, using Spring.Net for DI. Works great, except some small problems with a custom LinkProvider.
Since a LinkProvider is being created by Sitecore very early (apparently before Spring loads) any dependencies I am trying to inject are not being injected at instantiation of the LinkProvider object (it's a singleton managed by the Sitecore instance).
So, I need to load the Spring container earlier in the pipeline, which I think I can do thanks to some help from John West - but after inspecting the Spring HttpModule, I am not sure about how to do it….does anyone have experience in this area?
Turns out loading the container wasn't the problem....the items in the CMS are created via the CMS platform, so instantiating dependencies in them required the manual syntax used by the framework.