01: /*
02: * Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
03: *
04: * Redistribution and use in source and binary forms, with or without
05: * modification, are permitted provided that the following conditions are met:
06: *
07: * * Redistributions of source code must retain the above copyright notice,
08: * this list of conditions and the following disclaimer.
09: *
10: * * Redistributions in binary form must reproduce the above copyright notice,
11: * this list of conditions and the following disclaimer in the documentation
12: * and/or other materials provided with the distribution.
13: *
14: * * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
15: * may be used to endorse or promote products derived from this software without
16: * specific prior written permission.
17: *
18: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28: * THE POSSIBILITY OF SUCH DAMAGE.
29: */
30: package partnerservices;
31:
32: import javax.ejb.SessionBean;
33: import partnerservices.callback.ReservationCallbackProviderBean;
34:
35: public class VehicleReservationPortType_Impl implements
36: partnerservices.VehicleReservationPortType, SessionBean {
37:
38: javax.ejb.SessionContext context;
39:
40: public void reserveVehicle(javax.xml.soap.SOAPElement itinerary)
41: throws java.rmi.RemoteException {
42: String uniqueID = PartnerUtils.getUniqueID(itinerary);
43: PartnerUtils
44: .sendJMSMessageToReservationCallbackProviderDestination(
45: ReservationCallbackProviderBean.VEHICLE_RESERVATION,
46: uniqueID);
47: }
48:
49: public boolean cancelVehicle(javax.xml.soap.SOAPElement itinerary)
50: throws java.rmi.RemoteException {
51: boolean _retVal = false;
52: return _retVal;
53: }
54:
55: /**
56: * @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext)
57: */
58: public void setSessionContext(javax.ejb.SessionContext aContext) {
59: context = aContext;
60: }
61:
62: /**
63: * @see javax.ejb.SessionBean#ejbActivate()
64: */
65: public void ejbActivate() {
66: }
67:
68: /**
69: * @see javax.ejb.SessionBean#ejbPassivate()
70: */
71: public void ejbPassivate() {
72: }
73:
74: /**
75: * @see javax.ejb.SessionBean#ejbRemove()
76: */
77: public void ejbRemove() {
78: }
79:
80: /**
81: * See section 7.10.3 of the EJB 2.0 specification
82: * See section 7.11.3 of the EJB 2.1 specification
83: */
84: public void ejbCreate() {
85: }
86: }
|