<listener>\r
<listener-class>compbio.listeners.ContextListener</listener-class>\r
</listener>\r
+ <listener>\r
+ <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>\r
+ </listener>\r
+ <servlet>\r
+ <servlet-name>JpredWS</servlet-name>\r
+ <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>\r
+ <load-on-startup>1</load-on-startup>\r
+ </servlet>\r
+ <servlet-mapping>\r
+ <servlet-name>JpredWS</servlet-name>\r
+ <url-pattern>/JpredWS</url-pattern>\r
+ </servlet-mapping>\r
\r
<!-- Session timeout in minutes -->\r
<session-config>\r
String com = "SELECT JobID, Predictions FROM ProteinRow WHERE Protein = '" + queryProtein + "';";
System.out.println("Command: " + com);
ResultSet results = session.execute(com);
- if (results.isExhausted())
+ if (results.isExhausted())
return null;
final long queryTime = System.currentTimeMillis();
List<Row> rows = results.all();
import compbio.cassandra.CassandraNativeConnector;
import compbio.statistic.CassandraRequester;
-
-@WebService(endpointInterface = "compbio.ws.jpred.Jpred",
-targetNamespace = "http://server.ws.compbio", serviceName = "JpredWS")
+@WebService(endpointInterface = "compbio.ws.jpred.Jpred", targetNamespace = "http://server.ws.compbio", serviceName = "JpredWS")
public class JpredWS implements Jpred {
@Override