package tibco;
import com.tibco.tibrv.*;
import java.util.;
public class tibrvserver implements TibrvMsgCallback /, TibrvTimerCallback /
{
String service = "7522:7523"; / Two-part service parameter for direct
communication. To use ephemeral port
specify in the form "7522:" /
String network = null;
String daemon = null;
long status_frq = 0; / Default frequency 0 for no status
display while sending and receiving. */
long requests = 0;
double server_timeout = 120;
static String request_subject;
static String query_subject = "TIBRV.LOCATE";
TibrvTransport transport;
TibrvTimer timer;
TibrvMsg reply_msg;
TibrvMsg response_msg;
int x;
int y;
int sum;
boolean msg_received = true;
boolean event_dispatched;
public tibrvserver(String... args)
{
// parse arguments for possible optional
// parameters.
int i = get_InitParams(args);
// open Tibrv in native implementation
try
{
/*
When using IPM, there are 3 ways to provide configuration parameters:
1) Using the new Tibrv.setRVParameters API.
2) Calling Open with the pathname of a configuration file.
3) Placing a "tibrvipm.cfg" configuration file somewhere in PATH.
Uncomment the following line to test approach 2):
Tibrv.open(".\\tibrvipm.cfg");
NOTE: Add *only* the Rendezvous IPM jar file to your classpath to use IPM.
*/