Anything wrong with the code? Why both endpointFactory.getChannelName() and
endpointFactory.getFile() is null?
JGroupsFileBroadcastEndpointFactory endpointFactory = new
JGroupsFileBroadcastEndpointFactory() {
@Override
public BroadcastEndpoint createBroadcastEndpoint() throws Exception {
System.out.println("Creating JGroups File BroadcastEndpoint...");
JGroupsFileBroadcastEndpoint endpoint = new
JGroupsFileBroadcastEndpoint(
JChannelManager.getInstance(),
"jgroups-file.xml",
" jgroup_channel"
);
// Initialize the channel
endpoint.initChannel();
System.out.println("JGroups BroadcastEndpoint created
successfully");
return endpoint;
}
};
System.out.println("Channel Name=" + endpointFactory.getChannelName());
System.out.println("File=" + endpointFactory.getFile());
[cid:[email protected]]
Rahman Gunawan
SITSS Software Developer
NASA SEWP / SITSS
HALVIK Corporation
7601 Ora Glen Dr, Greenbelt, MD 20770
C: 240.444.6003
O: 301.614.5257
[email protected]<mailto:[email protected]>