![Red Hat Application Server Manual Download Page 279](http://html.mh-extra.com/html/red-hat/application-server/application-server_manual_1427406279.webp)
Chapter 39. How to Migrate the New World Cruises Application to JOnAS
271
// Get our port interface
AirPack.AirClientGenClient.AirService service =
new AirPack.AirClientGenClient.AirService_Impl();
AirPack.AirClientGenClient.AirServiceServantInterface port =
service getAirServiceServantInterfacePort();
// Get the stub and set it to save the HTTP log.
AirPack.AirClientGenClient.AirServiceServantInterface_Stub stub =
(AirPack.AirClientGenClient.AirServiceServantInterface_Stub) port;
java.io.ByteArrayOutputStream httpLog =
new java.io.ByteArrayOutputStream();
stub._setTransportFactory
(new com.sun.xml.rpc.client.http.HttpClientTransportFactory(httpLog));
// Get the end point address and save it for the error page.
String endPointAddress = (String)
stub._getProperty(stub.ENDPOINT_ADDRESS_PROPERTY);
request.setAttribute("ENDPOINT_ADDRESS_PROPERTY", endPointAddress);
by
// Get our port interface
AirService_pkg.AirService service = new AirService_pkg.AirServiceLocator();
AirService_pkg.AirServiceServantInterface port =
service getAirServiceServantInterfacePort();
Additionally, the exception:
throw new com.sun.xml.rpc.client.ClientTransportException(null,
new Object[] {e});
is replaced by:
throw new Exception(e);
39.2.3. Web Application
Finally, create the web application (
jonas-web.xml
) and reuse the
web.xml
that is in
Part2_site.zip
. Then, build the web application, which contains:
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/jonas-web.xml
WEB-INF/lib/
WEB-INF/lib/CruiseManager.jar
WEB-INF/classes/
WEB-INF/classes/AirService_pkg/
WEB-INF/classes/AirService_pkg/AirServiceServantInterface.class
WEB-INF/classes/AirService_pkg/AirServiceServantInterfaceBindingStub.class
WEB-INF/classes/AirService_pkg/AirService.class
WEB-INF/classes/AirService_pkg/AirServiceLocator.class
PalmTree.jpg
aboutus.jsp
air_icon.gif
airbook.jsp
airclient.jsp
airdates.jsp
airdone.jsp
Summary of Contents for Application Server
Page 1: ...Red Hat Application Server JOnAS User Guide ...
Page 8: ......
Page 22: ...14 Chapter 1 Java Open Application Server JOnAS a J2EE Platform ...
Page 58: ...50 Chapter 3 JOnAS Configuration ...
Page 66: ...58 Chapter 5 JOnAS Class Loader Hierarchy ...
Page 78: ...70 Chapter 6 JOnAS Command Reference ...
Page 80: ......
Page 86: ...78 Chapter 7 Developing Session Beans ...
Page 136: ...128 Chapter 9 Developing Message Driven Beans ...
Page 142: ...134 Chapter 10 Defining the Deployment Descriptor ...
Page 148: ...140 Chapter 11 Transactional Behavior of EJB Applications ...
Page 158: ...150 Chapter 14 EJB Packaging ...
Page 162: ...154 Chapter 15 Application Deployment and Installation Guide ...
Page 164: ......
Page 176: ...168 Chapter 18 WAR Packaging ...
Page 178: ......
Page 184: ...176 Chapter 20 Defining the Client Deployment Descriptor ...
Page 186: ...178 Chapter 21 Client Packaging ...
Page 188: ......
Page 192: ...184 Chapter 23 EAR Packaging ...
Page 194: ......
Page 200: ...192 Chapter 24 JOnAS Services ...
Page 204: ...196 Chapter 25 JOnAS and the Connector Architecture ...
Page 222: ...214 Chapter 27 Ant EJB Tasks Using EJB JAR ...
Page 234: ...226 Chapter 29 Web Services with JOnAS ...
Page 236: ......
Page 260: ...252 Chapter 34 How to use Axis in JOnAS ...
Page 270: ...262 Chapter 36 Web Service Interoperability between JOnAS and BEA WebLogic ...
Page 296: ......