Using a Database for Persistent Storage (JDBC persistence)

Hi,
I was going through the WLS docs for some information on Session Management
using JDBC. It says that set up a database table named "wl_servlet_sessions" for
JDBC-based persistence. I have done this and it seems to work fine because it
stores values in the columns of this table as I traverse my application pages.
However I am not clear as to what values get stored in some of these columns.
Can anyone tell me what is the significance of the following columns which are
a part of the
wl_servlet_sessions table that is created?
wl_id
wl_context_path
wl_is_new
wl_create_time
wl_is_valid
wl_session_values
wl_access_time
For more information on this you can visit this link.
http://e-docs.bea.com/wls/docs70/webapp/sessions.html
Also are there any API's which will let me access the session values stored in
the above table in my code?
Eagerly waiting for a response.
Thanks and regards,
Jimmy Shah

Hi,
I was going through the WLS docs for some information on Session Management
using JDBC. It says that set up a database table named "wl_servlet_sessions" for
JDBC-based persistence. I have done this and it seems to work fine because it
stores values in the columns of this table as I traverse my application pages.
However I am not clear as to what values get stored in some of these columns.
Can anyone tell me what is the significance of the following columns which are
a part of the
wl_servlet_sessions table that is created?
wl_id
wl_context_path
wl_is_new
wl_create_time
wl_is_valid
wl_session_values
wl_access_time
For more information on this you can visit this link.
http://e-docs.bea.com/wls/docs70/webapp/sessions.html
Also are there any API's which will let me access the session values stored in
the above table in my code?
Eagerly waiting for a response.
Thanks and regards,
Jimmy Shah

Similar Messages

  • I want to use Berkely database for my Dissertation

    Hello everyone,
    I am having some doubts regarding Berkely database. Actually, I am using this database for my project. The scenario of the project is, I have developed some business rules depending on the concept of Ripple Down Rules and represented the rules using Conceptual graphs. Now I want to store fire these business rules in to the Berkely database, so that my application can use these business rules from the Berkeley database.
    This is the context of my project. But, I am very new to this Berkely database. I have downloaded the Berkely database from the Oracle website and also installed it. The OS is am using is Windows XP SP2. Can anyone explain me how to store Conceptual graphs in a Berkely database.
    I am really a beginner to Berkely database. i don't even know what to do after installing the Berkely database. Please advise me about this.
    I would be very thankful to you.
    Cheers,
    Phani.

    Hi Phani,
    The simple answer is however you want. Berkeley DB doesn't put any constraints on how you store data in it. Its main purpose is to provide an efficient and scalable key/value storage and retrieval system, upon which you can build your own data storage system.
    More specifically, if you're representing graph data, the simplest way to do so is with the "edge list" paradigm. You could, for example, set up a pair of databases, one to store all your graph nodes (with associated metadata) and one for directed edges. I'm not sure what particular c structures you'll want to use for these, but I'd suggest using record numbers on both the nodes and the edges DBs, unless all your nodes have unique and meaningful names. I'd also allow duplicate records on your edges DB, and have a very simple record structure in it that simply maps from a source node id to a destination node it (the duplicates allow multiple edges from a given node.)
    If you have more specific constraints on your graph and algorithms you'd like to run on it, there are potentially more schemes you could use, such as the nested set representation for trees, and so on.
    Hope this helps,
    Daniel

  • When using Appleworks database for printing labels can I have columns of different widths?

    When using Appleworks database for printing labels can I have a column of different width?
    Case in point, the supplied avery labels in Appleworks does not have 8195. When I build one using custom design  I need a small column between column 2 and 3 to line up the info in columns 3 and 4. All the labels are 1.3/4 inch wide but I need to insert a column 1/4 wide to match up with the avery page....
    Any ideas???    
    Thanks......
    ---warren

    Well, the issue is that when you creat a custom width of 1.3/4 from the edge of the first label to the edge of label 2 all is good. The right and left margins were also set correct in AW. The Avery page, for some reason, has a small 1/4 inch column between the columns of label 2 and 3 therefore making the distance between the left edge of the label in column 2 and the right edge of the label in column 3 - a width of 2 inches and not 1.3/4.
    I guess Avery wanted the page to look even.
    I did this work around.....
    I created a custom lay out of 2 columns (not 4) with the correct width of 1.3/4 from label edge to label edge and the correct left side margin. After printing the first page I just turned the sheet 180 degress and printed the 2nd page to use all the labels on the Avery sheet. Since the upper and lower margin were the same it worked great....
    "Great minds think alike"...   thanks for your suggetion

  • HT1452 I have a Toshiba Canvio 1TB external hard drive on my Mac. I've used it for 4-5 months with no problems, but now cannot add to it (I use it mostly for photo storage) to it. I can still access information previously added. Ideas?

    I have a Toshiba Canvio 1TB external hard drive on my Mac. I've used it for 4-5 months with no problems, but now cannot add to it (I use it mostly for photo storage) to it. I can still access information previously added. Ideas?

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • How can i use diffrent database for same file in same project?

    I want to use two database. First normal environment, second for budget. Second copy from first environment. For example 1. database name = "MRP" , 2. database name = "MRPBUDGET".When program is start, users can select database. My question how can i use which selected database name in program.
    Thanks a lot for your help,

    Hi giri,
    I test it. When i change
    cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum");
    cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum1");
    in SessionBean1.java
    i run it. But this page of project is open explorer it didn't change sun-web.xml and web.xml in projetct directory(line
    <resource-ref>
    <res-ref-name>jdbc/mysql_dogum</res-ref-name>
    <jndi-name>jdbc/mysql_dogum</jndi-name>
    </resource-ref>
    When i close this page of project from explorer , i clean and build project and then find in project "dogum1", i saw true value in sun-web.xml and web.xml. Project is running true.
    How can i change xml file when project running. Can i use drop down list for database name(which change run time)
    Thanks,

  • Can Numbers be used as database for a collection?

    Can Numbers be designed to make a database for a library of books? I have a large collection of old sheet music. The records would include keywords, comments, publication date, composer, illustrator, publisher, value, condition, purchase date -- and a scanned image of the cover artwork.

    Hi Bonita,
    I think you could use Numbers for your database. It doesn't work well as a container for graphics though. I would suggest that you keep your scanned artwork on a web service such as Dropbox so that you can record the URL in Numbers and keep the actual graphics storage on a server. The reason for this is that Numbers can't reference a file stored locally, and Numbers becomes sluggish if the graphics are stored within the document.
    When you build a database in Numbers, each row is a "record", or separate item, and each column is an particular attribute; your keywords, comments, publication date, composer, illustrator, publisher, value, condition and purchase date.
    Jerry

  • How can i use a database for practice in DOS

    i have some problems in the sqlplus.
    My OS is windows2000 server,when i intalled the Oracle 8i
    i type a command 'cmd' go to DOS.and type "sqlplus username/password@database"
    but always the system say that my database name can't be deal with.
    and i want to get a sample database for training SQL statements.How can i get it.
    is Oracle 8i have the sample database.

    It sounds like your database hasn't been started yet so do this:
    Try typing svrmgrl at the c:> -- if it doesn't work you might either have to go to the proper directory or type sqlplus to get an sql:> prompt (I don't remember it's been a while) but the rest I am pretty sure about---
    When you get the svrmgr prompt:
    use (i think) "connect internal"
    and "oracle or Oracle" as password
    once you do this
    it should say connected
    then use: svrmgr:>shutdown -- shutsdown DB
    then use: svrmgr:>startup -- starts DB
    hopefully then you can access your database through SQL Plus

  • Not sure if i should use a database for my application?

    Hi
    Not sure if i should post here or not..
    But my problem is that initially i planned to use a database to map my application logic so that it can keep information after the app shuts down and i would get it back the next session i open my app. My application is shared across netwrok therefore i thought it would make sense to use a database. I know i can use Serialization to keep state but that only does it for current location hence i opt to use a database.
    But now thinking back i'm not pretty sure afterall if i just have my app updating the database for no other use apart from using it to keep state from my app across network.
    So - do current software application out there use a database as a datasource alot? If so how are they using it?

    Interesting indeed..
    But saying this again: all my use of database is just mapping the application logic (model). So essentially it use is just like a backup.
    After reading that link you gave me: does that mean it is very common that most software system out there uses any database of some sort to store any information as small as smallest peice of information you get?

  • Using 9iAS Database for BI Applications?

    We have a 9205 Database that is serving as our data warehouse. I have created several servlets and java client classes using BI Beans and JDeveloper. I want to deploy them using 9i Application Server. The 9iAS install installs another database. Should I use the database that 9iAS installs instead of my pre-existing database, or keep using the 9205 warehouse and have two complete databases on the same machine?
    Thanks

    I have used HSQLDB for awhile. I have found it to be very useful, though I've mostly used it for simple, read-only databases. Definitely what I would recommend for your situation.

  • When using i-cloud for music storage does it take up memory in i-phone?

    when using i-cloud for storage of music does it take up memory on my i-phone or other devises?

    The behavior is different on computers and mobile devices.
    On computers, songs will stream from the cloud unless you explicitely download them, so no.
    On iOS devices, each song is downloaded when you play it (or when you explicitly download it), so yes, if you play many different songs, it will eventually fill up your device and you will have to delete some of them.

  • How to use local database for Education Portal

    Hi All,
    We are implementing a Education Portal (learning Solution) and here are our requirements
    1. Course details are stored in R/3 portal
    2. When users login to the education portal, course catalog should be displayed with all the details and here the course catalog should not be displayed directly from R/3.
    3. course catalog should be read from some local database or XML ( how to update the local database/ XML from R/3 data periodically)
    4. Once when user sees the course details, if he wants to buy the course, he will register and do the payment.
    5. User details should be stored in the local database and only if he do the payment and his registration details will be stored in the R/3.
    Is any one have any idea how to go ahead with the above function and give some inputs.
    Regards
    Ponnusamy

    Hi,
    Basically, you would have to use plain JDBC / Open SQL or some persistence framework on top of it (e.g. JPA if you're on Java EE 5 / NW CE 7.1, or EJB CMP, JDO, Hibernate with previous NW releases) to store and load data in the local DB. For updating the backend ("R/3") you would use SAP JRA which is based on SAP JCo.
    Search for these terms on help.sap.com and you will find plenty of information about it.
    HTH!
    \-- Vladimir
    PS: Once again, I'd like to remind you to read the [Rules|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], in particular regarding cross-posting. Violating the rules may result in banning your user.

  • Using different databases for an ADF web fusion application

    Hello all
    Here is the thing. Following some steps in a book developing an application, and I gotta say looks really good, so I thought why not just change it a bit and use it for the company I work for. Main problem is, the book uses the HR schema, and I wanna use the company's database. So can this be done and what damage should I be looking at? What are the areas I will have to fix?
    Thanks in advance all

    dino2dy,
    What are the areas I will have to fix?Not much, just the database design, business components, screen layouts, security, task flows, and business logic (in other words, just about everything)
    The best thing to do would be to learn from the book how to develop such an application and then use what you learned to develop your app. There may be utility classes/techniques/layouts/etc that you could reuse from the book perhaps.
    John

  • HT201318 Using iTunes credit for iCloud storage.

    I purchased and added iTunes credit to my daughter's account and then upgraded her iCloud storage without any trouble however, a month later Apple sent an email that they were unable to bill for this month. Her iTunes account has nearly $15 in credit and she's only on the $0.99/per month upgrade. Can't iTunes credit be used for iCloud purchases? I seem to recall that my iCloud renewed last year from a credit I had in my account.

    You need a CC to purchase a gift card with you iTunes account.

  • State databases for shared storage

    When adding a disk to a disk-set (Solaris Volume Manager), it automatically adds a state DB to slice 7 and then of course to the next disk added.
    Sun Cluster recommends 3 state databases on each disk of an internal. Is there a recommendation for the shared disks. I know one is added automatically, should it have more?

    No, you don't need to an any normally. SVM will automatically balance the replicas across the disks added to the set. The only time you might want to mess with this default allocation is if you want to create a preferenced site. In the case where you have two sites and an even number of disk arrays located across these sites, i.e. nodeA & arrayA in siteA, nodeB & arrayB in siteB, you might want to make site A preferred.
    SVM works on the principle of requiring a majority of replicas to allow a diskset to be imported read/write. Mediators help if you have a system failure then at some point later an array failure by allowing the internally held mediator to go 'golden'. However, if you have an instantaneous site failure, then the array and the server are loss simultaneously. The mediator on the remaining site does not go golden. Thus any diskset previously held by the failed site cannot be brought in read-write because there are only 50% of the replicas available (on say arrayB). You can manually delete some 'dead' replicas and get the set imported, but that's not very highly available. Alternatively, you an add an additional replica to siteB's arrayat configuration time and this would give it the majority it needed. However, if site B failed, you are in the same situation! The best option is to have a 3rd site with some of the storage on.
    Why does it work this way? Because if you were in the middle of a change to the configuration at the point of failure you might get the wrong info about the disk arrangement on a set switchover and possibly corrupt data. Data corruption is highly undesirable, so SVM protects you by forcing a manual intervention to resolve the issue.
    Don't know if that helps?
    Regards,
    Tim
    ---

  • Using the Database for Reports

    Has anyone ever used the RoboSource Control database to run reports on modifications/changes? We also have SAS and would like to see about generating reports about what topics have been modified and what has not, etc.

    Hi
    Yes, you can do that to ensure that Crystal Report checks for the changes.
    Regards
    Sourashree

Maybe you are looking for