public class GridCounterPortlet extends AbstractPortlet {
public static final String VIEW_jsp = "/jsp/ogsa/counter/view_counter.jsp";
// Create a URL for the counter service PRivate static final String counterUrl = "http://127.0.0.1:8080/ogsa/services/samples/counter/basic/CounterFactoryService";
public void init(PortletConfig config) throws UnavailableException { super.init(config); try { // Create a grid service handle from the service URL URL GSH = new URL(counterUrl);
// Get a reference to the CounterService Factory OGSIServiceGridLocator gridLocator = new OGSIServiceGridLocator(); Factory factory = gridLocator.getFactoryPort(GSH); GridServiceFactory counterFactory = new GridServiceFactory(factory);
// Create a new CounterService instance and get a refe