When to use which scope

Hi,
I have a CRUD application.. Where in the data is fetched, displayed n edited n stored back to db. Also there is a sequential access between pages & the information entered on the first page is needed on the second page & so forth. What would be the best scope & why ?
When to use which scope? What is the life-cycle of each scope.
Also, I couldn't find any good tutorial on scopes. If you are aware of the same, please guide.
Its urgent.
Thanks in advance.

921331 wrote:
Hi,
I have a CRUD application.. Where in the data is fetched, displayed n edited n stored back to db. Also there is a sequential access between pages & the information entered on the first page is needed on the second page & so forth. What would be the best scope & why ?
When to use which scope? What is the life-cycle of each scope.
Also, I couldn't find any good tutorial on scopes. If you are aware of the same, please guide.
Its urgent.
Thanks in advance.You could use ViewScope and parameters to the next view or if using CDI have a look at conversation scope. You should read about them in detail yourself because even if someone chooses one for you it's still you who has to go on to use it correctly.

Similar Messages

  • What is ESB and OSB? why OSB when ESB avail? when to use which of these?

    Hi,
    What is ESB and OSB? why OSB when ESB avail? when to use which of these? Which is recommendabale?

    ESB (Enterprise Serice Bus) is backbone of SOA. OSB (Oracle Service Bus) is an ESB product. Before the acquisition of BEA, Oracle was using OESB (Oracle Enterprise Service Bus) as a service bus but after that Oracle renamed ALSB (Aqualogic Service Bus) to OSB. Below SOD should help you out in understanding -
    http://www.oracle.com/technology/products/integration/service-bus/docs/Oracle-Service-Bus-SOD.pdf
    Regards,
    Anuj

  • Checked and unchecked exceptions - when to use which ?

    Hi,
    Example:
    public void go(String[] args) {
       if(args.length==0)
          throw new //   <= what type of an exception should come here ?
    }Is there a good explanation when to use which one ? I know that generally
    unchecked exception are the exceptions associated with errors in the logic
    of your applications and checked are those which you can not determine
    (like files, networks problems ....).
    Thanks,
    Adrian

    There is no, "I think it is better to us a type-XXX exception here because of conditions 1, 2, and 3" scenario.
    Checked exceptions are of type java.lang.Exception and must be handled in one of two ways- try/catch constructs or having the method state it throws the checked exception.
    Unchecked exceptions are of type java.lang.Error or java.lang.RuntimeException. If the problem is an Error, something very bad has occurred like running out of memory. If it is a RuntimeError, then it probably came from a program bug. In both cases, there is no way for you to know when they will arise. Therefore the compiler does not force you to handle these unusual circumstances.
    If you think of piece of code may throw an error like an I/O operation, and you do not have code to handle that possibility, the compiler will let you know. After you have been programming long enough, you'll begin to know when you need try/catch constructs without Mr. Compiler yelling at you. ;-)
    Edited by: filestream on Sep 14, 2007 5:37 PM

  • JavaFx Lighting Effects : When to Use which ???

    Hi,
    I know that this question in more design oriented than technical,
    but still i'm posting this question in this forum .
    I wanted to start off with javaFx lighting effects and i have found very good examples online .
    I have seen the implementation of lighting effects at:
    [http://code-better.com/javafx/lighting|http://code-better.com/javafx/lighting]
    and [http://jfxstudio.wordpress.com/2009/03/18/javafx-light-effect/|http://jfxstudio.wordpress.com/2009/03/18/javafx-light-effect/]
    These applications just gave us the ability to configure the lighting options .
    I also have found a file effects.fx online and in that i see that
    effect: Lighting{
    light: DistantLight{azimuth: 90}
    } // to be used to make a button look pressed
    and
    effect: Lighting{
    light: DistantLight{azimuth: 270}
    } // to be used to make a button look upbeat .
    But this hasn't worked for me in few scenarios .
    For example i have tried to apply these 90 and 270 distant light effects
    to buttons made of various gradients and for some it seemed to have worked and
    for some it doesn't seem to have worked .
    I think we will have to change the color of distant light for that .
    Could any one point me to a guide or online site or some tips
    that will help be in understanding which effect to use when and which color
    should i use for the lighting effect and other stuff .
    It would be of great help for me .
    Thanks a lot .
    bye

    Hi JavaFx Duo,
    Thanks for your reply .
    Actually I wanted to find out info like how to make an image ( or button of any gradient )
    look gone inside or look up ( in a measurable way, i mean depth or height below/over the surface )
    using lighting effects . And how does the azimuthal angle
    and the color of the light source have an effect on it .
    Earlier i have posted a forum in which Phi Lho has answered me
    on how to make the button text look gone down and i can try to achieve
    that by trying similar here .
    [http://forums.sun.com/thread.jspa?messageID=10844582&#10844582|http://forums.sun.com/thread.jspa?messageID=10844582&#10844582]
    But i thought of making use of the lighting effects and i want to know if any guide or tutorial
    is available which describes the lighting effect with various Colors
    and angles and when to use distant light/point light and spot light effects .
    I would also like to know a few practical implementations
    of these effects in javaFx ( i.e as i have posted earlier 90-for making it look deep and 270 for looking elevated
    and such stuff ............................. ) by varying the angle and Color ,
    So that i can use them in my applications rather than trying various combination
    each time .
    Thanks

  • Difference between EAI and SOA? when to use which one?

    Hi,
    Please share this information, What IS EAI and What is SOA? why they came and what its use, and when we have to use which of these?
    Thanks.

    EAI is the mother of all the integrations. EAI acts as a connector and can integrate at large scale however SOA is another integration technique which is used for small scale integration. SOA is an approach to have software resources in an enterprise available and discoverable on network as well defined services. Each service would achieve a predefined business objective and perform discrete units of work. The services are independent and do not depend on the context or state of the other services. They work within distributed systems architecture.
    Regards,
    Anuj

  • When should use request scope

    hi
    i don't know when i should use request scope, the example is use session scope always.
    Can anyone help me?
    thanks!

    SpiderFromMars wrote:
    > What are the best practices for using the variables
    scope versus using the
    > request scope when assigning variables.
    >
    > In other words, when should I use <cfset variables.x
    = 'barf'> and when
    > should I use <cfset request.x = 'barf'>?
    >
    The variables scope is only accessible in the current
    template. The
    request scope is accessible in the current template and any
    other
    template, such as a custom tag or include file, that is used
    to build
    the current request.
    I.E
    <!---index.cfm--->
    <cfset variable.x = "foo">
    <cfset request.x = "bar">
    <cfoutput>#variable.x##request.x#</cfoutput>
    <cf_myCustomTag>
    <!---myCustomTag.cfm--->
    <cfset variable.x = "bob">
    <cfoutput>#variable.x##request.x#</cfoutput>

  • When to use which mapping in Scenario

    Hi,
           When to use
    1. ABAP MAPPING
    2. JAVA MAPPING
    3. XSLT MAPPING
    4. GRAPHICAL MAPPING
    When to use these mapping at what type of interfaces we should use them.
    Regards,
    Nissi

    Hi,
    Hope the following link gives you an idea of use case of different mapping techniques
    [Mapping Technique|http://wiki.sdn.sap.com/wiki/display/XI/Mapping+Techniques]
    [ABAP mapping implementation|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/a15a5f77-0c01-0010-cfa1-94ca75306537]
    [XSLT mapping implementation|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/0654b462-0c01-0010-4d9d-d2d5a7fee0d6]
    [Java mapping implementation|http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm]
    To give an example, Usually file content conversion feature of file communication channel does not support the content conversion of structures with deep hierarchy then in that case we can go for XSLT mapping as with graphical mapping we cannot create text file for structure with deep hierarchy.
    You get more understanding on the use case when you develop different scenarios there are too many to list.
    Hope this helps !!!
    Regards,
    Amit

  • JSP and Servlets - when to use which?

    Greetings,
    I am a software developer with a very good understanding of Java. I build web applications, console applications, server/client apps, gui apps, what have you.. Web development with Java seems so dynamic now, that I can't seem to keep up with it. I have a simple style of developing web apps with java. Basically I create Java DTO(Data Transfer Object) classes that will perform in the backend and talk to a database using JDBC, or write to file, or read from file, what have you. I develop JSP pages that produce the proper HTML based on what a user wants to see. I may create some functionality in the DTOs that will pass along certain data. Sometimes the JSP can get a little sloppy due to the nature of the app. I create forms that collect information using JSP/HTML and I create JSP pages that will extract the form data from the form page and then send that data to the DTOs for further processing. I am not creating any classes that implement or extend HttpServlet and this is starting to bother me. Is this more the accepted way of developing Java Web Apps? What could you consider these DTOs I am creating? Can these be considered servlets? I compile the classes and use them as if they were a servlet, but they really aren't right? I am not sure and I need to catch up with what's going on in the real world. This is the unfortunate part of never having anyone to mentor you. I feel like I am falling behind. What about the newer technologies emerging - Struts, Tiles, JSF, what have you.. Could these possibly be replacing the functionality of Servlets? Thanks for listening...
    takizzle

    There's no reason to slam anyone that's asking advice on a HELP FORUM.
    anyway, that aside-
    I usually use JSPs for presentation and show database views with them. take for example a shopping basket application, you would have a custom tag that would loop through the contents of the customer's shopping cart and display them.
    however when the customer was filling out thier information the form would point at a servlet that would handle the logic and processing.
    that's the diff- user servlets to handle logic and JSPs to handle presentation.
    cheers, and good luck :)

  • Garageband versus Audacity - when to use which?

    I've had iLife for a number of years now but I've generally found Audacity has met all my recording needs - mostly recording and editing stuff off the radio, or recording my own amateurish music-making live, i.e. without using tracks. Lately, however, I've been moving into the multitrack world and thus resorting to Garageband a lot more (yes, I know Audacity does tracks too). Much as I appreciate (without being fully conversant with) all the features in Garageband, I still find Audacity more intuitive in some ways. For example, if I want to edit a waveform or adjust EQ, I will sometimes just export a Garageband track to AIFF and then bring it into Audacity for some more tweaking.
    So, what I'd like to hear is how everyone else takes advantage of these two apps. When it comes to tasks that both programs can handle, are there some that you feel are much easier to do in one app than the other, and what are they? Can both apps complement each other as part of an audio workflow? What are the most outstanding/useful little tricks that each app can do?
    Thanks.
    Richard
    Message was edited by: RichardLim

    Audacity (and other audio editors) are better suited for simple audio recoding and editing - they're much leaner and more reliant. I would never trust GB for a task like recording a long speech or concert.
    I also prefer an audio editor to edit recorded speech - you can edit with much more detail, and by default the stuff you delete doesn't leave a gap (I know GB can do that too).
    So basically, I use GB for anything that has to do with music or at least multi-track recording, the rest I do in an audio editor.
    As for using both apps together: I've experimented with using both in parallel in the past – like taking a recording with a low level and normalize it in Audacity while the GB file is open. Nothing for the faint-hearted, since this is not something you're supposed to do - but as long as you don't change the length of a recording, GB was quite tolerant towards that procedure.

  • When to use which adapter?

    Hi Experts,
    I have an query regarding use and advantages of adapter!
    I want to know in what preference should the adpaters be used IDOC,RFC,PROXIES. what should we consider to use first and what are the advanatages of one over the other.
    Regards .
    Saras Jain

    Hi Saras Jain  ,
    These r the details regarding Adapters:
    Adapter framework
    What are XI Adapters?
    Adapters enable communication between the XI integration engine and an application system. This leads to the compatibility between heterogeneous systems.Adapters convert the XI protocol (SOAP with attachments over HTTP) to the protocol spoken by the application system and vice-versa.The key purpose of XI is to integrate heterogeneous systems and adapters are the key enabler to achieving this goal
    Adapter Categories
    Application adapters provided by SAP (IDoc and RFC) and 3rd party vendors (Seeburger, Siebel, Oracle, ...)
    Technical adapters relate to specific protocols
    File systems (FTP / File)
    RDBMS systems (JDBC)
    Messaging systems (JMS)
    Web services (SOAP)
    Mail servers (SMTP)
    SAP Business Connector
    Marketplaces
    Industry standard adapters
    RosettaNet
    CIDX
    The Adapter Engine
    The XI Adapter engine is the home of the majority of the XI adapters. Only the IDoc adapter and the plain HTTP adapter do not reside on the adapter engine. They reside on the Integration Server.
    It is fully integrated in to the XI landscape with tools provided for configuration, logistics and monitoring. It's Adapter Framework is based on the JCA.
    SAP XI requires an adapter framework to communicate outside of the SAP system. These adapters translate code from external applications to an XML message for NetWeaver processes using the Java Connector Architecture.It is a part of the Adapter Engine, which provides interfaces for configuring, managing, and monitoring adapters.
    Structure of the Adapter Framework
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/16e140a786702ae10000000a155106/content.htm
    Adapter for SAP XI environment
    http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/sap_xi/sapximst11.htm
    List of all adapters compatible with XI 3.0
    http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1229988_tax304527,00.html
    Adapter and Module Development
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    Legacy Integration with the SAP XI Adapter
    http://www.makdata.de/www_makdata/sites/www.makdata.de/en/solutions/solutions02/downloads/SAP_XI_Adapter_mak_data_news_23_en.pdf
    Installing the SAP XI Integration Components of the XI Adapter
    http://documentation.softwareag.com/crossvision/xio311/install/sapXiInstall.htm
    cheers!
    gyanaraj
    ***Pls reward points if u find this informative

  • Whats the diffrence between these two JKM's and when to use which one.

    Please tell the diffrence between these two.
    JKM Oracle Consistent o JKM Oracle Consistent (Update Date)

    Basic difference is in the requirement .
    JKM Oracle Consistent (Update Date) wants a DATE/TIMESTAMP column in the source tables(s) which will get inserted/update by the source application . ODI will capture the changed data based on this column value . Only the DELETE portion requires a trigger to keep track of deletion happening at source table(s).
    Where as JKM Oracle Consistent does not require any DATE/TIMESTAMP column in the source tables(s) . It uses triggers for keeping track of INSERT/UPDATE/DELETE happening in source .
    In terms of performance JKM Oracle Consistent (Update Date) is better as it will create littel over head on to your source system . SO if you have a DATE/TIMESTAMP column in the source tables(s) which gets inserted/update by the source application, then go for JKM Oracle Consistent (Update Date) .
    Else look for JKM Oracle Consistent .
    Thanks,
    Sutirtha

  • Windows vs Textured Windows, when to use which

    I'm new to OS X and software development in general, so I apologize if this is extremely obvious to most. However, while messing around in Interface Builder I noticed I could create Windows, Panel, Textured Window, HUD Window, and a Window with a Drawer. While I have been able to find examples, I'm unsure when a Textured Window vs a "normal" Window should be used. I was hoping the Human Interface Guidelines would tell me, but I could not find a clear answer in there either. Any information will be appreciated.
    Thanks in advance,
    Jeremy

    Hi Eric,
    STP was designed for the video world but, sadly, not built to industrial strength. I've never had FCP crash on me but STP crashes at least once every session. When do I use it? Only when working with videographers/directors/editors since they understand it. Noise reduction is fine and that's helpful but I prefer to use Logic for all my video work, not least since it has instruments as well as audio.
    STP 2.02 seems a little more stable but I can't risk it.
    There is an STP video tutorial being developed by MacProVideo.com and the first two parts are available. Check out the demos, if you want to find out about it:
    http://www.macprovideo.com/tutorial/soundtrackPro2
    Pete

  • When to use the Adapters and in which case

    Hi Experts,
                         I am little worried and searched the sdn, but i am not getting the proper answer for my question.
    My Question is when to use which adapter and at what stage?
    1. File      --> when to use it and in which case
    2. IDOC
    3. RFC
    4. SOAP
    5. XI
    6. HTTP
    And also where to use BPM and Proxies, when should we go for them.
    Please help me out. I Beg the answer from experts.
    Regards,
    Raj

    Hi,
    If an incoming or outgoing message is a file(.txt,.csv etc), we use a file adapter
    If the outgoing message is an IDOC, we need an IDOC adapter.same for RFC also.
    SOAP for incoming/outgoing webservices
    XI while using proxy scenarios
    HTTP- while you an HTTP request.
    BPM and Proxies is a vast topic.
    For Proxies http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    and for BPM http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    this will be useful.
    Regards,
    Tiny

  • When to use collection?

    Sorry to post such question in this forum , but i would like to recieve some interesting about this .
    I know the basics of collection but i dnt know when to use which one?
    I am totally confused that all are working for the same thing with little difference .
    Please suggest me some tutorial if do u have .
    Thanks in advance .
    Hope u will realize my problem.

    I am totally confused that all are working for the same thing with little difference .Ahh - but those little differences can be important.
    Basic rules
    1 - First decide if you need a List, Map or Set.
    2 - If it is List, probably use ArrayList
    3 - If it is a Map, probably use HashMap
    4 - For a Set, probably use HashSet.
    That covers 90% of the base cases. Most of the time you just need those base classes.
    As always there are the exceptions
    - If you are constantly reading/adding/removing from the ends of the list, and not accessing the middle, consider using LinkedList implementation.
    - If you want your Map to be ordered by key (like a dictionary for example), then TreeMap
    - If you want your Map to retain the order they were inserted, then LinkedHashMap
    Yes the differences are subtle between versions, but those subtleties can be important.
    However in most cases, you can just use the stock standard base class.

  • Can any body tell me when to use what Bean?

    Hi ,
    I am naive to EJB . I want to know when to use which bean . Pls quote with an example.
    Thanks in advance .
    Mahesh L.

    I would highly recommend picking up a book on EJBs
    Professional EJB - Wrox
    Enterprise JavaBeans - O'Reilly
    Mastering Enterprise JavaBeans - Sams
    These are all excellents books and will explain in great detail with sample code how to program EJBs

Maybe you are looking for