/*
 * JBoss, Home of Professional Open Source
 * Copyright 2005, JBoss Inc., and individual contributors as indicated
 * by the @authors tag.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the JBPM BPEL PUBLIC LICENSE AGREEMENT as
 * published by JBoss Inc.; either version 1.0 of the License, or
 * (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
package org.jboss.soa.bpel.samples.quickstart.ticket;

import javax.jws.WebService;

/**
 * @author Alejandro Guizar
 * @version $Revision: 288 $ $Date: 2006/09/27 03:53:07 $
 */
@WebService(endpointInterface = "org.jboss.soa.bpel.samples.quickstart.ticket.TicketIssuer", targetNamespace = "http://jbpm.org/examples/ticket", serviceName = "TicketService", portName = "TicketIssuerPort")
public class TicketIssuer_Impl implements TicketIssuer {

	private static int currentSession = 1;

	public int createTicket() {
		synchronized (TicketIssuer_Impl.class) {
			return currentSession++;
		}
	}
}
