wildfly10 add module using HTTP managment API - jboss

Is it possible to add module using wildfly HTTP management API?
I'm trying to recreate CLI command:
module add --name=com.oracle.jdbc --resources=/home/xyz/com/oracle/jdbc/main/ojdbc-7.jar

Unfortunately it's not. The module command only works on CLI and it only works if you're running the command from same server/workstation that WildFly is located on. It copies the file itself and writes the module.xml.

Related

How to run vuejs backend postgres api?

We have a server and desktop computers on the same network. I am building a business application and have not found a way to directly work with Postgresql from vuejs. I have found that I can go through an API to work with Postgresql. I have built the API and it is in its own folder within the vuejs app and I run nodemon to start. I can make a production vuejs app but ...
How do I use the API in production?
How do I have the API autostart?
Thanks
I found a node module called node-windows. And this video about node-windows: https://www.youtube.com/watch?v=1smy9yyme1Y
I moved my backend API folder to my server and followed the video to add the node module and script to my server.
The module will autostart the service.

Sharing AWS CloudHSM between two Web Applciations on WildFly

I have two web applications deployed in Wildfly 18. Both of them use AWS ClOud HSM. They work perfectly fine while used alone. But as soon request is sent to both the applications I get the error "java.lang.UnsatisfiedLinkError: Native Library XXX.so already loaded in another classloader".
There is a jar file cloudhsm.jar which internally loads the .so library. I have to use the following statement to register a new security provider
Security.addProvider(new com.cavium.provider.CaviumProvider());
The same statement is used in both the applications
I have tried configuring the provider in java.security file also. But that also doesnt work.
How should I configure the provider to be used in both the applciations.

Deploy asp.net web app on local or remote IIS using PowerShell DSC

I am unable to find any help on how to use PowerShell for DSC and deploy asp.net web app on local or remote on premises IIS.
Can you please help me with the steps or any resources?
What's your preferred method of deploying code prior to using DSC? xRobocopy was created with this scenario in mind, but if you are packaging your solution using NuGet, you could also use the PackageManagement resource.
I started working on a NuGet based config script recently but it isn't ready to publish in the gallery yet:
https://github.com/Microsoft/NuGetIISAppServerConfig/blob/master/NuGetIISAppServerConfig.ps1

set up camunda rest api

I want to use the camunda rest api (local), but I realy can't figure out how to set up the environment... .
First I downloaded the tomcat distribution from here (V. 7.2.0) and the prepackaged eclipse with BPMN 2.0 Modeler from here.
I modelled a process, startet the server (start-camunda.bat) and deployed it (copied .war to ...camunda\server\apache-tomcat-7.0.50\webapps).
It went well on local tasklist http://localhost:8080/camunda/app/tasklist/default/#/login and cockpit http://localhost:8080/camunda/app/cockpit/default/).
I also downloaded the engine-rest from "Maven Nexus Server" (Install the REST API web application). Now, if I call the engine (http://localhost:8080/engine-rest/engine), I got the following .json: [{"name":"default"}]
What to do next? I realy don't know (I'm new in camunda...)
Your setup seems to be fine. But please note that the camunda REST API is a backend which you can access with a client. Currently there doesn't exists a camunda Java REST client. So you have to implement it by your self. If you are aware of that a good starting point is the camunda REST documentation. Besides Java there exists a Javascript SDK which you could use to access the REST API.
May I suggest an alternative: use a docker image for Camunda. It's official and works like a charm. You can set it up in 5 mins tops and then use an API client like postman to access Camunda's API via http://localhost:8080/engine-rest.
I had the same problem as yours and found a docker solution much easier than installing Camunda and all related dependencies myself only having to troubleshoot them later. Here's the link to the official docker image if you're interested:
https://hub.docker.com/r/camunda/camunda-bpm-platform
Or enter these 2 commands from terminal and you'll be golden:
docker pull camunda/camunda-bpm-platform:latest
docker run -d --name camunda -p 8080:8080 camunda/camunda-bpm-platform:latest
Open URL with browser: http://localhost:8080/camunda-welcome/index.html
username/password: admin/admin

can I deploy my wsp using central admin and avoid login to development server

I need on clarification that I have a development server where according to the policy I shouldn't login and run the commands.
So, is there any way that I can deploy my solution using central admin just like as we did through power shell commands.
I search before, but I couldn't get the satisfactory answer?
If you're deploying new wsp, you can run Powershell command "Add-SPSolution -LiteralPath ". If it's an existing wsp, you should retract the existing wsp first before adding the updated wsp. You can check if the wsp either deployed or not in the Central Admin > System Settings > Manage Farm solution. You can also deploy the SP Solution(once added) in Central admin. After deploying it, make sure to restart the Timer Service. Here's how you can deploy the wsp using powershell.
you can setup powershell to run remotely and then use powershell commands to deploy the wsp.
Check this link on enabling powershell to run remotely Configure Remote PowerShell in SharePoint 2010
What kind of solution are you deploying? Is it a farm or sandboxed solution? You can deploy your solutiions via VS2010 without having to login to the server. Or are you referring to items that needs to be deployed via GAC?