Urgent: Need quick guide for J2EE development:

Posted on 2005-04-20
Last Modified: 2013-11-24
Hi ,

I need a quick guide to develop EJB development with DB2 and sql server database on weblogic and websphere.
I need go through the following:
An example in which I create jsp page and servlet page then session bean, entity bean and message bean. I need sesssion bean using JDBC.
- how to configure eclipse for websphere application server and weblogic.
- How we deploy ejb on it.
- What is load balacing and performance tuning and how we do on both app. server

I have less than one week. I know about Java and some lit bit concepts of session, entity beans. Also lit bit about JSP.
I want to go through in very less time. Also I have 2 qeustions:

1- We can use entity bean to update database and session bean too using JDBC, which one is better and when we should use which one?
2- How we handle trasiction in j2ee project. ejb container handles itself or we have to write our own code to do rollback.

 Please answer me in detail and step by step as I am like dummy.
Question by:alakhan
    LVL 15

    Accepted Solution

    For W.L this is a code start:
    That page can take you to:
    1. examples ->
    2. using development tools ->
    3. How to code (JSP, EJB, ..) -> (relevant also to websphere)

    Using eclipse as an IDE is highly recommended and here is a weblogic plugin for it:

    1. Normally you will use your session bean to facade the access to the DB. Those sesssion bean wil use Entity beans
    CMP or BMP to do the actuall persistence ->
    2. You should use declerative transaction (CMT) and try to avoid user managed transactions.
    LVL 15

    Expert Comment

    code start -> good start.
    LVL 15

    Expert Comment

    There is also good J2EE tutorial given by Sun:
    LVL 2

    Expert Comment

    Sorry, there's no easy "hello world" type of tutor in EJB world. You relaly need to read something then look at some examples before you can run your first EJB.

    I personall like this book "Mastering Enterprise JavaBeans, 3rd Edition". Very good for learning and reference.

    Good luck!
    LVL 15

    Expert Comment

    > Sorry, there's no easy "hello world" type of tutor in EJB world. You relaly need to read something then look at some examples before you can run your first EJB.

    Well I have one a pdf just tell me if you need it. I made it my self. You can also
    search here for answers :

    Free PDF download :

    Hope that helps . . .
    LVL 15

    Assisted Solution


    1. Entity beans can be used for manipulating database you can choose
    from CMP or BMP but in most cases CMP is widely used. You can use session
    beans for a fast retrieval of records.

    2. Let the container do it for you if your using WSAD or Workshop all of this is on the help files or in thier support site.

    The best deal how ever is to use JDO(Java Data Objects) since its the fast
    rising technology to handle persistance :

    Hope that add's help . . .

    Author Comment

    Ok. If quick is not possible then can you set me the road map to be expert of J2EE ( start from beging to intermediate level).
    Like which topics should i cover first(jsp, servlet, ejb, jdbc etc.), which development envoirment should i use etc. step by step.
    I also have following 2 questions.

    1) If I read only Sun tutorial of J2EE then is it ok enough to be expert of J2EE developer?
    2) Should I read the whole J2EE tutorial or some and in both cases what topics should I read first ( as I want to go from easy to difficult approach and wants to do important things first.)
    3) Should I also revise Java(J2SE JDK) tutorial, complete or some topics as I read it 3 years before.

    Please reply me in detail. I am dummy.
    LVL 15

    Assisted Solution

    If you will know everything mentioned in the sun tutorial then you will be in a very good shape ;-)
    J2EE composed from many elements web teir (servlet/jsp), web services, jndi (part of j2se since 1.4), jmx (part of j2se since 1.5) & JSR 177, JMS, EJB.
    Learn first what you really need.
    >> Should I also revise Java(J2SE JDK) tutorial, complete or some topics as I read it 3 years before.
    If you touched Java only 3 years ago then probably yes.
    Also consider using the W.L guides which explains you step by step how to develope and deploy under the W.L environemt (if you are going to use W.L)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Title # Comments Views Activity
    wordsWithout 49 63
    Issues installing SSL certificate into Apache Tomcat 3 45
    network + 7 57
    HashMap Vs TreeMap 12 28
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now