Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Oracle (BEA) Web Logic Introduction Presented by: Chunyan Fu PhD, Researcher at Ericsson [email protected] INSE 7110 Winter 2009 Agenda • Tool overview • How to install and use – A real case tutorial • Hints for the project INSE 7110 Winter 2009 Tool overview • A “Free Tool” that can be used for developing web services – Web logic server: a server that can deploy web services – Workshop: environment for development INSE 7110 Winter 2009 Web logic Server • A Java EE (5.0) application server • That provide a platform for building – Web services and many other applications, e.g. – Web application (JSP, Servlet), EJB, JDBC, JMS, RMI… • In terms of web service, it supports – XML, SOAP, WSDL, UDDI, Web service security • Java API for XML-based Web Services (JAXWS) is used – JAX-WS is a standards-based API for coding, assembling, and deploying Java Web Services INSE 7110 Winter 2009 Workshop • Built on Eclipse 3.3.2 and Web Tools Platform 2.0.3 • An extension to Eclipse • Workshop version 10.3 is supported by Windows Vista INSE 7110 Winter 2009 Installation • http://www.oracle.com/technology/software/products/ias/ bea_main.html • Accept license agreement on the top of the page • Click the link: – “Oracle Workshop for WebLogic 10.3 - Package Installer” – “Oracle Workshop for WebLogic 10.3 - Net Installer” • Sign in or register if you are new • Documentations: – – http://e-docs.bea.com/wlw/docs103/index.html INSE 7110 Winter 2009 http://e-docs.bea.com/wls/docs103/webservices.html OR How to use • A concrete example: a web service that prints – Create a web service project • • • • Create project, add to ear Create package Create a web service Add web methods: see JAX-WS annotations – Add/start web logic server • Create a domain • Start server – Deploy and test web service • Run on server • Web logic test client – See SOAP, WSDL INSE 7110 Winter 2009 Hints for the project • Server side: – a conferencing web service that implements a simplified conference focus • uses SIP stack to listen to, receive, process and send SIP messages • Client side: SIP client – Download or – Code your client using SIP stack • Use of JMF for media INSE 7110 Winter 2009 How to download SIP Stack • JSR 32 Jain SIP • API doc and .jar can be downloaded at: – http://jcp.org/aboutJava/communityprocess/mrel/jsr032/index.html – Unzip • Reference implementation .jar can be downloaded at: – http://download.java.net/communications/jain-sip/nightly/ – Click: “jain-sip-ri/”, you can find all nightly build implementations .jar – You can also find sdp implementations there… • When implementing a web service using Jain SIP stack, put the two jar files (one api, one impl) into your project: \WEB-INF\lib – jsip_api_v1.2.jar – jain-sip-ri-1.2.xx.jar • Tip: you may need log4j-xxx.jar if you always have running errors when using Jain SIP (this depends on which sip impl that you use) – http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.15/apache-log4j-1.2.15.zip INSE 7110 Winter 2009 Course Project: SDS or Web Logic ? • Oracle Web Logic • Ericsson SDS: – For developing conferencing application in IMS • Need to configure IMS first… – Can use SIP Servlet – Trigger: from SIP client or HTTP Servlet • Both need programming work – Conference client registration: register to CSCF – For developing conferencing application in a network (LAN, Internet…) – Can use SIP Stack (lower level of abstraction than SIP Servlet) – Trigger: from web logic test client or any web service that talks SOAP • The first option is provided by the tool, no need to code – Conference client registration: register to your SIP Listener (in your WS logic) • What’s in common: – Media handling: RTP/RTCP (JMF) – Conference client: SIP client that talks RTP INSE 7110 Winter 2009