instance of xxx.pva

jimboyjimboy Posts: 33
edited July 7 in Virtualize

I was wondering if there's a way to have two ports running on the same instance of pva file. If not what's the best approach in creating two separate ports one pointing to dev and other one is pointing to sit

Comments

  • williammccuskerwilliammccusker Posts: 528 ✭✭✭

    Hi,

    One option would be to use the HTTP Listeners inside of a message proxy to dynamically start up two ports and then create two HTTP Connections in the message proxy, one for dev using one of the listener ports and the second for sit on the second listener port.

    Here is some documentation about message proxies with information about HTTP Listeners. I couldn't find a link directly to the HTTP Listeners but I was able to find information on these two pages using find.

    https://docs.parasoft.com/display/SVC20202/Creating+Proxies
    https://docs.parasoft.com/display/SVC20202/HTTP+Configuration

    To connect one of the ports to a deployed virtual asset then in forwarding setting of the message proxy for example you might use "http://localhost:9080/assetDeploymentPath" and the message proxy will identify this as routing the message to a virtual asset and forward the request with "assetDeploymentPath" prefixed at the front of the original incoming request path.

    Hope this helps!

  • jimboyjimboy Posts: 33

    I have 3 PVA files, they are all connected to port 8080 on different services. That works fine. However, I need to configure another environment called SIT. Can those 3 PVA files connect to port 8081? (Please see below SIT1 endpoint below)

    Now, I tried to add the port 8081 in the message proxy. I have added http://172.123.23.21:8081/DSWD to the primary outgoing. I am disconnected on the following:
    1. how to define the incoming proxy listening path.
    2. how outgoing url mapped on the existing DSWD.pva (8080)
    3. how to add the other two pva files to port 8081.

    DIT1
    1. 8080/DSWD
    2. 8080/DPWH
    3. 8080/DARN
    SIT1 endpoint
    1. http://172.123.23.21:8081/DSWD
    2. http://172.123.23.21:8081/DPWH
    3. http://172.123.23.21:8081/DARN

  • williammccuskerwilliammccusker Posts: 528 ✭✭✭

    Hi,

    To make sure I understand correctly, your pva files, make outgoing client calls to port 8080? If that is the case, that its an outgoing client how would it know when to be configured to connect to the second environment SIT? Would it be that you decide to manually switch from the DIT environment to SIT? Or is there some piece of information in the incoming request to determine which is used? Would this be a fail over case where the outgoing client fails to connect to DIT then it should instead connect to SIT?

    If the desire is to be able to manually switch between DIT and SIT for an outgoing client then Environments could be used to define the connection settings for both and then you would pick which environment, DIT or SIT is active.

    https://docs.parasoft.com/display/SOAVIRT9103/Configuring+Virtualize+Environments

  • jimboyjimboy Posts: 33
    edited July 9

    let me try setting this up again.

Sign In or Register to comment.