[ExtermlyUrgent]How can we implement our own caching scheme in servlets???

Hi all,
anyone, give me any idea about implementing our own cahing sechme in servelts. Please guide me with your knowledge i also need a running sample source code to understand this concept. It is extrememly urgent please help me .
Regards.

try to use
http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/
or
http://jakarta.apache.org/turbine/jcs/
if u are looking for a simple caching.. do it programatically.
regards,
Arun
http://www.javageekz.com/

Similar Messages

  • How can i call our own programmes injsp

    now
    i am learning j2ee
    so plz help me
    how can i call our own programmes injsp

    Welcome to Apple Support Communities.
    You need an additional unique Apple ID for the second device.  They're free, so create a new Apple ID for the second device, and use it when you want to FaceTime. You don't have to use it for iTunes, App Store purchases, backups, or syncing, just FaceTime.
    More details on Apple ID are found here: https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Message was edited by: kostby

  • How can i implement "my own" security in ADF 11g

    Hi everybody,
    I have a problem and hope anyone could help me...
    Currently i am developing a ADF application, and i want to implement the security... the problem i have (and i read a lot of posts in the forum and other blogs and i don't found anything that help me) is that the "validation" of the user of password is with a webservice..... and the "roles" of the application are given to me with another web service.
    I read a lot and in the Fusion's Developer Guide in chapter 30 (Enabling ADF Security in a Fusion Web Application) explains very good how to implement the security in the application, but, that example really doesn't work for my problem.
    I wan't to know any way to in the "doLogin" action of my "Login button in my login page" to implement my own logic.
    public String doLogin() {
    2 String un = _username;
    3 byte[] pw = _password.getBytes();
    4 FacesContext ctx = FacesContext.getCurrentInstance();
    5 HttpServletRequest request =
    6 (HttpServletRequest)ctx.getExternalContext().getRequest();
    7 CallbackHandler handler = new SimpleCallbackHandler(un, pw);
    8 try {
    9 Subject mySubject = Authentication.login(handler); <<----------------------------- Here i wan't to invoke the WS that validate the user and pwd.
    10 ServletAuthentication.runAs(mySubject, request);
    11 String loginUrl = "/adfAuthentication?success_url=/faces" +
    12 ctx.getViewRoot().getViewId();
    13 HttpServletResponse response =
    14 (HttpServletResponse)ctx.getExternalContext().getResponse();
    15 sendForward(request, response, loginUrl);
    16 } catch (FailedLoginException fle) {
    17 FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR,
    18 "Incorrect Username or Password",
    19 "An incorrect Username or Password" +
    20 " was specified");
    21 ctx.addMessage(null, msg);
    22 } catch (LoginException le) {
    23 reportUnexpectedLoginError("LoginException", le);
    24 }
    25 return null;
    26 }
    And i wan't to know if i can save some other user information in some kind of session (like company, mail and other stuff).....
    And when i can login validating usr and pwd from the WS... how could i manage my roles ?
    Welll i hope anyone can help me.
    Regards from Mexico.

    Hi,
    to do this, you create a JAAS Login Module to authenticate against the Web Service. This then you wrap in an authentication provider that you configure with WLS. ADF Security does not perform any authentication itself and instead leaves it for the container.
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e13718/atn.htm#i1154044
    Frank

  • My mom updated her iPhone to iOS7, and now she has my contacts. Does this mean that she has access to all of my photos as well? How can she 'unlink' our phones? Or, is there anyway that I can get my stuff to disappear from her phone? Thanks

    My mom updated her iPhone to iOS7, and now she has my contacts. Does this mean that she has access to all of my photos as well? How can she 'unlink' our phones? Or, is there anyway that I can get my stuff to disappear from her phone? We share iTunes account so I think we are both on the same iCloud.

    Welcome to the Apple Community.
    If you are using the same ID as a primary iCloud login, then yes she can see your photos in photostream if you have it enabled.
    You can use the same ID for iTunes so you can share all your purchases, but you need different ID's for iCloud.
    Unfortunately, the mess caused by sharing the ID, will need to be sorted manually, once you both have your own ID's.

  • How can i implement 'Distribute Qty' function in BAPI_GOODSMVT_CREATE

    Hi all,
    Using MIGO For GR. if more than one Batch or Production Date or Vendor Batch for same Purchase Order Line Item and Deliv date, need to hit ‘Distribute Qty’ button to split the entry line into multiple lines before enter Production Date and Vendor Batch.
    So I want use bapi BAPI_GOODSMVT_CREATE  implement MIGO function for a interface. Anyone have some suggestion how can i implement the 'Distribute Qty' function in the bapi.
    My email address: [email protected]

    Hello,
    1. Use structure BAPIPAREX for passing custom fields. (There are several blogs/posts on how to make use of this).
    2. In the BAPI i noticed there is a BAdI to populate these fields into your business tables.
    Call BAdI MB_BAPI_GOODSMVT_CREATE to fill own fields
        TRY.
            get badi lo_mb_bapi_GOODSMVT_CREATE.
          CATCH cx_badi_not_implemented.                    "#EC NO_HANDLER
        ENDTRY.
        TRY.
            call badi lo_mb_bapi_goodsmvt_create->extensionin_to_matdoc
              EXPORTING
                EXTENSION_IN = EXTENSIONIN[]
              CHANGING
                CS_IMKPF     = S_IMKPF
                CT_IMSEG     = T_IMSEG[]
                CT_RETURN    = return.
          CATCH cx_badi_initial_reference.                  "#EC NO_HANDLER
        ENDTRY.

  • How can I implement the connection pool in my java stored procedure

    my java stored procedures (in database 'B') have to connect to another oracle database ,let's say 'A'. And how can I implement the behavior like the so-called connection pool in my java stored procedure in 'B', as below.
    1. database B, has 2 java stored procedures sp1 and sp2
    2. both sp1 and sp2 connects to databse 'A'
    whatever I call the sp1 and sp2 and the database 'A' always only one connected session from sp1 and sp2 in database 'B'.
    THANKS A LOTS...

    my problem is I have a lots of java stored procedures need to cnnect to the remote oracle db, and I hope the remote db can only have a connected session from my java stored procedures in my local db. I try as below
    class sp{
    static Connection conn=null; //the remote db connection,
    public static void sp1(){...}//procedure 1, using conn
    public static void sp2(){...}//procedure 2, using conn,too
    I can 'see' the 'conn' variable if I invoke the sp1() and sp2() from the same client application(maybe sqlplus). But if I invoke the sp1() from client 'A' and invoke sp2() from client 'B' then the sp1() and sp2() can not see the 'conn' variable for each other. I think it's because the two clients cause oracle to create two instances of the class 'sp' and the sp1() and sp2() located in different instance seperately. Thus the sp1() and sp2() can not see 'conn' for each other. They can only see its own 'conn'.
    To connect to the remote db from the java stored procedure is easy but is it possible to connect to the remote db via database link from the java stored procedure at my local db ? If so, then I also archive my goal .
    BTW , thanks a lots...
    andrew :-)

  • How can I implement Authentication in LDAP

    How can I implement Authentication in LDAP.

    Hi,
    If ur using JAAS, then use NTLoginModule in ur conf file and your own defined CallbackHandler for validating and obtaining the Subject (user connected to your domain).
    Remember the user is the one which the code obtains when u login to your Domain based machine.
    Apart from this, Apache Http Server also provides you with a popup window asking for the user's credentials when u set the SSPIDomain in the httpd.conf file.
    httpd.conf
    ========
    <Location /Seet/servlet/ >
    SSPIAuth On
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthName "seet190 auth"
    AuthType SSPI
    SSPIAuth On
    SSPIAuthoritative On
    require valid-user
    SSPIDomain seet190
    </Location>
    seet190 is the domain name
    Actually so far in the Security Forum, u might refer to some of the replies posted for more help but actual LDAP authentication can be done by passing the user's info too.
    HTH,
    Seetesh

  • How can I implement this database?

    Okay, so if you are working with a company who owns more than 10 apartment complexes and they have asked you to build a database.
    So if I want to implement this database.
    What database software package should I use (SQL Enterprise or SQL Data Center) (do not know the difference between the two) or is there any other SQL version that can be used/considered
    Also what else would I have to build or buy? What combination of things do I need?
    What hardware is needed at each apartment complex?
    I was told that something off the shelf will not give me everything I need.

    Please do not duplicate posts. You already posted it here
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/5dfc3897-3ffb-490b-8e60-e775b43d3303/how-can-i-implement-this-database?forum=sqlgetstarted
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • How can we move our existing documents into iCloud?

    So far I've been presented with the option to save files into iCloud (textedit and the like). How can we take our existing documents (Word, Excel, TXT, PDF, etc) and store them in iCloud as well? Short of individually opening each one and saving in iCloud...

    iCloud is not intended for general file storage. (It is not iDisk.) It's also not organized the same way. Each application is responsible for interfacing with its own documents in iCloud; Word and Excel do not have the function encoded.

  • My wife and I each have an iphone 4, how can we each get own itunes

    my wife and I each have an iphone 4 and one itunes account.  our calendars and address books have merged on both phones.   how can we each get own itunes accoung

         Hi, you may have to manually remove calendar events and contacts that are irrelevent to each of you. To create an Apple ID account please click here. After doing this you can simply navigate to the App Store and go to the "Featured" category. From there scroll to the bottom and you can then tap on the account name and then press "Sign Out" for the iPhone that you wish to switch accounts for.

  • How can I implement GCM push notifications in AIR?

    How can I implement GCM push notifications in AIR? How can I implement GCM in Android using flex?

    You have 2 ways, first is buy the ane, are alot such as: http://myappsnippet.com/gcm/ or review the open in: https://github.com/freshplanet/ANE-Push-Notification or http://afterisk.wordpress.com/2012/09/22/the-only-free-and-fully-functional-android-gcm-na tive-extension-for-adobe-air/ , that for client side, for server side you can buy in http://urbanairship.com/ or enter in the world of build your own pisblisher server, in this case you need to read android and ios and blackberry notification, each one has different methods.
    Also, here you have more information: http://forums.adobe.com/message/4626292
    looks good.

  • Can we create our own loops? Basic question.

    Hi,
    Can we create our own loops in Logic Pro. I see in all the tutorials. They are either taking input from external instruments OR use existing apple loops.
    I have tried FL studio demo to create our own loops. But there is no trial version for Logic Pro. Need your inputs before I purchase it.
    Thank you.
    Anji

    Yes you can!
    It is as simple as selecting a Region (optional trimming recommended) and choose the Export command.
    A Dialog window opens up that lets you enter the metadata
    Apple had its separate "Apple Loop Utility" app (now only available in the developer package) that allowed you to create loops in a standalone app. The built-in loop capability in Logic uses part of that engine.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    Hello Halfback71,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/ht5622
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    Best of luck,
    Mario

  • My wife and I share a computer for our itunes accounts. How can we copy our music libraries to each others accounts without erasing the original library? We want to merge our songs.

    My wife and I share a computer for our itunes accounts. How can we copy our music libraries to each others accounts without erasing the original library? We want to merge our songs.

    If the music is on the same computer, import the songs to your iTunes library by dragging them into iTunes or choosing File > Add to Library (Mac) or File > Add File to Library or Add Folder to Library (Windows).  If the music is on different computers you can set up Home Sharing to copy the music from one library to the other (see http://support.apple.com/kb/HT3819 and http://support.apple.com/kb/HT4620).

  • All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    Everything that you have checked in your icloud settings will be shared between devices using the same Apple ID.  If you don't want icloud to share that information, then simply turn off that process under settings > icloud

Maybe you are looking for

  • Alert About battery dumped using showfaults is not present in syslog

    Hello, My problem is the following: when I am connected on sc and with showfaults command I can see the warning concerning the battery threshold, but this warning do not appear in syslog under /var/log/. And also when using prtdiag -v command nothing

  • Hi from belgium a problem with blackberry 8520

    help please blackberry 8520 hi i have ablckberry 8520. Version: 4.6.1.296 . i use it to navigate in internet every thing is ok. but i have a problem with a site of advertising that i always use it ; http://www.vivastreet.be/ I CANT LOGIN IN THIS SITE

  • JDCB Driver not doing data transformation on Julian dates and amount fields

    Hi All, In our newly installed BI Publisher instance (10.1.3) is not doing any data transformation on JDE Julian dates and Decimals. I've read that these field values are supposed to be converted automatically. Is there some setting in the JDEJDBC dr

  • Integration b/n MM and SD

    Hi Friends,   Please can anybody detail integration points b/n MM Module and SD Module?   (also specify the underlying databse table names and fields with detail) . Regards Srinivas

  • Any Chance of Integrating MI with MDM/ XI/ BI

    Hi All, I would love to know any information on integrating MI with MDM/BI/XI or vice versa. According to me using XI in MI is a restriction. Any updates from SAP regarding the same (May be in Newyork release). Thanks in advance. Cheers, Karthick