How to make inter cloud foundry calls (from app running in one PCF environment to an app running in another...












0















For a requirement, I have to make service call to an app running in PCF production environment from an app running on PCF non-production environment. All applications are developed using Spring boot. All kinds of solutions or patches are welcome. Thanks in advance.










share|improve this question

























  • You will have to call the App's Route directly and access .. There is no behind-the-loadbalancer connection unless and untill you are in to the same space

    – Arun
    Nov 26 '18 at 13:53
















0















For a requirement, I have to make service call to an app running in PCF production environment from an app running on PCF non-production environment. All applications are developed using Spring boot. All kinds of solutions or patches are welcome. Thanks in advance.










share|improve this question

























  • You will have to call the App's Route directly and access .. There is no behind-the-loadbalancer connection unless and untill you are in to the same space

    – Arun
    Nov 26 '18 at 13:53














0












0








0








For a requirement, I have to make service call to an app running in PCF production environment from an app running on PCF non-production environment. All applications are developed using Spring boot. All kinds of solutions or patches are welcome. Thanks in advance.










share|improve this question
















For a requirement, I have to make service call to an app running in PCF production environment from an app running on PCF non-production environment. All applications are developed using Spring boot. All kinds of solutions or patches are welcome. Thanks in advance.







spring-boot cloud cloudfoundry pivotal-cloud-foundry pcf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 15:09







Khushal R.K

















asked Nov 21 '18 at 15:00









Khushal R.KKhushal R.K

11




11













  • You will have to call the App's Route directly and access .. There is no behind-the-loadbalancer connection unless and untill you are in to the same space

    – Arun
    Nov 26 '18 at 13:53



















  • You will have to call the App's Route directly and access .. There is no behind-the-loadbalancer connection unless and untill you are in to the same space

    – Arun
    Nov 26 '18 at 13:53

















You will have to call the App's Route directly and access .. There is no behind-the-loadbalancer connection unless and untill you are in to the same space

– Arun
Nov 26 '18 at 13:53





You will have to call the App's Route directly and access .. There is no behind-the-loadbalancer connection unless and untill you are in to the same space

– Arun
Nov 26 '18 at 13:53












1 Answer
1






active

oldest

votes


















2














There really isn't anything Cloud Foundry specific in play here. At a high level, what you're going to do is the same as if you're accessing a service running on the same Cloud Foundry instance or even some random service running on the public Internet.



You're going to use Spring's RestTemplate to make a request to the service. The request you send will depend on the API of the service you're trying to consume. The request will go out to the service and you'll get a response. RestTemplate will help with parsing the response into a Java object and your app can go about consuming the response.



The trick to this will be network access. The consuming service will need to be able to send a request on the network and have that routed to the producing service. This may or may not be possible depending on how your company's network is set up. No one here can help you with that though. You need to talk to someone within your company, probably your Cloud Foundry operator or a network admin to confirm if that is allowed or possibly to add application security group rules or open up firewall ports.



Sorry I can't be more specific, but I hope that helps point you in the right direction.






share|improve this answer
























  • Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

    – Khushal R.K
    Nov 26 '18 at 2:07











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414831%2fhow-to-make-inter-cloud-foundry-calls-from-app-running-in-one-pcf-environment-t%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














There really isn't anything Cloud Foundry specific in play here. At a high level, what you're going to do is the same as if you're accessing a service running on the same Cloud Foundry instance or even some random service running on the public Internet.



You're going to use Spring's RestTemplate to make a request to the service. The request you send will depend on the API of the service you're trying to consume. The request will go out to the service and you'll get a response. RestTemplate will help with parsing the response into a Java object and your app can go about consuming the response.



The trick to this will be network access. The consuming service will need to be able to send a request on the network and have that routed to the producing service. This may or may not be possible depending on how your company's network is set up. No one here can help you with that though. You need to talk to someone within your company, probably your Cloud Foundry operator or a network admin to confirm if that is allowed or possibly to add application security group rules or open up firewall ports.



Sorry I can't be more specific, but I hope that helps point you in the right direction.






share|improve this answer
























  • Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

    – Khushal R.K
    Nov 26 '18 at 2:07
















2














There really isn't anything Cloud Foundry specific in play here. At a high level, what you're going to do is the same as if you're accessing a service running on the same Cloud Foundry instance or even some random service running on the public Internet.



You're going to use Spring's RestTemplate to make a request to the service. The request you send will depend on the API of the service you're trying to consume. The request will go out to the service and you'll get a response. RestTemplate will help with parsing the response into a Java object and your app can go about consuming the response.



The trick to this will be network access. The consuming service will need to be able to send a request on the network and have that routed to the producing service. This may or may not be possible depending on how your company's network is set up. No one here can help you with that though. You need to talk to someone within your company, probably your Cloud Foundry operator or a network admin to confirm if that is allowed or possibly to add application security group rules or open up firewall ports.



Sorry I can't be more specific, but I hope that helps point you in the right direction.






share|improve this answer
























  • Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

    – Khushal R.K
    Nov 26 '18 at 2:07














2












2








2







There really isn't anything Cloud Foundry specific in play here. At a high level, what you're going to do is the same as if you're accessing a service running on the same Cloud Foundry instance or even some random service running on the public Internet.



You're going to use Spring's RestTemplate to make a request to the service. The request you send will depend on the API of the service you're trying to consume. The request will go out to the service and you'll get a response. RestTemplate will help with parsing the response into a Java object and your app can go about consuming the response.



The trick to this will be network access. The consuming service will need to be able to send a request on the network and have that routed to the producing service. This may or may not be possible depending on how your company's network is set up. No one here can help you with that though. You need to talk to someone within your company, probably your Cloud Foundry operator or a network admin to confirm if that is allowed or possibly to add application security group rules or open up firewall ports.



Sorry I can't be more specific, but I hope that helps point you in the right direction.






share|improve this answer













There really isn't anything Cloud Foundry specific in play here. At a high level, what you're going to do is the same as if you're accessing a service running on the same Cloud Foundry instance or even some random service running on the public Internet.



You're going to use Spring's RestTemplate to make a request to the service. The request you send will depend on the API of the service you're trying to consume. The request will go out to the service and you'll get a response. RestTemplate will help with parsing the response into a Java object and your app can go about consuming the response.



The trick to this will be network access. The consuming service will need to be able to send a request on the network and have that routed to the producing service. This may or may not be possible depending on how your company's network is set up. No one here can help you with that though. You need to talk to someone within your company, probably your Cloud Foundry operator or a network admin to confirm if that is allowed or possibly to add application security group rules or open up firewall ports.



Sorry I can't be more specific, but I hope that helps point you in the right direction.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 25 '18 at 1:44









Daniel MikusaDaniel Mikusa

5,5661915




5,5661915













  • Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

    – Khushal R.K
    Nov 26 '18 at 2:07



















  • Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

    – Khushal R.K
    Nov 26 '18 at 2:07

















Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

– Khushal R.K
Nov 26 '18 at 2:07





Thanks Daniel, it is indeed an network issue. I will surely reach out to network admin team. I will post steps that were taken to make it work. Thank you.

– Khushal R.K
Nov 26 '18 at 2:07


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414831%2fhow-to-make-inter-cloud-foundry-calls-from-app-running-in-one-pcf-environment-t%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin