Sei sulla pagina 1di 17
Introduction to Java using WebSphere Studio Application Developer 5.0 G Christopher Matthews
Introduction to Java using WebSphere Studio Application Developer 5.0 G Christopher Matthews
Introduction to Java using WebSphere Studio Application Developer 5.0 G Christopher Matthews
Introduction to Java using WebSphere Studio Application Developer 5.0 G Christopher Matthews

Introduction to Java using WebSphere Studio Application Developer 5.0

G Christopher Matthews

email:cmatthews@elinkbiz.com

Course provided by:

http://www.elinkbiz.com

Notices • The following terms are copyrights or trademarks in US and/or other countries. -
Notices • The following terms are copyrights or trademarks in US and/or other countries. -
Notices • The following terms are copyrights or trademarks in US and/or other countries. -
Notices • The following terms are copyrights or trademarks in US and/or other countries. -

Notices

• The following terms are copyrights or trademarks in US and/or other countries.

- Java

- Sun Microsystems

- CJUG

- eLink Business Innovations, Inc

Course provided by:

http://www.elinkbiz.com

Introduction WebSphere Studio • Based on the Eclipse Framework – http://www.eclipse.org • Perspectives • Workspace
Introduction WebSphere Studio • Based on the Eclipse Framework – http://www.eclipse.org • Perspectives • Workspace
Introduction WebSphere Studio • Based on the Eclipse Framework – http://www.eclipse.org • Perspectives • Workspace
Introduction WebSphere Studio • Based on the Eclipse Framework – http://www.eclipse.org • Perspectives • Workspace

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
Introduction to Java • OO Programming Language • Architecture & Vendor Neutral • JDK and
Introduction to Java • OO Programming Language • Architecture & Vendor Neutral • JDK and
Introduction to Java • OO Programming Language • Architecture & Vendor Neutral • JDK and

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 ? *Illustration copyright of Sun Microsystems. Course provided by: http://www.elinkbiz.com
What’s in the JDK ? *Illustration copyright of Sun Microsystems. Course provided by: http://www.elinkbiz.com
What’s in the JDK ? *Illustration copyright of Sun Microsystems. Course provided by: http://www.elinkbiz.com
What’s in the JDK ? *Illustration copyright of Sun Microsystems. Course provided by: http://www.elinkbiz.com

What’s in the JDK ?

What’s in the JDK ? *Illustration copyright of Sun Microsystems. Course provided by: http://www.elinkbiz.com

*Illustration copyright of Sun Microsystems.

Course provided by:

http://www.elinkbiz.com

Getting Down to Business ! • Open a Java Perspective • Create New Project “Bank
Getting Down to Business ! • Open a Java Perspective • Create New Project “Bank
Getting Down to Business ! • Open a Java Perspective • Create New Project “Bank
Getting Down to Business ! • Open a Java Perspective • Create New Project “Bank

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
Getting Down to Business (cont) • Create Interface for Account (externalized) • Create Banking Service
Getting Down to Business (cont) • Create Interface for Account (externalized) • Create Banking Service
Getting Down to Business (cont) • Create Interface for Account (externalized) • Create Banking Service

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 !

Course provided by:

http://www.elinkbiz.com

Recap on Language • Every Object is inherited from java.lang.Object (implicit or explicit) • Packages
Recap on Language • Every Object is inherited from java.lang.Object (implicit or explicit) • Packages
Recap on Language • Every Object is inherited from java.lang.Object (implicit or explicit) • Packages
Recap on Language • Every Object is inherited from java.lang.Object (implicit or explicit) • Packages

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 –
“Lets” see What’s up ? • Applets – Client Side Browser Based • Servlets –
“Lets” see What’s up ? • Applets – Client Side Browser Based • Servlets –
“Lets” see What’s up ? • Applets – Client Side Browser Based • Servlets –

“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

Course provided by:

http://www.elinkbiz.com

What are Applets ? • Applets are applications with predefined constraints • What constraints ?
What are Applets ? • Applets are applications with predefined constraints • What constraints ?
What are Applets ? • Applets are applications with predefined constraints • What constraints ?
What are Applets ? • Applets are applications with predefined constraints • What constraints ?

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)

Course provided by:

http://www.elinkbiz.com

What are Servlets ? • Servlets provide server side execution via predefined interfaces (usually replacing
What are Servlets ? • Servlets provide server side execution via predefined interfaces (usually replacing
What are Servlets ? • Servlets provide server side execution via predefined interfaces (usually replacing
What are Servlets ? • Servlets provide server side execution via predefined interfaces (usually replacing

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)

Course provided by:

http://www.elinkbiz.com

What are Portlets ? The newest thing in Portal Development (JCR . - Discrete components
What are Portlets ? The newest thing in Portal Development (JCR . - Discrete components
What are Portlets ? The newest thing in Portal Development (JCR . - Discrete components
What are Portlets ? The newest thing in Portal Development (JCR . - Discrete components

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)

Course provided by:

http://www.elinkbiz.com

Convert TestBank to Applet • TestBank needs to Inherit from java.applet.Applet • Overload applet start()
Convert TestBank to Applet • TestBank needs to Inherit from java.applet.Applet • Overload applet start()
Convert TestBank to Applet • TestBank needs to Inherit from java.applet.Applet • Overload applet start()
Convert TestBank to Applet • TestBank needs to Inherit from java.applet.Applet • Overload applet start()

Convert TestBank to Applet

• TestBank needs to Inherit from java.applet.Applet

• Overload applet start() to call our Method

• Run TestBank as an Applet

Course provided by:

http://www.elinkbiz.com

Introduction to J2EE • What is J2EE ? • Collection of Enterprise Services Detailed in
Introduction to J2EE • What is J2EE ? • Collection of Enterprise Services Detailed in
Introduction to J2EE • What is J2EE ? • Collection of Enterprise Services Detailed in
Introduction to J2EE • What is J2EE ? • Collection of Enterprise Services Detailed in

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 Illustration copyright Sun Microsystems Course provided by: http://www.elinkbiz.com
J2EE Components Illustration copyright Sun Microsystems Course provided by: http://www.elinkbiz.com
J2EE Components Illustration copyright Sun Microsystems Course provided by: http://www.elinkbiz.com

J2EE Components

J2EE Components Illustration copyright Sun Microsystems Course provided by: http://www.elinkbiz.com

Illustration copyright Sun Microsystems

Course provided by:

http://www.elinkbiz.com

Open Q&A ? Course provided by: http://www.elinkbiz.com
Open Q&A ? Course provided by: http://www.elinkbiz.com
Open Q&A ? Course provided by: http://www.elinkbiz.com
Open Q&A ? Course provided by: http://www.elinkbiz.com

Open Q&A ?

Course provided by:

http://www.elinkbiz.com

Additional References • Eclipse Site & Plugins – Open Source Version – http://www.eclipse.org • IBM
Additional References • Eclipse Site & Plugins – Open Source Version – http://www.eclipse.org • IBM
Additional References • Eclipse Site & Plugins – Open Source Version – http://www.eclipse.org • IBM
Additional References • Eclipse Site & Plugins – Open Source Version – http://www.eclipse.org • IBM

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 2 nd Edition – Oreilly

596-00157-6

ISBN 0-

– Java Swing – Oreilly ISBN 1-56592-455-X

– Java Network Programming – Oreilly – ISBN 1-56592-

227-1

Course provided by:

http://www.elinkbiz.com