Introduction To Java With WebSphere Studio Developer - Version 5.0
Introduction To Java With WebSphere Studio Developer - Version 5.0
http://www.elinkbiz.com
Notices
• The following terms are copyrights or
trademarks in US and/or other countries.
- Java
- Sun Microsystems
- CJUG
- eLink Business Innovations, Inc
http://www.elinkbiz.com
Introduction WebSphere Studio
• Based on the Eclipse Framework
– http://www.eclipse.org
• Perspectives
• Workspace
• Projects (New, Importing/Exporting Code)
• Wizards
• JDK 1.3.1 Built-in
Course provided by:
http://www.elinkbiz.com
Introduction to Java
• OO Programming Language
• Architecture & Vendor Neutral
• JDK and JRE
• Built in Support for
Threading/Synchronization, Memory
Management, Security, Exception Handling
Internationalization, and Serialization
Course provided by:
http://www.elinkbiz.com
What’s in the JDK ?
http://www.elinkbiz.com
Getting Down to Business !
• Open a Java Perspective
• Create New Project “Bank of Bob” using the
Project Wizard
• Create New Package under project
(com.bankofbob)
• Build Project based on MVC services architecture
• Create New Class (AccountImpl, SavingsImpl, &
CheckingImpl)
• Create Attribute/Field List
• Use automatic Getter/Setter Construction Course provided by:
http://www.elinkbiz.com
Getting Down to Business (cont)
• Create Interface for Account (externalized)
• Create Banking Service & Interface
• Create Test Application (what about Junit?)
• Compile the code ? What about javac ?
• Run the code !
• Using the Debugger !
http://www.elinkbiz.com
Recap on Language
• Every Object is inherited from java.lang.Object
(implicit or explicit)
• Packages
• Inheritance
• Encapsulation
• Constructors & (Destructors (none))
• Exceptions
• Static Initializers
• File Types .java, .class, and .jar
Course provided by:
http://www.elinkbiz.com
“Lets” see What’s up ?
• Applets – Client Side Browser Based
• Servlets – Server Side App Server Based
• Portlets – Server Size App Server Based
• Midlets – Cell Phone, PDA, based J2ME
http://www.elinkbiz.com
What are Applets ?
• Applets are applications with predefined
constraints
• What constraints ?
– Extends java.applet.Applet class
– Security ( loading, execution, and access)
– Interface to a Applet (init, term, start, stop)
– Launched from and HTML page usually via browser or
application applet viewer (provided with JRE)
http://www.elinkbiz.com
What are Servlets ?
• Servlets provide server side execution via
predefined interfaces (usually replacing
CGI scripts)
• What is the Interface to a Servlet ?
– (init, destroy, service, getServletConfig,
getServletInfo)
http://www.elinkbiz.com
What are Portlets ?
The newest thing in Portal Development (JCR .
- Discrete components of functionality that can be
aggregated together to become a portal dynamically.
- Apache JetSpeed reference implementation of Portal
Server (IBM Portal Server based on JetSpeed)
http://jakarta.apache.org/jetspeed
- What is the Interface into a Portlet ? To Numerous to List.
- Chattanooga Technology Council is a working JetSpeed
Site (http://www.chatc.org)
http://www.elinkbiz.com
Convert TestBank to Applet
• TestBank needs to Inherit from
java.applet.Applet
• Overload applet start() to call our Method
• Run TestBank as an Applet
http://www.elinkbiz.com
Introduction to J2EE
• What is J2EE ?
• Collection of Enterprise Services Detailed
in next slide
• File Information
– EAR -> .WAR -> .JAR -> .class
• Other types .JSP, .XML, .XSL, .XMI,
.WDSL
Course provided by:
http://www.elinkbiz.com
J2EE Components
http://www.elinkbiz.com
Open Q&A ?
http://www.elinkbiz.com
Additional References
• Eclipse Site & Plugins – Open Source Version
– http://www.eclipse.org
• IBM WebSphere Studio Site
– http://www.ibm.com/websphere (click on Studio Link)
• Sun Java JDK Site
– http://java.sun.com/j2se/1.4/index.html
– Java Security 2nd Edition – Oreilly ISBN 0-
596-00157-6
– Java Swing – Oreilly ISBN 1-56592-455-X
– Java Network Programming – Oreilly – ISBN 1-56592-
227-1 Course provided by:
http://www.elinkbiz.com