Scenario 1 All jax-rs annotation are applied on interface. No jax-rs annotation are applied on class. @POST @Consumes({ APPLICATION_XML }) method1(InputStream istream) @POST @Consumes({ APPLICATION_FORM_URLENCODED }) method2a(@FormParam(“”) final Pojo2 p2) -> won’t detect it as a resource method @POST @Consumes({ […]
Month: December 2015
IBM WebSphere 6.1 on Ubuntu
Install 1. install java 1.5 from oracle 2. start WAS install: cd /********/Downloads/was.cd.6100.trial.base.linux.ia32/WAS/ /********/apps/opt/java/jdk1.5.0_22/bin/java -jar setup.jar 3. WAS install window should start … Configuration export JAVA_HOME=/********/apps/opt/java/jdk1.5.0_22 export PATH=”/********/apps/opt/java/jdk1.5.0_22/bin:$PATH” cd /********/apps/opt/WebSphere/AppServer/bin mv /********/apps/opt/WebSphere/AppServer/java/bin/java /********/apps/opt/WebSphere/AppServer/java/bin/java1 ln -s $JAVA_HOME/bin/java /********/apps/opt/WebSphere/AppServer/java/bin/java ./manageprofiles.sh help -> […]
JAX-RS with Jersey
Terms resource method designator – annotation such as @GET, @PUT, @POST, @DELETE sub-resource methods – methods annotated with @Path and also with resource method designators such as @GET or @POST sub-resource locators – methods annotated with @Path but not with […]