I have created an xPages application which uses a lot of server side javascript code functions located in a server side javascript library.
Now I have some java cod
You can create a value binding,
ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{javascript:getData()}"); System.out.println(vb.getValue(FacesContext.getCurrentInstance()).toString());
This would call the getData() method from your SSJS library.
getData()