Beruflich Dokumente
Kultur Dokumente
Integrated Learning
environment over internet
Anshu Veda
Prajakta Kalekar
Shruti Mahambre
The Client
This project has been sponsored by
Intel
EJB
Session Beans (verb)
Model business processes. They represent actions
Entity Beans (noun)
Model Business data – They are data object, java objects that cache database
information
EJB Container
House enterprise beans and make them available for clients to invoke remotely
Provide an environment in which enterprise beans can run
“Invisible middlemen”
EJB Architecture
Basic Terminology
CMP – Container Managed Persistence
EJB container takes care of making sure the
entity bean object stays around.
Communication Protocol
Server
•Transaction
Server
•Persistence
•Security
•Caching
Thin v/s Thick Client
Feature Thin Client Thick Client
Swing Client
Specs
Client- Swing
Servlet Container-
Tomcat3.2
Servlet
DB Server-
Postgres8.0
Request Processor
DB Manager Database
Pros and Cons
Pros
Simple
Simple and Intuitive. Uses HTTP over the internet
and simple JDBC to communicate with the
database server.
Light
As compared with J2EE server
Cons
Plain Http protocol – No type safety
No caching Support
SessionBean
Session bean
EntityBean
SessionBean
EntityBean
Database
SessionBean
EntityBean
client
SessionBean EntityBean
Session Facade
Performance
An Entity bean is equivalent to a row in the database. If
the Entity beans were to be accessed directly, a network
call would result for each row access.
<abstract-schema-name>course</abstract-schema-name>
<prim-key-class>java.lang.Integer</prim-key-class>
<primkey-field>courseId</primkey-field>
<cmp-field>
<field-name>courseId</field-name>
</cmp-field>
Deployment Descriptor
<query>
<query-method>
<method-name>ejbSelectprerequisites</method-name>
<method-params>
<method-param>java.lang.Integer</method-
param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(p) FROM course as c,
IN(c.prereqCourses) p
WHERE c.courseId = ?1]]>
</ejb-ql>
</query>
</entity>
Technologies / Tools / Methodologies
Learnt
J2EE Architecture
Enterprise Java Beans
JBoss 4.0
Postgres 8.0
EJB-QL
Swing (work in progress)
Patterns – Session Façade,
Recursive Meta pattern, Chain of
responsibility
The Timeline
Before MidSem
Overview of the system requirements from Intel
Requirement Specification Document – prepared and presented to
Intel
Architecture + Design Documentation
Prototype : Demo – with the old architecture – Login,
Registration, Quiz
Deliverable – Client + Server implementation of modules
After Midsem
Change in architecture – Protocol + Server Side
Learning Curve for new technology – EJBs, J2EE architecture
Technology survey - Exploring options like JDO, Web Services
Configurations – JBoss 4.0, Postgres 8.0
Design of new architecture – Presentation to Intel
Detailed Design specification documentation
Deliverable – Server Side coding + documentation – Login,
Registration, Quiz
Thank you !!!!