private static final String HEAD = "0-queueStart";
private static final String TAIL = "0-queueEnd";
public void createQueue() throws AccessException, RemoteException, NotBoundException, InterruptedException {
Node front = new Node(HEAD, -1); // create the head Node
Node end = new Node(TAIL, -1); // create the end Node
Node dmy = new Node("0-dummy",-1); // create a dummy Node
front.setNext("0-dummy");
end.setNext("0-dummy");
dmy.setNext(null);
}