Products | Versions |
---|---|
TIBCO Live Datamart | 2.x, 10.x |
How, from a Java client, do I know my TIBCO® LiveView server is running and ready?
conn = LiveViewConnectionFactory.getConnection("lv://localhost");With:
Boolean connected = false; while (!connected) { try { if (conn = LiveViewConnectionFactory.getConnection("lv://localhost")) { connected = true; } } catch (Exception e) { connected = false; } Thread.sleep(1000); // milliseconds }This will wait, testing once each second, until the LiveView Server accepts connections.
Query exception received: com.streambase.liveview.client.LiveViewException: Unknown table 'ItemsSales' Query was closedThese are reported from the Listener callbacks:
@Override public void queryClosed(QueryClosedEvent event) { //the listener is notified when the query is closed either by the client or server System.out.println("Query was closed"); } @Override public void exceptionRaised(QueryExceptionEvent event) { //if an error occurs during your query, the listener is notified System.out.println("Query exception received: " + event.getException()); }