Need Clarification - Request Bean vs Session Bean?

Could someone clearify to me the difference between a Request bean and Session bean and when to use which one.
In a netbeans Visual Web Project I notice that the backing beans or code behind files that the web pages use are request beans but there is also a Applications Bean, Session Bean, and Another Request Bean.
What type of logic should be going where in terms of the jsp's request bean, the single session bean, and single request bean?
A few years ago when I was in school we created regular Web projects that used session beans as the backing beans which handled all the logic and passed data to and from a EJB layer which did all the Database connectivity.
And finally where do EJB fit into this style of Visual Web Projects?
Thanks,

So in terms of where certain types of logic goes I would so something like this login example:
User clicks a Login button, this is bound to the RequestBean, the request beans checks the session bean if user is logged in, if no then use a EJB to validate against DB, return true/false. Set user login state in the session bean? That a proper flow and useage of the different types of beans?
When all is said and done the request bean would be used to forward off actions fromt he jsp to wherever they need to go?
Edited by: avalanche333 on Jun 6, 2008 11:37 AM

Similar Messages

  • Difficulty in setting proprties in session/request bean

    Hello,
    I have a datatable which has 3 columns displayed and one hidden.The first cloumn is of type Hyperlink.When i click on this hyperlink i need to open a popup window so that i can edit the record values. The problem im facing is that i can open a popup window using the window.open() methode ,but this is javascript function.i need to carry the id value to a next page so that i can retrive the details.How do i set the id value or rather all the row values in the request or the session bean.
    In the next page i need to populate the textfields with the existing values passed from the previous page.
    The problem I'm facing is to open the window using javascript function and also set the bean properties.How can i caombile these together so as to solve the problem of passing values between two pages. As show in one of the tutorials
    Please let me know at the earliest
    Thanks in advance
    abhi

    Hi,
    Thanks for the reply but sorry i havent really understod what u have mentioned .Please could you provide some more details as to how i can access the requestBean to set the values. I get the id when i call a function as
    onClick="modalWin('#{currentRow.value['ID_PLAN_PERSON']}');"
    hence the id is available in the javascript level.
    Thanks
    abhi

  • Keeping the values in Request bean across more than 2 pages

    Hi...,
    I have created a Bean with request scope & want to access it across 3 different pages.
    From the 1st page once I submit the values , I do a forward (redirect=no) to the second page where I can print the values . From the 2nd page I then do a forward to the 3rd page (redirect=no) & I loose the values.
    How do I keep the request bean active across multiple pages. But I don't want to make it session as this is a form to enter values & our users might open multiple forms as the same time.
    Regards,
    Praveen

    Hi....Balu,
    We are having a issue when using ajax on top of JSF . Setting the variable hidden is somehow not working.
    Secondly, what is requestMap & where can I find the information.
    Regards,
    Praveen

  • Why the one request bean?

    A general question: in all JSF books and examples they always use specialized managed request beans for each business process/flow, etc.
    In JSC, there is this one huge monolithic RequestBean1 where everyone tacks on extra objects and properties.
    if this entire bean is getting instantiated every time any sort of JSF request happens, wouldn't it get very "heavy" after a while? Especially, in terms of memory usage...
    Why does JSC implement request managed bean as one big bean instead of allowing multiple, smaller, fine-grained objects?

    OK, then...but if we're supposed to use our own managed beans (as it should be) why does every page return a reference to RequestBean1 anyway via getRequestBean1()?
    protected RequestBean1 getRequestBean1() {
    return (RequestBean1)getBean("RequestBean1");
    Doesn't this code encourage incorrect programming practices by implying everyone should be piling every possible request property into the same and one bean?

  • I need java application to read session and cookie requests

    Hi
    I have a java application that can the HTML and links etc but is there a way for the application to
    a. retrieve cookies when they are given and
    b. know when the cookie is requested
    c. present the cookie when when they are requested
    d. retrieve session variables when they are given and
    e. know when the cookie is requested
    f. present them when they are requested
    Or is there a component out there where i can look at the code if it's complex
    stev

    Sure, the cookie is in the HTTP headers, so you don't really need anything special to handle cookies.
    A starting point for further studies is:
    http://home.netscape.com/newsref/std/cookie_spec.html

  • Need Clarification On Internal tables in Start Routine

    Hi,
    I have intenal table some IT_A which deletes the requests which are populated in to it.
    Now I need to populate requests into IT_A from  another internal table like IT_B which are of different structure.
    I have three fields in common in both internal tables like RNR,Timestamp n SID with different field names
    I Need Clarification that if i move the contents of the three fields to IT_A from IT_B by spcifying these three fields.Will the internal table IT_A deletes the Requests?
    Thanks,
    Sriram.

    Hi Sriram,
    As mentioned IT_A deleted the request loaded into it.
    if you move the contents of the three fields to IT_A from IT_B by spcifying the three fields after the deletion step for internal table IT_A takes place then it wont get deleted.
    But it would be deleted if the the contents are moved before the deletion step takes place
    regards,
    mahesh

  • Need Customizing request instead of Workbench for Table Mainetnance

    Hello All,
    I created a ztable with Table Maintenance.
    Whenever I am creating entries using SM30 it is asking workbench request instead of customizing request.
    I need customizing request to be created for table entries.
    Can anybody help me in this regard.

    Hi Eric,
    Thanks a lot!.
    The problem is solved....
    Thank you very much for your help.
    Regards,
    Sunil

  • I need an HP Support Chat Session but it isn't on offer on the HP website

    I have had some very helpful Chat Sessions with HP technicians, about replacing the DVD driver in my Pavilion Touch Smart 15. They have now sent me the wrong size of replacement drive. I need to have another Chat Session to pursue this, but it is no longer on offer on the Support page of the website - the only thing on offer is this Forum! What should I do?
    Thanks. DaCu

    Try the following Contact HP web document. You will have to enter the product number manually. See your notebook's HP Support Assistant or BIOS system information for the product number.
    https://support.hp.com/us-en/contact-hp/product/HP​-Pavilion-15-n216us-TouchSmart-Notebook-PC-%28ENER​...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Need clarification on issue with tablespaces

    Hi All,
    I needed clarification on this issue with tablespaces.I am following a guideline which says "Presently,The general rule of thumb is to concentrate on tablespaces that are 90% or greater used and have less than 2 GB of free space"
    My Scenario:-Now i have tablesace which is 97.23 % and the free space is 10 gb.Please advise me that whats the best next step I can take in this respect?
    I am very new to this and just following the guideline,so can you all please explain me some details about this.
    Thanks

    Well, the guideline says "*and* have less than 2 GB of free space"
    Since that tablespace as 10GB of free space, the guideline says that you do not need to concentrate on it. Eh ?
    I would be careful with guidelines that are hard-coded in this manner. You need to know the context in which the guideline was set.
    Assuming that your database/application doesn't grow suddenly by 1GB or larger (or create temporary segments / objects of 1GB or larger), the "2 GB of free space" might make sense. Then, again, it depends on the extent allocation type. What size are extents getting allocated.
    You should check with your organisation's senior DBAs on what happens if you don't concentrate on a tablespace because it is outside the guidelines !

  • Need clarification on Bigfile Tablespaces

    In the following Oracle Documentation Lirbary PDF,
        Oracle® Database
        Concepts
        10g Release 2 (10.2)
        B14220-02
        October 2005
    section
        Overview of Tablespaces
        Bigfile Tablespaces (page: 3-5)
    it says,
        Benefits of Bigfile Tablespaces
        * Bigfile tablespaces can significantly increase the storage capacity of an Oracle database. Smallfile tablespaces can contain up to 1024 files, but bigfile tablespaces contain only one file that can be 1024 times larger than a smallfile tablespace. The total tablespace capacity is the same for smallfile tablespaces and bigfile tablespaces. However, because there is a limit of 64K database for each database, a database can contain 1024 times more bigfile tablespaces than smallfile tablespaces, so bigfile tablespaces increase the total database capacity by 3 orders of magnitude. In other words, 8 exabytes is the maximum size of the Oracle database when bigfile tablespaces are used with the maximum block size (32k).
    I need clarification on how to arrive at 8 exabytes ?
    1024 x 32k x 64,000 ??
    According to the exerpt above, there's no mention of maximum number of Operating System blocks per extent. Unless this was assumed knowledge ... how do I get 8 exabytes ?
    And if "a database can contain 1024 times more bigfile tablespaces than smallfile tablespaces", then what's the upper limit on smallfile tablespaces ? -- was this sentence referring to the number of datafiles per smallfile tablespace ? ...
    O_o
    Thanks !
    Message was edited by:
    mvanle

    Hi,
    According to [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/limits002.htm#i287915]Physical Database Limits page, a bigfile tablespace contains only one datafile or tempfile, which can contain up to approximately 4 billion ( 232 ) blocks. The maximum size of the single datafile or tempfile is 128 terabytes (TB) for a tablespace with 32K blocks and 32TB for a tablespace with 8K blocks. In resume, A bigfile tablespace is a tablespace containing a single datafile that can be as large as 128 terabytes (TB), depending on the block size of the tablespace. In conjunction with setting the initialization parameter DB_FILES to the maximum value of 65,635 the total size of the database can be more than 8 exabytes (EB)
    >>how do I get 8 exabytes ?
    You can calculate the maximum amount of space (M) in a single Oracle database as the maximum number of datafiles (D) multiplied by the maximum number of blocks per datafile (F) multiplied by the tablespace block size (B):
    M = D * F * B. Therefore, the maximum database size, given the maximum block size and the maximum number of datafiles, is:
    65,535 datafiles * 4,294,967,296 blocks per datafile * 32,768 block size = 9,223,231,299,366,420,480 = 8EB.Cheers
    Legatti

  • In-House Product Clarification Request

    I came across this term "In-House Product Clarification Request" recently. However, I am not sure what this is. Can anybody clarify or provide some useful information? All I know now about this is that this is a type of General Notification.
    Thanks in advance,
    APS

    InHouse Product Clarification is a request sent from the Shop Floor to the Engineering and Design to report a problem pertaining to a product. The said product is usually an intermediate product used ina a stage of production and this product is responsible for some problems ocuuring at the shop floor.
    The IHPCR is sent to the Engineering and Design division reporting the issue and seeking a clarification on the desing or behaviour of the said product.
    If there is a fault with the engineering of the product, IHPCR is typically followed by an Engineering Change Request (ECR).

  • BPM, Workflow and Netweaver - Need Clarification

    Hi Guru,
    I am new to workflow, BPM and Netweaver.  I have several questions about those concepts.
    1. What is/are the different between workflow and webflow.  Which scenario should take workflow into consideration? Which scenario webflow can be applied to?
    2. What is/are the different between workflow and BPM.  If I am going to implement workflow in a company, do I need to implement business workflow as well as BPM?
    3. I need clarification on Netweaver platform and concept.
    4. What is/are the different between workflow in R/3 and workflow under Netweaver?
    5. If I am going to implement workflow integrated with R/3 and Outlook email, do I need to buy new wrokflow for Netweaver and Netweaver platform or alternatively, I can use business workflow module under R/3 system?
    Sorry for many questions asked. I am new to those products.  I am now working on software selection for workflow technology.  My company is going to implement new workflow to client.  Thank you very much.
    Cheers,

    Please ask only one (or closely related) questions per thread. This makes it a lot easier to get a good structure in the database of previously answered questions. While we are on the subject of previously answered questions, I think you should have a look at them....
    My suggestion is therefore:
    1. Close this thread
    2. Read the Frequently Answered Questions. Before you ask (here are many workflow answers)
    3. Search the forum.
    4. Create new threads if you have questions afterwards.

  • I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    Dear Anubha,
    I hope these windows illustrate what I am facing.
    The above window shows the prompt that the software requires activation.
    The version is 8.1.0.
    This next window is the point where I select activation by phone.
    This final window shows that the "response code" is not returned.  I get an
    "Activation Number" instead.
    Steven
    On Tue, Jan 27, 2015 at 10:50 PM, Anubha Goel <[email protected]>

  • Need clarification for these names, R/3, WAS, NetWeaver

    Hi All
    I posted the question on WAS preview installation, then I realized I should have put it here. Here is the link to that post:
    Need clarification for these names, R/3, WAS, NetWeaver
    Thanks again for any input
    Xueqing
    Added the link to the first post
    Message was edited by: xueqing Han

    Hi Xueqing,
    First of all, sorry for any confusion that we have caused you. I hope I can give you an answer that will clear up the confusion. Sorry, but it is a long explanation of the development of two application solution but history tends to be very long winded!
    It is <b>not</b> true SAP R/3 Enterprise equals SAP Web AS, and I'll hopefully explain why:
    In the beginning (at least in the client server world) SAP only ship SAP R/3. The technology layer under SAP R/3 was called SAP Basis. There was only SAP Basis under SAP R/3.
    SAP then started to deliver other software solutions that were not included in or built on the SAP R/3 software. These included SAP Business Information Warehouse, SAP APO, SAP SEM, SAP CRM, and the list goes on.
    These solutions needed to run on technology layer (like SAP R/3 did). SAP Basis was the obvious choice for this because of the common technology layer providing DB/OS abstraction and a coding environment.
    <b>~2001:</b>
    Later there came the need to have SAP Basis support the web and its web standards and other programming languages. This radically changed what SAP Basis was and we decided to rename the new technology layer to SAP Web Application Server (SAP Web AS). So the SAP Basis name was retired and SAP Basis 4.6D was the last release called SAP Basis.
    The new release and the "technology change" means that all the applications mentioned above now ran on SAP Web AS. The first release of SAP Web AS was 6.10.
    <b>~2002:</b>
    SAP Web AS was first used in SAP R/3 Enterprise release .
    The important fact is that SAP R/3 Enterprise runs on SAP Web AS. SAP R/3 Enterprise = SAP R/3 business applications + new business functions + SAP Web AS.
    <b>~2003:</b>
    I hope the above explanation is clear, because technology takes another major change. It was realized that SAP now had a collection of business solutions/applications (SAP R/3, mySAP CRM, mySAP SCM, etc) and a collection of technology solutions (SAP Web AS, SAP BW, SAP EP, etc). The technology requirements for the business solutions did not end at SAP Web AS, they needed portal, data warehouse, knowledge management capabilities, etc to develop business solutions on.
    To address this SAP made the decision to combine all the technology solutions and tools into one single platform. This made complete sense for developers (SAP, Partners and customers). This single platform is called SAP NetWeaver. It includes all the old individual components of SAP Web AS, SAP BW, SAP KM, SAP EP, etc).
    <b>~2004:</b>
    I think you can guess what the next step is. Yes, the new release of SAP R/3. Since the release of SAP R/3 Enterprise and the release of SAP NetWeaver, SAP R/3's name changes. It is now called mySAP ERP as it includes a lot of applications that were previously sold separately (like SAP SEM, MSS, ESS, etc).
    So now mySAP ERP runs on SAP NetWeaver (yes everything that was in SAP Basis and then in SAP Web AS is still there but SAP NetWeaver has so much more now).
    Also with the release of SAP NetWeaver, SAP starts to stop using the old technology component names - you will not hear us talk about SAP Web AS, SAP BW, etc anymore, just SAP NetWeaver releases.
    In addition all the other SAP business applications also run on SAP NetWeaver, so the latest version of mySAP CRM, mySAP SRM, and mySAP SCM all run on SAP NetWeaver.
    So to simplify the explanation, it would be :
    <b>Evolution of SAP R/3:</b>
    SAP R/3 (up to release 4.6c) -> SAP R/3 Enterprise (releases 1.00 through 2.00 -> mySAP ERP (2004 onward)
    <b>Evolution of Basis:</b>
    SAP Basis (up to release 4.6d) -> SAP Web AS (up to release 6.40 which was included in SAP NetWeaver '04) -> SAP NetWeaver (2004 onward)
    SAP NetWeaver and mySAP ERP have <u>their own release cycles</u>. mySAP ERP always has an underlying technology release that it is built on (this is a SAP NetWeaver release)
    I hope this helps,
    Mike.
    <b></b>

  • Need clarification regarding the test cable-diagnostics tdr command

    Hello,
    I've read about the test cable-diagnostics tdr command but I need clarification on the examples listed below to make sure that I am providing the right answer to my co-workers.
    Example 1:
    CXXX7SW17#show cable-diagnostic tdr int g0/20
    TDR test last run on: July 16 10:23:00
    Interface Speed Local pair Pair length        Remote pair  Pair status
    Gi0/20    auto  Pair A     N/A                        N/A                Normal
                           Pair B     72   +/- 10 meters  N/A                Open
                           Pair C     75   +/- 10 meters  N/A                Short/Crosstalk 
                           Pair D     74   +/- 10 meters  N/A                Short/Crosstalk
    Does this example mean that there's a cable length issue in the line which is causing the device that it's connected to not to work properly?
    Example 2:
    CXXX2SW140#show cable-diagnostics tdr int g0/21
    TDR test last run on: July 16 09:16:22
    Interface Speed Local pair Pair length        Remote pair Pair status
    Gi0/21    100M  Pair A     N/A                      Pair A           Normal
                              Pair B     N/A                      Pair B           Normal
                              Pair C     N/A                     Pair C           Normal
                              Pair D     N/A                     Pair D           Normal
    Does this example state that the cable line is okay for use?
    Example 3:
    CXXX1SW19#show cable-diagnostics tdr int g0/22
    TDR test last run on: July 16 06:36:53
    Interface Speed Local pair Pair length            Remote pair Pair status
    Gi0/22    auto    Pair A       1    +/- 10 meters  N/A               Open
                              Pair B     39   +/- 10 meters   N/A               Open
                              Pair C     72   +/- 10 meters   N/A               Open
                              Pair D     1    +/- 10 meters    N/A               Open
    Does this example mean that there isn't a device connected on the other end? No pin-contact?
    Thank you very much for any help you could provide.
    S

    I found this article here at supportforums that seemed like the best explanation I've read so far for TDR info.
    Hope that helps.

Maybe you are looking for

  • IDOC status on 03 but not recieved on target system

    Hi, We are recieving inbound idoc from external system and processing Inbound IDOC on SAP system, after processing inbound idoc on SAP we are sending status outbound idoc to external system. The above functionality was working fine before upgradation

  • How to submit data from multiple Input Ports in single SUBMIT button  click

    Hi, I am in SPS8. What exactly steps I need to perform to submit data from multiple Input Ports. I couldn't able to submit One input Form and one Input Table to BAPI data service in single SUBMIT button click. I debugged the VC application in SPS8. W

  • WRT120N problem with home-plug "TL PA101"

    I have bought a WRT120N few days ago. I have one PC is connected to the router though home-plug "TL PA101". But I find that the router cannot detect the home-plug in the GUI ->status->DHCP client. And also the "network magic" ->add device or network

  • Music wont copy back to iphone via itunes

    hi all i have an iPhone 5s 16gb on iOS 8.1.1 with 5gb of spare space. i am trying to get my music back on the phone after restoring and updating to ios8 with itunes12.0.1.26, i have added my music files to iTunes library then selected the songs i won

  • Different betwwen Enterprise and Standard

    what is the different between Oracle8 Enterprise Edition and Oracle8 Standard Edition?which one can i download? null