278N/A/*
278N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
278N/A *
278N/A * Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.
278N/A *
278N/A * The contents of this file are subject to the terms of either the GNU
278N/A * General Public License Version 2 only ("GPL") or the Common Development
278N/A * and Distribution License("CDDL") (collectively, the "License"). You
278N/A * may not use this file except in compliance with the License. You can
278N/A * obtain a copy of the License at
278N/A * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
278N/A * or packager/legal/LICENSE.txt. See the License for the specific
278N/A * language governing permissions and limitations under the License.
278N/A *
278N/A * When distributing the software, include this License Header Notice in each
278N/A * file and include the License file at packager/legal/LICENSE.txt.
278N/A *
278N/A * GPL Classpath Exception:
278N/A * Oracle designates this particular file as subject to the "Classpath"
278N/A * exception as provided by Oracle in the GPL Version 2 section of the License
5680N/A * file that accompanied this code.
278N/A *
5680N/A * Modifications:
5680N/A * If applicable, add the following below the License Header, with the fields
5680N/A * enclosed by brackets [] replaced by your own identifying information:
278N/A * "Portions Copyright [year] [name of copyright owner]"
278N/A *
278N/A * Contributor(s):
2363N/A * If you wish your version of this file to be governed by only the CDDL or
618N/A * only the GPL Version 2, indicate your decision by adding "[Contributor]
844N/A * elects to include this software in this distribution under the [CDDL or GPL
2363N/A * Version 2] license." If you don't indicate a single choice of license, a
278N/A * recipient has the option to distribute your version of this file under
278N/A * either the CDDL, the GPL Version 2 or to extend the choice of license to
2899N/A * its licensees as provided above. However, if you add GPL Version 2 code
2899N/A * and therefore, elected the GPL Version 2 license, then the option applies
5680N/A * only if the new code is made subject to such option by the copyright
3351N/A * holder.
278N/A */
278N/A
278N/Apackage remoteview;
278N/A
import javax.ejb.Remote;
import java.util.concurrent.Future;
@Remote
public interface Hello {
String hello();
Future<String> helloAsync();
Future<String> asyncBlock(int seconds);
void fireAndForget();
Future<String> asyncThrowException(String exceptionType);
Future<String> asyncCancel(int seconds) throws Exception;
void throwException(String exceptionType);
}