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.

Similar Messages

  • HOW TO: Create a JSP Insert Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create insert/submit JSP pages. Here is a link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Insert_Form.html

    You can loop throgh query records whit an implicit cursor (which automatically manages the open cursor, fetch and next record):
      for rec in (select intime,outtime,barcode,attend_date from dail_att; )
      loop
           t_in :=rec.intime;
           t_out :=rec.outtime;
           t_code :=rec.barcode;
           t_date := attend_date;
             PUT YOUR CODE HERE ... (if ..then... elsif... logic)
             you can avoid setting variables 'cause you can directly use the implicit cursor variables: rec.intime etc.
      end loop;
    END;Anyway, I suggest you to check the where condition of your block ... because if not all data are retrieved there should be a problem in your query ... so even the cursor (if based on very same query) will return less data than expected.
    Luca

  • 9i;JSP; BC4J Data Tags...

    Hi,
    What's different between these two tags in BC4J Data Tags pallet:
    <jbo:InputText> & <jbo:InputRender>

    Hello,
    Here is the difference (from the online documentation)
    <jbo: InputText> Inserts a text-input field form element into
    your page.
    JSP Syntax <jbo:InputText
    datasource="datasourceId" dataitem="attributename"
    [ cols=numberCharactersWide ]/>
    Examples
    Order Id:<jbo:InputText datasource="Orders" dataitem="Id" />
    Description The input render converts all values to a String for
    storage in the database.
    <jbo: InputRender>
    Inserts a input form element that allows user to edit data of
    all types, including complex object types.
    JSP Syntax
    <jbo:InputRender
    datasource="datasourceId"
    dataitem="attributename"/>
    Examples
    <form enctype="multipart/form-data"
    NAME="iForm" METHOD="POST"
    ACTION="Submit_AddImage.jsp" >
    Image Id:<jbo:InputRender datasource="ds1" dataitem="Id" />
    Image File:<jbo:InputRender datasource="ds1"
    dataitem="Image" /><input type="submit" /> </form>
    Description
    Input form uses a field render specific to the object type.
    Hope this helps. You can search on the online documentation for
    description about this and other components.
    Thanks,
    -Kishore
    JDev Team

  • HOW TO: Create a JSP Edit Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create row edit/submit JSP pages. Here is the link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Edit_Form.html

    Are you using Java 1.4.* ?
    Use JFormattedTextField.
    import javax.swing.*;
    import java.text.*;
    import java.awt.*;
    import java.util.*;
    public class DateExample
        public static void main( String [] args )
          // Here's what you're interested in...
          DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy" );
          JFormattedTextField field = new JFormattedTextField( dateFormat );
          field.setColumns( 11 );
          field.setText( dateFormat.format(new Date()) );
          JPanel panel = new JPanel();
          panel.add( field );
          panel.add( new JButton( "Hey" ) );
          JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          f.getContentPane().add( panel );
          f.pack();
          f.setVisible( true );
    }It also works with other types of Format objects (ex. Currency, Decimal, etc.)

  • Question about tranferring data from iPhone 3gs to iPhone 4

    I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
    First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
    Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
    Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
    ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
    MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
    Thank you in advance, sorry for the long post.

    If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
    Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
    iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
    I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.

  • Creating rows Using BC4J Data Tags

    Hi!
    I want to create rows using BC4J data tags.
    I have 2 jsp pages: one containig forms and one to insert data.
    Is it possible to insert new rows into 2 or more tables?
    How can I differ the attributes to one table and to another?
    How can I do this?
    Thanks!

    The path is:
    Select "File/New" in the menu.
    Select "BC4J JSP" in the gallery.
    Select "Browse & Edit Form" wizard.
    This is in JDeveloper 9.0.2.
    Charles.

  • Question about displaying data

    Based on the search criteria I need to show some info. with check box on each item, but it might retrun upto fifty items (between 1 to 50 items). Should I create checkbox/output text dynamically or how do I handle this scenario? In the jspx how do I loop it and display? Thank you.

    hi user13094256
    See my reply in your other forum thread with the same question
    at Question about displaying data
    regards
    Jan Vervecken

  • TS2446 I forgot the security question about what was my first car and what is my favorite car! What is the solution to change that? please help me, thank you in advance Leo

    I forgot the security question about what was my first car and what is my favorite car! What is the solution to change that? please help me, thank you in advance Leo

    If you have a rescue email address set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address set up then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Questions' or 'iTunes Store account security' (it appears to vary by country) and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)

  • Oracle B2B 11g question about pulling data from remote TP sftp server

    Hi,
    We would like replace our custom b2b solution with oracle b2b, but without resulting much changes in remote TP side. To do that the following issues are to be resolved.
    1) in the existing custom b2b, host tp is pulling data from remote TP location. How does oracle b2b pull data from remote location using sftp(AS1 1.1)? Oracle document says that by using global listening channel, we can make oracle b2b listen to the sftp server? Is that correct? Is there any sample about how to configure and test it.
    2) For outbound file we would like to preserve the file name. If you use sftp for sending the file out, is it possible to preserve the filename?
    3) Some incoming files which are datafiles , does not have any identification pattern. Is there any other way to identify the document type? For example from which location we are pulling the file can tell us the document type.

    1) in the existing custom b2b, host tp is pulling data from remote TP location. How does oracle b2b pull data from remote location using sftp(AS1 1.1)? Oracle document says that by using global listening channel, we can make oracle b2b listen to the sftp server? Is that correct? Is there any sample about how to configure and test it. I am not sure what do you mean by AS1 1.1 but yes, SFTP is supported in Oracle B2B and if you want to poll a SFTP location, then you need to create a listening channel in Oracle B2B. For creating a listening channel, please refer -
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/bb_listen_chan.htm#BAJJICJJ
    2) For outbound file we would like to preserve the file name. If you use sftp for sending the file out, is it possible to preserve the filename?Yes, it is possible. There is a setting "Preserve Filename" in transport protocol parameter of a SFTP channel which should be enabled for this purpose.
    3) Some incoming files which are datafiles , does not have any identification pattern. Is there any other way to identify the document type? For example from which location we are pulling the file can tell us the document type. In case of FTP/FILE/SFTP, file name can be used to pass document type and revision information to Oracle B2B. Please refer "Filename format" setting on the above mentioned link.
    I figured it out from another thread about how to pull the file. I configured the listening channel so that it reads from a remote server using sftpo protocol. And I have given the filename format as %FROM_PARTY%.dat. I am putting a file like TESTBC.dat. TESTBC is the name of the remote TP. B2B is reading the file but, recognizes the document tupe, but says that FromTP null. What is the solution?
    Make sure that TP name is same as what you are giving in filename (cross-check for spelling). You may also try with default naming convention (do not mention anything in Filename format in listening channel configuration) - %FROM_PARTY%_%TIMESTAMP%.dat
    for eg -
    Acme_12345.dat
    Regards,
    Anuj

  • Jdev3.2,Jsp,BC4J, Data Tags : Unexpected exception Caught

    I wrote an jsp aplication, with data tags based on BC4J module.
    when I run the application the first time, everything is Ok. the second Time an Unexpected exception is thrown.
    the first module displayed in the error message is
    msg=null oracle.jbo.ApplicationModule oracle.jbo.html.jsp.JSPApplicationRegistry.getAppModuleInstance(java.lang.String, javax.servlet.jsp.PageContext)
    I thought that the problem is the module so
    I runned the application module in the BC4J tester tool every thing is ok
    I created a new aplication module but without any result.
    I created a jsp Application based on the same application module but using the datawebbean and everything is ok also.
    and here is a code that let the exception thrown.
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule configname="test1.Test1Module.Test1ModuleLocal" id="Test1Module" username="wns" password="offline" />
    <jbo:DataSource id="cat" appid="Test1Module" viewobject="TfixcategoryView" ></jbo:DataSource>
    <select NAME="categoryList" size="10" multiple="yes">
    <jbo:RowsetIterate datasource="cat" >
    <option VALUE="<jbo:ShowValue datasource="cat" dataitem="Idcategory" ></jbo:ShowValue>"><jbo:ShowValue datasource="cat" dataitem="Dsnmcategory" ></jbo:ShowValue> </option>
    </jbo:RowsetIterate>
    </select>
    can some help me to find a solution.
    cheers
    Ghassen

    hi Juan
    I didn't copy all the code source. but the releasepageresources tag is there. and I have only put this code because when I delete it no exception is thrown so the problem is there( in data tags).
    more than this when this exception is thrown I have only to relog to a new windows 2000 session and no exception is thrown.
    cheers
    Ghassen
    null

  • Question about sony NFC tags

    Hi every body,
    I have a little question about the NT1 smart tags of sony.
    I installed other app from google play to NFC tags in my phone.
    I installed it, because the smart tag app of sony, don't have the action to turn on or turn off the GPS by NFC tag.
    When I used with other app, and I written on the blue smart tag, I mark to became the blue smart tag to read only.
    So, now I can't to write on him, and the phone is not recognazied the blue smart tag ( all other smarts tags is OK, because I didn't used them ).
    When I scan the blue smart tag, the phone show a message: "unknown type tag".
    Am I can cancelled it and became it back? that's mean that the phone is recognaized it and I can to write on it?
    Or, is it one way, and I can't used with the blue smart tag again?
    Thank you.

    you can do a factory reset or repair your phone with SUS
    Update Service (SUS)
    http://www.sonymobile.com/gb/tools/update-service/
    http://www-support-downloads.sonymobile.com/Software%20Downloads/Update_Service_Setup-2.11.12.5.exe
    Alternatives on How to backup Xperias
    http://talk.sonymobile.com/thread/36355
    Don't forget to mark the Correct Answers & Helpful Answers
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Questions about the future directions of InfoPath and Microsoft Access

    Because I have been confused about the future directions of InfoPath and Access, I wrote a short blog post, which I have pasted below.  My question is, can Microsoft provide some more guidance on Access vs InfoPath?  If Access is indeed the
    the future direction, can you please provide some pointers to resources that can help us transition.
    A Short Review of MS Access,  SharePoint ,InfoPath (2013)
    After the November 2012 SharePoint Conference in Las Vegas (#spc12) there were a number of blog posts and people saying that Access 2013 was great and would be replacing InfoPath.
    Marc Anderson and
    Ruven
    Gotz have short posts summarizing #SPC12 and touch on the subject of InfoPath and Access.  I also spoke with several individuals shortly after #SPC12 and they were excited about Access 2013.
    Since I rely heavily on InfoPath for much of what I do, I wanted to kick the tires and see what everyone was talking about.  First, a few notes about SharePoint 2013 and Office 2013.
    Microsoft should rename Access:  If you have tried to
    bing the word Access, then you know that the search results are overwhelming,  because the word "access" is used for so many other purposes.
    Use the RTM version of Office 2013! I was performing  my investigations by leveraging the Office 365 Beta and the Office Applications that come with it.  Not much was working!  After I uninstalled the Beta
    version of Office 2013 and Installed the RTM version everything seemed to work. 
    Windows 7 and IE 9.0: The drag & drop that is being touted as
    "manna from heaven" seems to work well with Firefox, Safari, Chrome, and IE 10, but it does
    not work with IE 9!
    Non Microsoft browsers are still second class citizens (except for the drag & drop):  Microsoft has finally done away with the Active X's for datasheet view (that is brilliant!)  One can now see the newly
    minted datasheet view in many browsers.  But I still find that one needs to be in IE to do a number of key manual opeartions.  For example pasting numerous rows of data from a spreadsheet into the new sheet view works only in IE.
    Access 2013
    Microsoft Access is touted as a non developer tool.  I know a number of people who are on the business side and love Access.  These people will like the renewed energy that Microsoft has applied to Access.   One should note that conceptually
    this functionality existed  in SharePoint 2010.  Here is what I see that is new:
    +The new version works better:Although I haven't tested it fully, it seems that many more features that work on the Desktop version of Access, now work in the published Web Application which is hosted by SharePoint 2013.
    +The new version has fairly robust browser based forms: End users can now fill in data using forms that are rendered in the browser.
    +The published version that resides in SharePoint now uses its own SQL server tables.  So the engine appears to be SQL Server, not a modified version of Access built for a server.  This stands to be quite robust, but I imagine
    that some quirks will surface due to new model.
    The limitations are:
    - Access is pretty much its own application and does not integrate with SharePoint building blocks.  For example, an Access table is not easy to integrate with a SharePoint workflow.  Further, although  Access forms now are visible
    in a browser, they are not nearly as rich as InfoPath forms.  InfoPath forms cannot easily integrate with the Access tables.  In order to integrate SharePoint features and Access, one needs to tie SharePoint list(s) to Access as data sources. 
    This overcomplicates the model and one may very well run into synchronization issues.
    In short, although I believe there will be some people who will be happy with newly minted Access, I do not think that Access will be able to replace InfoPath and Workflow technologies.  I do agree that Microsoft does not seem to have put much energy into
    InfoPath.  If they leave a vacuum in this space, then others may very well take over, for instance Nintex Forms.

    Although I agree with the comments made by Ruven and Marc after the conference please note that those blog posts are their own personal opinions and that they don't work for Microsoft.  A lot of people have asked Microsoft to clarify the future of InfoPath
    and the response up until now has been a deafening silence.  In my opinion speculations about Access replacing InfoPath are premature.
    I should also point out that most of your comments about Access 2013 above are actually about Access Services in SharePoint Server 2013.  Access Services are NOT Access they are a shared service offering in SharePoint that convert and publish Access
    databases and forms.  As you point out once an Access database is published through Access services it is converted to SQL Server and no longer resides in Access.  Of course I don't work for Microsoft either so these are all just my personal opinion. 
    Having said that I doubt you will get the confirmation/response that you are hoping for from any official Microsoft channel.
    Paul Stork SharePoint Server
    MVP Principal Solutions Architect: BlueChip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • The Question about stock transfer between HU-Management and WM-Management

    Hi,
    There is a scenario about stock transfer between HU-Management and WM-Management storage location. I use transaction MB1B , movement type 313 , 315. After Good issue from WM-management storage location, outbound delivery will genarated, then Pack, Create/Confirm TO, at last post goods issue for the outboud delivery. But when i do movement type 315, there is a warning message "Data of preceding document was not transmitted", and from the F1 help i find this system reponse "You can maintain an indicator that makes information about preceding documents in this delivery available under delivery type in Customizing. For some characteristics of this indicator, the type of preceding document and the related document and item numbers must be transmitted to delivery creation. At least one of these parameters is missing.".
    So, My questions are:
    1. Generallily, Outbound delivery is created by SO, inbound delivery is created referenc PO, but how the stock transfer for 2 steps generate the outbould delivery and inbound delivery? Could you pls tell me the where i can config this in the IMG?
    2. What's "Data of preceding document was not transmitted" mean ? how to fix this issue ?
    Best Regards
    Boxer Du
    I am the SAP fans, focus on MM and WM. I am interesting TRM Yard Management and Cross Docking now.Very Gladly to talk you about these areas. I want to exchange the knowledge with you, and want to be a good friend of you. Pls contact me. You can find My MSN in the profile. Thanks.

    Hi,
    Sure, The inbound delivery type is set up in the IMG->Logistics General -> HU management -> Basics ->Delivery type -> Delivery type determination.
    For Inbound delivery type 'HID' is maintained in this view.
    Best Regards.
    Some One want to discuss the details , can contact me. Thanks.

  • Question about transferring data from 3GS to iPhone 5

    I upgraded from 3GS to iPhone 5.  Before reading any articles on transferring data through iTunes, I configured my 3 email programs, contacts and calendar (Google).  The Apple instuctions state that I should backup 3GS FIRST, then restore to iPhone 5.  Question is, if I do the backup and restore AFTER having configured my mail programs, will that cause problems, such as creating duplicate accounts and contacts?  I am especially concerned about creating duplicates in my contact list, which would be a semi-horror if I had to delete every other one of over 1,700 names.  Perhaps I should delete my email accounts and contact list BEFORE restoring to my iPhone 5, basically start from scratch?

    When restoring the device, whatever is currently setup on the device is irrelevant.  Everything currently setup on the device will be erased.

  • Extract data from Oracle Database and store it into a CSV file format

    Hello.
    I'm trying to export a table from an Oracle Database into CSV file format with any Oracle adaptor and store it into a HDFS system.
    How could I do it?
    Thanks in advance!

    Xavi wrote:
    HI Charles. Could I use.. Oracle Data Integrator Application Adapter for Hadoop? For this purpose?
    Thanks in advancePerhaps. I have to confess that I am not familiar enough with ODI to know if that is within its capabilities.
    You might see if there is a forum for ODI and post your question to that.
    Charles Lamb

Maybe you are looking for

  • Pages 5.2.2  Facing Page numbers

    Running Pages 5.2.2 on OS X 10.9.5 I'd like to have page numbers for even numbered pages in upper left hand corner and odd numbers in upper right hand corner of odd pages. I'm trying to do it using headers, but am not have any luck accomplishing this

  • Error in XSLT mapping while using string functions

    Hi All, While using tokenize() and substring-before() functions in XSLT mapping,we are getting an error.The error message is Unexpected symbol "" So while using string functions in XSLT mapping do we have to use any header functions. Please through l

  • Back button doesn't work in https google search

    Google search seems to have made https mandatory when logged in. This breaks history and the behaviour of the back button from the results page back to the google search results page. I think that this is because google, upon clicking on a result lin

  • Why won't my trial of CC Photoshop let me save my PSD images as JPG or GIF?

    Why won't my trial of CC Photoshop let me save my PSD images as JPG or GIF?

  • What is the number at the end of an unsealed MP?

    Hi all; When looking the unsealed versions of sealed Management Packs in the following location, each one has a number at the end of their names, as shown below? %ProgramFiles%\System Center Operations Manager\Agent\Health Service State\Management Pa