How to open LiveView web in a different port other than default port-10080

How to open LiveView web in a different port other than default port-10080

book

Article ID: KB0073019

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10.x

Description

The LiveView web is not accessible on port 10080 which is the default one. The LiveView application starts successfully as seen in the console logs as below, but the issue is accessing the LiveView web on any of the browsers.

(fragment deploy): 
(fragment deploy): *** All tables have been loaded. LiveView is ready to accept client connections.  Total start time(ms): 266258 ***
(fragment deploy): 


Due to security reasons, All the browsers have blocked port 10080. How can we access the LiveView web on a port other than 10080?

Issue/Introduction

Most of the browsers like Google Chrome, Mozilla Firefox, and Apple Safari all have blocked port number 10080 due to security reasons. This article outlines the steps to run LiveView Web on a different port other than 10080 as LiveView Web is not accessible on 10080 on any browsers.

Resolution

To run the LiveView Web on another port other than 10080, create a "HOCON configuration file" of type "LiveView Client API Listener" under the project src/main/configurations folder.

Below is the sample LiveView Client API Listener configuration file created where LiveView Web would be started on 11080.

name = "sample-ClientAPIListener-document"
type = "com.tibco.ep.ldm.configuration.ldmclientapilistener"
version = "1.0.0"
configuration = {
    ClientAPIListener = {
        portNumber = 11080
    }
}


Once you have successfully created this configuration file, run the LiveView application and try accessing the LiveView Web on the specified port.  In my test my application has started LiveView Web an URL (http://localhost:11080) and I could access the same successfully.