Development Environment Version 1.0
Introduction •You will be developing a complete J2EE application. •The development environment: – JBoss IDE with Eclipse – Oracle Database •Testing Environment: – JBoss IDE with Eclipse – Oracle Database •Deployment Environment: – WebSphere Application Server – Oracle Database TCS Internal
September 3, 2009
J2EE Stream Lab Architecture Diagram JBoss
JBoss
Eclipse
Eclipse
IDE runs on desktop PC 1
IDE runs on desktop PC 2
After development in IDE, deploy in production server WebSphere Application Server Runs on Server Production Server/Env Linux
CVS Runs on Desktop PC Linux
JBoss
JBoss
Eclipse
Eclipse
IDE runs on desktop PC n
Oracle Runs on Server Linux
IDE runs on desktop PC n+1
Diagram Dated: 05 June 2006 Created and own by: TCS, ILP Trivandrum, India
TCS Internal
September 3, 2009
J2EE Stream Lab Architecture - Physical
Deploy after development and testing
PRODUCTION ENVIRONMENT
JBoss IDE V1.6 (Eclipse V3.1) and JBoss V4.0.2 on Windows XP OS DEVELOPMENT & TEST ENVIRONMENT (IDE)
WebSphere V5.1 on Linux OS DL380 SERVER, 2 GB RAM 78 GB HARD disk (RAID)
CVS V1.11.2 on Linux OS Pentium 4 CPU, 1 GB RAM 120 GB Hard Disk CONFIGURATION MANAGEMENT
Note: Linux OS is Red Hat, enterprise edition, V8.0 Diagram Dated: 05 June 2006 Created and own by: TCS, ILP Trivandrum, India TCS Internal
Oracle 9i on Linux or Windows 2003 OS DL380 SERVER, 2 GB RAM 78 GB HARD disk (RAID) DATABASE September 3, 2009
JBoss IDE •JBoss IDE is a plug-in used by Eclipse to develop J2EE applications. •J2EE applications are very large and consists of large number of programs distributed across directories. •In order to organize these files, J2EE has lots of configuration files. •When we write J2EE programs ourself, then we have to write all these configuration files. •JBoss IDE helps in writing and maintaining this configuration files for the programmer. TCS Internal
September 3, 2009
JBoss IDE Features •Wizards to ease and simplify J2EE development. •Integrated debugging, monitoring, and life cycle control of JBoss servers. •JSP, HTML, and XML editors with syntax highlighting •Easy configuration and deployment of package services •Automatically create JAR, EAR and WAR files. •Well integrated with Eclipse 3.1 •Open source software (freely available). TCS Internal
September 3, 2009
XDoclet •When we develop J2EE applications, for each component (EJB), there need to be several support classes. •These classes acts as interface for the users. •XDoclet provides features write these component classes when a bean is created. •XDoclet is an open source intiative. •JBossIDE uses XDoclet feature to create support classes for beans.
TCS Internal
September 3, 2009
JBoss IDE Directory Structure
EJB Components
WEB Components
DEPLOYMENT Details
TCS Internal
September 3, 2009
JBoss Server •We will deploy our application using JBoss Server. •JBoss server has two components: – JBoss Application Server •Which handles EJBs – Tomcat Web Server •Which handles servlets and JSP pages. •But we get an integrated view and need not worry about where Apache is running or JBoss is running. TCS Internal
September 3, 2009
JBoss Server •JBoss Server can be used for deploying: – Enterprise wide Java Applications – Web applications – Portals •JBoss Application server supports EJB 3.0 standard.
TCS Internal
September 3, 2009