OJSP Question Stateless mode !!!

Hi,
Why are the commit and rollback buttons disapear from the master navigationbar in the stateless mode ? What is the reason for ?
Where should I take care in the stateless mode, I mean what datadeans are sensible to this mode ?
Why in stateful mode, when running on a multithreads able webserver, I get always the same application instance. Isn't it suposed to be so, that the httpsession manages the application instances, so that when a second httpsession is made the application will generate a new instance ???
Correct me if I'm wrong and please give me some advice on repairing this in the JSP framework.
Another question, couldn't it be possible instead of reading the properties file of the JSP application, to use cookies for setting this properties at the opening of the httpsesion and after this only reading this properties values from the HttpSession environment ??? Corect me if I'm wrong ?!?!
JDev Team, a prompt answer from you will be very apreciated.
TIA,
Seb.
null

Seb,
Why are the commit and rollback buttons
disapear from the master navigationbar in
the stateless mode ? In stateless mode, everything is atomic. Transactions are automatically committed, so you do not need to explicitly commit, and there is no rollback.
Why in stateful mode, when running on a
multithreads able webserver, I get always
the same application instance.In stateful mode, you do not get a new HTTP session for each thread. So all your threads use the same application instance.
By the way, you can switch between stateful and stateless modes within the same application.
Another question, couldn't it be possible
instead of reading the properties file of
the JSP application, to use cookies for
setting this properties at the opening of
the httpsesion and after this only reading
this properties values from the
HttpSession environment ???Yes, you can do this.
Is there a docu for this javascripts beans ?No, but there is source code.
Thanks
Blaise

Similar Messages

  • E-mail tie up - question for Mods

    I recently had BT infinity installed and came back to BT for my broadband.
     While I was with my other broadband provider I took my BT e-mail address (and sub accounts) with me.
     I was paying BT per month to keep my BT e-mail address, now I am back with BT I obviously wont need to pay as the e-maill address is part of the package.
     Can you advise please how I can tie up my existing e-mail address (and sub accounts) with the new e-mail address that I created when I signed up for BT infinity ?
     Kind regards......John

    Hi John
    I can help with this e-mail situation.
    Send me an email to the email address in my profile. Please remember to include your BT account number, telephone number and a link to this thread.
    Cheers
    Stuart
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Newbee question - Track mods?

    I want to create a CD of some songs from my library (iTunes based) for my spinning class. I would like to shorten several tracks and add a fadeout effect so it sounds professional...not cheezy. Are there affordable Apps for doing this easily? I only indtend to use these mod tracks within iTunes.
    iMac Duel Core Intel   Mac OS X (10.4.5)   512MB

    Bill
    Audacity is an open-source (as in free) sound editor.
    http://audacity.sourceforge.net/
    Regards
    TD

  • A Question For Mods

    If you want a reply from the mods, its best to complete a contact the mods form and they will look properly at the issue.
    I dont think the PS3 is wireless N, so using old technologhy. You could always try home plugs?
    John

    gg30340 wrote:
    Johnelf wrote:
    If you want a reply from the mods, its best to complete a contact the mods form and they will look properly at the issue.
    I dont think the PS3 is wireless N, so using old technologhy. You could always try home plugs?
    John
    The moderators have changed they way they are contacted. See this link
    http://community.bt.com/t5/Announcements-Terms/Change-of-Mods-Contact-Us-link/m-p/931648#M126
    You don't contact the Mods anymore unless you are invited.
    This is poor?

  • Msi kt266a pro2 Voltage Question (tbred mod)

    Hy,
          I´ve done the C37 mod to my mobo and flashed the 3.74b BIOS. I installed a 1700 tbred B and runs flawless. What surpise me is that with voltage in Auto, the Vcore show 1.55v ?( , is that ok?? Another thing to know is if there is  anyway to get more than 1.7v in the Vcore options, since 1.7 is the max and it does not give too much room for OC. thanks!

    i guess that you say the L11 ones, are they open or closed by default?
    EDit:consider that I´ve done the painting to get a 1.75v by default, which option should I use in the BIOS? AUTO?
    btw, which voltage are you using on your tbred to get 2000ghz?

  • Using Application Module in Stateless Mode

    Hello,
    We have certain parts in our web application that is not coded using ADF-Faces, but need to use ADF-BC framework to do some data retrieving and manipulation. Our current approach is to instantiate the application module like the following:
    Configuration.createRootApplicationModule(impl, config);
    and after each usage we do:
    Configuration.releaseRootApplicationModule(am, true);
    However, the application module is not really released. We deployed pool statistic servlet from Steve Muench's "not yet documented examples" and realized that the supposed to be released application module is still in 'referenced' state and thus unavailable for usage by other session, or even other request in the same session as we dont know of anyway to tell ADFBC about current session and checkout referenced AM. As a consequence, the application is taking up DB resource so quickly and we have to restart the application every 5 minutes because it takes all available connection slot on our Oracle 10g server.
    Do I instantiate and released the application module correctly? Or am I missed something?

    In the reference you pointed, it is said that if I want the application module to be 'unmanaged' (assuming 'unmanaged' app module is what I need) I should:
    "call the resetState() method on the DCDataControl class (in the oracle.adf.model.binding package)."
    I'm not sure whether I'm getting this right, but I don't think I have a data control on the application module, because I instantiated it using Configuration.createRootApplicationModule().
    How do I set an app module to have 'unmanaged' release level directly (not through a data control)?
    Theres a resetState() in ApplicationModule class but it takes an int as an argument and Im not sure what to pass in.

  • Quick question: JFileChooser mode

    Hello All,
    I have a bit of a problem regarding JFileChooser. My application has 1 main window, and subwindows which are created when certain actions are performed on the main window. I want to create a file chooser when I perform certain actions on one of the subwindows, and make that chooser modal with respect to the subwindow only. I want to be able to perform other operations on the main window, even if the file chooser is shown. Is this possible?
    Currently, I have a JFileChooser sublclass, and I tried to override the createDialog() method so that I can manipulate the shown dialog's modal property. So far this approach of changing the modal property does not get me close to the behavior I want. [ The dialog does not block when modal is set to false, and setting it to true makes the other windows inoperable. ]
    Does anyone have any idea regarding this problem? Please let me know.
    Thanks.
    Regards,
    Cocoh

    I am pretty sure that the modality (is that a word?) of a Dialog is by definition application wide. To do what you want you will probably have to manually enforce the single window modality. You could probably do this by adding a WindowFocusListener to your disabled window that will force focus to your quasi-modal window.
    Hope this helps,
    Josh Castagno
    http://www.jdc-software.com

  • ADSL2+ question for Mods

    Hi everyone.
    We live in a rural setting and our local excange  according to
    http://www.dslchecker.bt.com
    says we'll be getting ADSL2+ as from tomorrow 30/11/2013
    Currently we get about 2.5Mb (with virgin media we were getting just under 5Mb but they were charging us £32.00 a month for it) 
    What sort of speed increase can we expect from tomorrow????
    Featured ProductsDownstream Line Rate(Mbps)Upstream Line Rate(Mbps)Downstream Range(Mbps)Availability Date
    WBC ADSL 2+
    Up to 5
    3 to 7.5
    30-Nov-13
    ADSL Max
    Up to 3.5
    2.5 to 4.5
    Available
    Fixed Rate
    2
    Available

    Hi tonyj154
    If your able to post your line ADSL stats such as line attenuation, noise margin, ect then this will help the community give their opinion on if your line will benifit from ADSL 2/2+.
    The upgrade BT Wholesale are on about is the upgrade to the BTW 21cn network at your local exchange which allows ADSL2/2+ if your line is able to cope with the higher frequencies.
    As a BT Retail broadband customer and still in contract thenonce your exchange has been BTW 21cn upgraded then your will automatically be migrated to the new 21cn network. However be aware that this can take days to weeks to months after the exchange is upgraded as the lines have to be manually migrated over in batches.
    As to the BTw 21cn network which allows ADSL2/2+ modulation (upto 12/20mbps), the ADSL2/2+ modulations are more aggressive to any noise on your line. It may also increase your line attenuation by 2/4dB, therefore on longer lines it can make the connection unstable if your line isn't able to cope with these higher frequencies.
    Also when your exchange has been 21cn upgraded, the lines have to be migrated to the new 21cn hardware in the exchange in batches so it can take days/weeks/months for all the lines to be migrated over to the 21cn network. Also you may be kept on ADSLMax (upto 8mbps) modulation but on the 21cn network if your line isn't able to cope with ADSL2/2+.
    Also be aware that if your line isn't estimated to be able to get 8mbos or over on the Adsl2/2+ modulation or your line can't cope with the higher frequencies then your line may be kept on ADSLMax line modulation though on the 21cn network.
    In my experience, when we were moved to the 21cn network we were kept on ADSLMax (due to having a very long line).
    Cheers
    I'm no expert, so please correct me if I'm wrong

  • Question about BC4J data tags, Oracle sessions and Locking!

    Hi ,
    I have seen numerous examples of JSPs using data tags and in all the examples the data tag for the application module has the "username" and "password" harcoded in it.
    My questions are:
    1) For a stateful application should we be including the username and password in every JSP page. I personally believe that we should not.
    2) If we have a username and password in every JSP page will it not start a new ORACLE user session and if so will it not cause locking problems?
    3) If we don't hard code the username and password in every JSP page, will it reuse the same ORACLE session ?
    4) How do we avoid locking problems when we use data tags?
    5)I can understand the inclusion of username and password in every JSP page if it is a stateless application but again Is there a way we can avoid hardcoding the username and password in every single page?
    I would appreciate if some one can let me know if any of my assumptions are incorrect.
    JDeveloper Team/Juan any advice?

    The username and password are optional. They can be provided via the connections.properties file. The multple entries for username and password don't mean that separate connection are made. The first time the ApplicationModule tag is encountered, your application instance is created. If you are running in reserved mode (look at your releasePageResources tag) the application instance is kept until your Http session times out. If you are running in Stateful or Stateless mode, you application instance is returned to the application pool and retrieved the next time you need an instance. Please refer to the application pool documentation and to the source in oracle\jbo\common\ampool provided in jbohtmlsrc.zip.

  • Questionnaire not in HTML mode (t-code BBP_EVAL_SURVEY

    Hi Expert,
    I use SRM 7.0
    I have question for mode HTML in Questionnaire (t-code BBP_EVAL_SURVEY).
    I have case, my recipient cannot access Questionnaire in HTML mode, what should i do?
    Any setting for HTML/not HTML mode in Questionnaire?
    Need your response...
    Thanks and regards,

    once you start the transaction  --> BBP_EVAL_SURVEY --> click on display for any of the available surveys , system will take you to details of the survey.
    then click on the button --> Display Questionnaire
    system will display the structure , and in the top , you will find two buttons'  Expert Mode On' ' HTML mail Off' , click on the button 'HTML Mail off' and it will change to 'HTML mail On'.
    and save the changes you have done and test. Hope it works.

  • JDev 11.1.2 Config Editor - Cannot Set Locking Mode

    Anyone know the secret (other than editing the source code)?
    The bc4j.xcfg editor/property inspector shows "locking Mode" as a (the only) disabled field. Changing the default to "pessimistic" is possible by changing the source to the following:
    <Database jbo.TypeMapEntries="OracleApps" jbo.locking.mode="optimistic"/>
    After that, the field in the property inspector is still disabled. A feature maybe?
    Thanks,
    Peter

    Hi Peter
    I hope you may useful following
    jbo.locking.mode The default locking mode used by application modules (pessimistic or optimistic). Note: In the case of session-oriented programs, such as web applications, the default value optimistic for jbo.locking.mode should be used unless you choose to set the RELEASE_MODE property to Reserved. The value pessimistic is not compatible with Stateful or Stateless modes because the database transaction is always rolled back to allow the connection to be reused by another user. This results in the lock being released and makes pessimistic locking unusable. If you want to use pessimistic locking, you must set RELEASE_MODE to Reserved. optimistic
    RELEASE_MODE The release mode--Stateless, Stateful, or Reserved--used by JSP pages. Other clients specify their own release mode. Note: This property interacts with the jbo.locking.mode property as described above. Stateful
    see
    http://adfhowto.blogspot.com/2011/03/property-description-default-value.html

  • Question on usage of some events in page flow logic

    Hi Group,
    I don't know how to use the following events and also not came across any example using these events:
    1.OnRequest
    2.OnDestroy
    3.OnCreate
    4.OnManipulation
    please let me get some ideas from you on the above if possible with some simple examples.
    thanks in advance.
    Regards,
    Vishnu.

    <b>OnCreate</b>
    OnCreate is called once when the page is first created (stateful mode), and performs a once-off data initialization or object creation.
    <b>OnRequest</b>
    OnRequest is called whenever a request is made for a particular page and is used to restore the internal data structures from the request. This is important when working in stateless mode.
    <b>OnInitialization</b>
    This event handler is mainly used for data retrieval. For example, it allows data required for displaying the BSP to be read from the database. It can also execute any program.
    <b>OnInputProcessing</b>
    This event handler checks and processes user input. It can also define navigation, that is, whether the user should be taken to the same page or another when the BSP is called.
    <b>OnManipulation</b>
    You can use this event handler to manipulate the HTTP data stream later.
    <b>OnDestroy</b>
    This event handler is available for special functions.
    Refer the below link for more detail..
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    Raja T

  • Insert new record -question?

    I am using Jdev 3.1 & Oracle 8.1.6
    I have a form with a JSNavigatorBar and a JSViewCurrentRecord.
    When I click on the insert icon, it brings me a a new page. After saving the changes, it returns to the calling form (via the SubmitInsertForm.jsp).
    Problem is that it will always return to the first record in the rowset instead of the newly inserted record in stateless mode. How do i get it to re-display the newly inserted record?
    it works fine in stateful mode?
    Thanks in advance.

    If you need your app ready from prime time, do yourself a favor and don't use any JS Web Bean, they are not ready yet...

  • Saving logos as jpg, eps, and png. What mode do I create each in? RGB or CMYK?

    Question... My client has asked for their logo as a JPG, EPS and PNG. They want a file ready to go, so they can fire off logos to whomever for whatever purpose.
    The Pantones are selected. My question, what mode do I create each format (jpg, eps, png) in? CMYK or RGB? Or do I create a CMYK and RGB of each for each format? (The more I know, the less I understand)

    Wow, thanks for your input. I also spoke with a printer with whom I'm working on another job.
    I think I've really over-complicated this, and here's all I really need to send them:
    EPS: Pantone, CMYK, RGB (I have read EPS's are outdated, but she didn't have a problem with it. This way they can take the Pantone colors and try to replicate them as closely as possible)
    JPG: Pantone, CMYK, RGB (per your earlier comments)
    PNG: Pantone, RGB (Web usage)
    PDF/X-4: Printer didn't have strong feelings on this format. She said the EPS would be fine. I'll still send it though.
    Sound good? (I like affirmation)

  • Application Module Release Mode

    Hi sirs;
    I'm just starting a new struts based application and adf uix + bc4j;
    What i was wondering is;
    If we will have a improve of performance, releasing more times the application module in stateless mode; like the following;
    All data forms (form related to data) will have an <<exit>> button and all the others links should be disabled. this exit button should command the form's dataforward action to release the application module in stateless mode;
    This exit button also will redirect the user to the main menu page;
    So, when the user get in an "data form", all struts ,toy stories based actions, will have the complete life cycle and will release the application module in stateful mode.
    One event called onExit marks the release mode to stateless to it's life cycle.
    what are your opinion about this approach ?
    Thanks
    Marcos Ortega;

    Repost

Maybe you are looking for

  • Printing Crystal 11.5 R2 with VB6 Directly to Printer

    Post Author: fferguson CA Forum: Other Hi, Does anyone know how to correctly supress the report prompting when printing directly to a printer? I can see the correct paramaters being passed, but I still get prompted for paramaters after selecting the

  • Partitioning an ext. HD for use with Time Machine HFS+/FAT32

    Hi, I hope that this question is not already answered somewhere - I did a couple of searches but couldn't find the answers I need. I'm setting up an external LaCie 500GB HD (USB 2.0) for a friend, in order to use it for Time Machine backups (one part

  • How to add video files to n91 from my pc?please he...

    i connect my 91 to my hp notebook with a usb cable. i have some video files that i want to transfer to my phone. i do not how. please a detailed explanation because i have my n91 for 2 days and my previos phone was a 3310. thank you

  • Unable to calculate the Sub totals

    Hi, Currently we are in BI7. I had created a query based on aging buckets. it has all the calculations in the columns section. I have to calculate the sub totoals based on a particular info object Customer. For that I made the Result rows of the ream

  • Copy of InfoObject 0STS_PICK not found in search

    Have copied InfoObject 0STS_PICK to LSTS_PICK . In search of Info_objects the LSTS_PICK cannot be found . Can find in RSD1 . tryng to recreate it says it's already there . Running BW 3.5