UNSOLVED

sree31

updated

16 years ago

S

sree31

1 Message

0

2166

April 27th, 2010 07:00

Centera Java SDK registerForAllEvents

Hi,

I am using Centera Java SDK (3.2p4) to implement Event Handling for Centera.

As part of it I am writing all the events to a file.

The problem is that No events are getting logged  after few seconds.

Even I tried printing the Events to Console instead of file, I am unable to get the events from the stream registered with SDK.

Need Help in understanding the SDK API,

Method which  I am using to log the events

private void processEvents() {

// TODO Auto-generated method stub

try {

thePool = new FPMonitor( centeraConnectionString);  // Initialized with Centera IP and Credentials. This is working fine and able to get the FPMonitor

// 2. Register for events

thePool.registerForAllEvents(new FileOutputStream(new File("CenteraEventsLog.xml")));

while(true){}

}

catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

looking for suggestions to resolve this.

Thanks in advance..