Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created June 20, 2013 22:58
Show Gist options
  • Save rotty3000/5827519 to your computer and use it in GitHub Desktop.
Save rotty3000/5827519 to your computer and use it in GitHub Desktop.
osgi + SRC + Liferay webservice
package com.liferay.test.jsonwebservice;
import aQute.bnd.annotation.component.Component;
import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
/**
* @author Raymond Augé
*/
@Component(
immediate=true,
provide=Object.class
)
@JSONWebService
public class TestJSONWebService {
public String doSomethingInteresting() {
return "Something interesting!";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment