JEE Specification Java.mail Jms EJB3 JNDI

batterycopperInternet και Εφαρμογές Web

12 Νοε 2013 (πριν από 3 χρόνια και 8 μήνες)

103 εμφανίσεις


















































JEE Specification

Java.mail

Jms

EJB3

JNDI

Jboss


Your JEE Application

Security

WAR

Tom
cat/Jetty

WAR


pe獳s潮⁂ea湳n


ㄹ㤹1


t牯瑥⁡

L潴映c潤o†

















WAR
-

Servlet Specification

Web pages, session, request parameter and security


JMS Specification
-

has been bundled into JEE.


What if I want to use web tools and JMS, JPA and not
hing.... I just want the pieces I want

and.................... nothing else and I want it to run as a WAR....


Model
-
View Controller.....


Two choices..... roll your own.... simple case.... add in JMS and Tomcat......


Alternately there is a frame
work built around WAR.... Now solutions come to us in two ways. One
way is Specification Committees.... another way is a group gets together to promote a defacto standard.
This happens in Computer Science when the standard is too complex.


Web Services

----

SOAP
-----

REST


JEE
----

Spring Framework
----




3 Choices


Tomcat


JMS


Tomcat with Spring


JEE






WAR


p浡汬⁡浯畮琠潦mC潤o

T潭捡琯Je瑴y




Index page and it is a jsp


Then I have a list page as a jsp


I have a update page as a jsp


Every jsp precompiles into a servlet th
at does the exact same thing. It takes what is in the jsp and
writes it out.


Java Server Faces (Facelets) A facelet is processed by one servlet and write the page out. This is a best
practice and is part of JEE and Spring.



JEE


EJB 3 specification

is based on the comcept
-

synonyms
---

POJO (Plain old java objects) or
bulk accessors, or Java Transfer Object JTO.


They all have something in common. All objects are defined at compile time as a set properties, getters
and setters. These are then
persisted by EJB3
---

which is Hibernate or java persistence API (JPA).


Assumption that your POJOs map to database tables at compile time. What is wrong with that.....













3 tables way with 20 columns on each. This is not likely to change.

What do we call this type of
solution normalized. General Ledger
---

application


Column Wise
-------

structures where you could not define tables.


Key Tag Value Parent


1 Name Scott Null

2 Address Tx 1








WAR

Enterprise Bean






































1)

Choose and Approach

a) Tomcat/Jetty and JMS

b) Tomcat/Jetty and Spring

c) JEE (Jboss)

2)

Get one in a row...
..


a) Get a servlet up that does “hello world”


b) Setup your development environment.

c)

Must be automatic


run build at command line. Use ant. In my tags are ant versions of
this stuff.

Session

Tag Value

Externalize Business

Methods

Clients were

Synchronous

Call
----

not block

Javascript libraries

RichFaces

Stateful Calling

Queue

Temp Queue

ci)

Run it in Web container. Go to a browser and make sure it works.

3)

Build up from here.

a) Build the html page with a text box to take in comma separated stock quotes.

b) Have it call the servlet but the servlet does nothing.

4)

Make it run synchronously.... call the stock quote and put results up

5)

Add in JMS

6)

Celebrate


Any

one who uses Java Server Faces for the front end gets 10 points on their final.

Any one who uses Java Server Faces and Rich Faces for AJAX gets another 10 ponts.