Can any one explain How to use Apache Ignite Rest API With Java in Eclipse with example?What the jetty server and its use in Apache ignite?
Ignite starts Jetty server internally to serve your requests. You should provide provide Jetty XML [1] and set it to ConnectorConfiguration.jettyPath path property. Please refer to docs for more information [2].
[1] https://apacheignite.readme.io/docs/rest-api#section-sample-jetty-xml-configuration
[2] https://apacheignite.readme.io/docs/rest-api#section-general-configuration
Related
Reaching artifacts stored in Artifactory requires some redundancy in the URL [1].
I would like to fetch artifacts using own domain [2].
Is:
https://my-domain.com/artifactory/my-project/an-artifact
Wish to be:
https://my-project.my-domain.com/an-artifact
Remarks
[1] A few consequences of this:
artifactory/ in URL is revealing what tools are used at the backend, which may (in some contexts) be considered a security breach.
Requires more to type.
Makes it harder to exchange artifactory by some other solution in the future (AKA vendor lock-in).
[2] Similarly it is done with AWS S3 buckets.
This is something that you can do with any proxy, such as Nginx or Apache, and have your own domain to redirect to the /artifactory prefix.
Seems that rule like the following one would do the job:
rewrite ^/(?!artifactory) /artifactory/$repo/$request_uri;
Add it after other rewrite rules in Nginx reverse proxy configuration generated by Artifactory.
I tried to find a way to stub calls to external services via WireMock. WireMock easily mocks any relative URL, but what if we want to intercept a REST call, which was sent from our node to some 3rd party service and return predefined response? Is there any possibility to do that?
I did a workaround by extracting the host as application configuration.
So if your application sends requests to:
http://thired-party-service.com/someEndPoint
You can extract the host as configuration param:
host=http://thired-party-service.com/
Now when you running in a test context fill the host param with same host as your WireMock server, for example:
host=http://localhost:8080/
Now you can use WireMock stubs as usual.
Yes, check out the proxying section in the docs: http://wiremock.org/docs/proxying
I'm currently deploying a spring boot 1.5.1 application to pivotal cloud foundry. The Apps manager is displaying the Spring icon but i cant configure the log level or see any of the settings. I'm getting a browser 'mix content exception'. Apps manager is trying to access /cloudfoundryapplication/info over http instead of https and the browser is blocking the request. Is there a setting to force Apps manager to only use https?
Our team encountered a similar issue. We feel it has nothing to do with the apps manager but rather as to how our app behaves.
In our case we had a bad configuration which was causing the URLS getting built as http when httpRequest.getScheme() was being called.
server.tomcat.internal-proxies: <ips other then your proxy>
Correcting this property in our case by letting it to default as defined here let the getScheme to be returned as https and there by when the call being made to /cloudfoundryapplication/info the scheme got built as https.
Also another suggestion made by one of our colleague which also resolves this issue but would not address the root cause is - fronting your application(highest precedence) with ForwardedHeaderFilter - this causes the X-FORWARDED-* headers to be available in your httpServletResquest as described here
Good day!
I have a weblogic server and an enterprise application with lots of servlets and filters. I add my servlet (in fact, it is jersey-servlet) but requests that I send to my servlet are caught by something else and I have a 404 error.
So, is there a way (may be using weblogic console) how to see which filter are applied to the request and what servlet process it?
You can use a Java profiler to trace the request inside the Weblogic server.
Just attach the profiler to the Weblogic server, enable instrumentation and run your request. You will see the code path it is going through.
Btw. 404 error means Not found, so you should verify that your servlet is correctly deployed on the server
Is it possible to use the flash.net.NetConnection object to connect to my Flash remoting enabled web application over HTTPS within Tomcat or any other servlet container?
I am using the SpiceFactory cinnamon project for amf remoting and have searched for examples of using HTTPS but see only the reference to a proxy type in the NetConnection object.
If someone could provide a reference or example that would be awesome. Or if it is not possible using the flash.net.NetConnection object are there any recommendations of how to configure HTTPS for the spicefactory cinnamon library.
According to the creator Jens Halm, it should just work out of the box.
http://www.spicefactory.org/forum/viewtopic.php?t=407
flex https works fine , if you use self signed certificate end user needs to add the public key manually to the trusted store, by directly connecting to the site using https://...
and accept the certificate.
second way is run the connection over http and do the encryption / description manually using
as3crypto - flex http://code.google.com/p/as3crypto/ and php openssl