Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
7Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
J2EE Design Considerations for WLS

J2EE Design Considerations for WLS

Ratings: (0)|Views: 494 |Likes:
Published by soulbringer
Weblogic J2EE Design Considerations
Weblogic J2EE Design Considerations

More info:

Published by: soulbringer on Jul 13, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

02/26/2012

pdf

text

original

 
J2EE Design Considerationsfor WebLogic Server
Version 2.0
 Prepared from material generated from the Ambassadors of  Enterprise Architectures
March, 2001
 
 J2EE Design Considerations for WebLogic Server 
 ___________________________________________________________ 
Table of Contents
1.0 INTRODUCTION.......................................................................................................72.0 J2EE DESIGN CONSIDERATIONS........................................................................8
2.1 S
ERVLET
/ JSP..........................................................................................................................................9
2.1.1 Multiple Content Types (HTML/WML/XML/…) ...........................................................................92.1.2 HttpSession..................................................................................................................................122.1.3 Transactions.................................................................................................................................132.1.4 Servlet Chaining..........................................................................................................................132.1.5 JSP Tag Library...........................................................................................................................132.1.6 JavaBeans....................................................................................................................................132.1.7 Session State Management for Rich Client types........................................................................142.1.8 Deployment..................................................................................................................................14
2.1.8.1 Web Application & WAR....................................................................................................................142.1.8.2 HttpSession.........................................................................................................................................15
2.1.9 In-Memory State Replication with a Proxy Server......................................................................152.1.10 JDBC Session Persistence.........................................................................................................16 2.1.11 Cookies.......................................................................................................................................16 2.1.12 Different Java Virtual Machines (JVM).....................................................................................16 
2.2 EJB.......................................................................................................................................................17
2.2.1 General........................................................................................................................................17 2.2.2 Remote.........................................................................................................................................17 2.2.3 Inheritance...................................................................................................................................17 2.2.4 References....................................................................................................................................182.2.5 Life Cycle.....................................................................................................................................182.2.6 Transactions.................................................................................................................................192.2.7 Persistence...................................................................................................................................202.2.8 Resources.....................................................................................................................................212.2.9 EJB QL........................................................................................................................................212.2.10 Container-Managed Persistence...............................................................................................212.2.11 Message-Driven Beans..............................................................................................................222.2.12 Session Beans.............................................................................................................................222.2.13 Entity Beans...............................................................................................................................252.2.14 Client-Server Interface..............................................................................................................29
2.2.14.1 Access to EJB Services.....................................................................................................................292.2.14.2 Granularity of Entity EJB Services....................................................................................................29
2.2.15 Modeling Relationships.............................................................................................................30
2.2.15.1 Types of Relationships......................................................................................................................312.2.15.2 Modeling Relationships with EJBs....................................................................................................32
2.2.16 Inter-Bean Communication........................................................................................................32
2.2.16.1 Entity to Entity..................................................................................................................................322.2.16.2 Session to Session.............................................................................................................................322.2.16.3 Entity to Session................................................................................................................................332.2.16.4 Session to Entity................................................................................................................................33
2.2.17 Deployment................................................................................................................................33
2.2.17.1 Overview...........................................................................................................................................332.2.17.2 Performance......................................................................................................................................332.2.17.3 Availability........................................................................................................................................34
2.3 JMS......................................................................................................................................................36
2.3.1 Transactions.................................................................................................................................36 
2.3.1.1 Transacted JMS sessions ....................................................................................................................362.3.1.2 JTS UserTransactions .........................................................................................................................36
Page 2
 
 J2EE Design Considerations for WebLogic Server 
 ___________________________________________________________ 
2.3.1.3 JTA Transactions Between WLS JMS and MQSeries JMS - A First Look..........................................362.3.1.3.1 Using JTA and the XAResource Interface...................................................................................36
2.3.2 Security........................................................................................................................................37 2.3.3 Deployment..................................................................................................................................37 2.3.4 Performance................................................................................................................................38
2.3.4.1 Concurrency........................................................................................................................................382.3.4.2 Session Pool........................................................................................................................................38
2.3.5 Issues............................................................................................................................................39
2.4 JNDI.....................................................................................................................................................40
2.4.1 How do you get an InitialContext................................................................................................402.4.2 Delegated Name Space................................................................................................................40
2.5 JTA / JTS..............................................................................................................................................41
2.5.1 Overview......................................................................................................................................412.5.2 Working with Oracle in Transactions..........................................................................................45
2.5.2.1 Lock Duration.....................................................................................................................................452.5.2.2 Row-Level Locks................................................................................................................................452.5.2.3 Read Operations (SELECT)................................................................................................................452.5.2.4 Data Manipulation Operations ( UPDATE, INSERT, DELETE).........................................................452.5.2.5 Summary.............................................................................................................................................462.5.2.6 Oracle’s Transaction Isolation Levels..................................................................................................462.5.2.6.1 Read-Committed.........................................................................................................................462.5.2.7 Serializable..........................................................................................................................................472.5.2.8 Comparison.........................................................................................................................................47
2.5.3 EJB Transactions Management...................................................................................................48
2.5.3.1 General approach................................................................................................................................482.5.3.2 Transaction Control.............................................................................................................................482.5.3.3 Number of involved beans..................................................................................................................482.5.3.4 Duration..............................................................................................................................................492.5.3.5 Should an EJB Service be Transactional?............................................................................................492.5.3.6 Atomicity Requirements......................................................................................................................492.5.3.7 Isolation Requirements........................................................................................................................492.5.3.8 Transactional Isolation for EJB Services.............................................................................................50
2.5.4 Default Transactions Setting........................................................................................................50
2.5.4.1 Retrieve Operations.............................................................................................................................502.5.4.2 Fine grained updates...........................................................................................................................512.5.4.3 Batch updates......................................................................................................................................512.5.4.4 Summary.............................................................................................................................................51
2.5.5 Deadlocks....................................................................................................................................51
2.6 S
ECURITY
................................................................................................................................................53
2.6.1 Overview......................................................................................................................................532.6.2 Authentication..............................................................................................................................54
2.6.2.1 WebLogic Realms...............................................................................................................................542.6.2.2 Context Propagation............................................................................................................................542.6.2.3 Single Sign-on.....................................................................................................................................54
2.6.3 Authorization...............................................................................................................................552.6.4 Encryption....................................................................................................................................55
2.6.4.1 40 and 128 bit encryption....................................................................................................................55
2.6.5 JAAS.............................................................................................................................................552.6.6 Balancing Security & Performance.............................................................................................55
2.7 JDBC....................................................................................................................................................56
2.7.1 Overview......................................................................................................................................56 2.7.2 DataSource..................................................................................................................................56 2.7.3 Connection Pooling.....................................................................................................................56 
2.7.3.1 Connection Pooling Design Recommendations...................................................................................58
2.7.4 BLOB / CLOB..............................................................................................................................582.7.5 Batch updates...............................................................................................................................592.7.6 Scrollable ResultSets ...................................................................................................................59
Page 3

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
jayavardhankoti liked this
jayavardhankoti liked this
Satish Marri liked this
anktty liked this
ALi liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->