Cache between multiple contexts(application)

Hi,
I have a need of global cache where I can put my objects from one application and get that object in another application.Both these applications are deployed on the same oc4j server (there is no clustering).
If anyone has an idea of how we can setup and configure a cache in oc4j, which will solve the above pupose, then please let me know.
Thanks in advance.
with regards,
Shrikanth.

Hi,
Java Object Cache in oc4j is very simple concept, but I struggled a week to make it work in the absence of any proper example in oracle site or in web.
Yes, we can place our object in JVM cache and we can use it in multiple contexts(applications) if we required.
What I have done is created a folder called : "javacache" in parent directory of "j2ee" folder and placed my loader class and other utility classes inside folder:-javacache\sharedobjects\classes folder. As classpath for this folder is set atomatically, the cacheloader class will be treated as system classloader and we can initilize the cache here in system level.
No configuration changes nothing, finally it worked.
In case you need any more help, then pl let me know.
Thanks.
Shrikanth.

Similar Messages

  • Wuc-19 when moving between multiple forms applications

    Hi,
    We have 3 forms based systems running from 2 seperate instances
    so our app server farm consists of..
    DEVELOPMENT
    SUPPORT
    INTERNAL
    and of course the standard
    INFASTRUCTURE
    we have webutil installed on all these systems. we recently implemented some CLIENT_OLE2 on the INTERNAL systems, if we use this feautre (export to excel) and then open support or development systems we receive the WUC-19 unable to write to .. error relating to jacob.dll as i am assuming it is trying to download and replace teh jacob file?
    Is there any way to get round this problem with jacob.dll?
    Note if we close all the system down ensuring the JRE is no longer open. we do not have an issue.
    Any help is much appreciated.. hope i have explained it ok.

    We have the same problem. When we run two or more forms applications the jacob.dll gets downloaded a second time. As it is already being used we get the WUC-19 locked error.
    Did you already solve this problem?

  • Metadata sync between multiple planning applications..

    Hi,
    Is it possible to sync metadata for two planning applications using ODI??? I want to sync dimensional metadata directly from "PROD" to DEV using ODI.
    In this case, my source and target will be my two planning applications from PROD and DEV.
    Let me know if anyone had tried this before or let me know the best possible way to do it with ODI(may be extracting and then loading).
    Thanks,
    CM.

    If you store all the metadata in tables then you should be able to push it to either prod/dev application.
    If you don't have all the source metadata then you can use either the outlineload utility (11.1.2.1) and extract or the outline extractor from essbase, if you want to do it direct then you would have to query the planning relational tables.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Failure when FWSM in transparent mode with multiple contexts

    hi experts,
                We have two FWSMs working in active/standby state,  configured with multiple contexts in transparent mode. and the "outside" and "inside" interfaces for each context are in same subnet. 
                Now we have one FWSM broken and the RMA part can't arrived in short time, so  we have the risk that the sencond FWSM could be failed as well.   In the worst case if the two was broken or powered off simultaneously,   i wonder that if the communications between multiple contexts could be ok???
    thanks in advance.

    The software requirements for Cisco Secure ACS are dependent on the type of Extensible Authentication Protocol (EAP) desired. For full support of all the EAP types including EAP-Flexible Authentication via Secure Tunneling (FAST), use release 3.2.3 or higher.
    http://www.cisco.com/en/US/netsol/ns340/ns394/ns431/ns434/networking_solutions_implementation_guide09186a008038906c.html

  • Top Essentials Cache and Multiple Application Servers

    Hello,
    I'm developing a new servlets/services application in Java using tomcat and playing around with toplink essentials. Is it possible, when using multiple servers, to expire cached objects? Eg I update user account info on server 1, but 2 and 3 still have old data. The documentation and blogs I have read seem to indicate you either have to force a refresh of the object or set up readAllQueries to go direct to the db (which rather defeats the purpose of having a cache?) - for fresh data. Though I agree there are some places where up to the moment data is not always required, building a system to scale with expiry caching across multiple app servers seems like something toplink essentials SHOULD be able to do.
    Also, is there any work on when the new rev of Toplink Essentials would be out? I see posts about the 11G preview but that's regular toplink.
    Thanks in advance!

    There are several caching options in TopLink Essentials to handle stale data.
    <p>
    Some of the settings are available through properties in the persistence.xml, but for most you will need to use a DescriptorCustomizer or SessionCustomizer and use the API of ClassDescriptor (refer to JavaDocs for additional info).
    <p>
    Caching options include:
    <p>- Cache Type : (weak, hard, soft, none), a weak cache will decrease stale data.
    <p>- Isolated (shared) : You can set the descriptor to be isolated or cache not shared to avoid caching the class.
    <p>- Refresh : You can enable refreshing at the class or query level.
    <p>
    A ClassDescriptor does have an invalidation policy, but the policies for invalidating based on a time-to-live or time-of-day were not ported from TopLink to TopLink Essentials, however you could write your own pretty easily.
    <p>
    If you upgrade to using TopLink 11g (preview), which you can download and use under the Oracle OTN license, then you have support for using cache invalidation and cache coordination. This functionality is also available in the Eclipse EclipseLink project currently in incubation.
    <p>
    <p>---
    <p>James Sutherland

  • Multiple Context Paths Per Web Application

    Hi,
    We have a Web Application which has a Context Path of "titanadmin". We have some
    HTML pages which refer to this within the URLs they contain. We need to move the
    functionality in this Web Application to another Web Application with a Context
    Path of "gp3admin". We cannot change the URLs in the generated HTML.
    So, is it possible for a Web Application to have multiple Context Paths, so that
    URLs starting with "/titanadmin/" and "/gp3admin/" both go to the same Web Application.
    Thanks,
    Dave

    There is no hard limit to the number of Web Applications (I managed a WSSv3 farm that had 60+, for example). The issue is memory-related and primarily stems from 32bit systems where it was much easier to get Out Of Memory errors on the IIS Application Pools
    when performing a large operation across a 32bit Application Pool (e.g. crawling). However, if you limit each IIS Application Pool to about 10 Web Applications (again, in 32bit land that no longer applies), everything generally works OK given the Web Applications
    do not have a very large amount of content.
    But, if HNSC is in use, a single Web Application should be sufficient, barring any Web Application-specific settings you might need to make.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Sharing of video between multiple applications,

    Is there software that allows the sharing of the iSight cam between multiple applications at the same time.

    Welcome to Apple Discussions, HappyMacste
    Apple's iSight "Your camera is in use by another application" message says "iSight can be used by one application at a time."
    http://b-l-a-c-k-o-p.com/CamCamX.html claims "you can use all your favorite cam applications AT THE SAME TIME."
    EZ Jim
    PowerBook 1.67 GHz   Mac OS X (10.4.10)    G5 DP 1.8  External iSight

  • How to i configure multiple JBoss caches for standard lone application

    how to i configure multiple JBoss caches for standard long application running on single JVM..Please advice and provide me sample code if any..
    Thanks
    NAgs

    [http://www.jboss.org]
    Locking this thread.

  • How to share session object between multiple WAR's

    I am Using servlet 2.3 & websphere 5.1 application server. I am using multiple war applications in my ear and i am able to share context-attributes & session attributes between wars. Can any one guide me how i can share session object?
    I am getting session -time out in first war even though i am doing some operation's in second war. I want to maintian the same session, even in my second war which was created in my first war.
    Can any one help me. Thanks in advance.

    Hi LNL,
    Can you explain more on singleton solution as you said....
    For session attributes & context attributes i am using persistent storage to retrive them in multiple wars. My problem is how should i use "session object" in my second war which was created in my first war.

  • HT1198 If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own

    If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own iPhoto application??

    Have you read this Apple document regarding sharing a library with multiple users: iPhoto: Sharing libraries among multiple users?
    OT

  • Multiple Web Applications WLS 7.0

    Hi,
    I am trying to configure multiple web applications on the same WL 7.0 server and
    am having trouble doing the following.
    I would like to be able to use the following URLS:
    Application #1:
    http://myserver/st/aems - where st/aems maps to the path X:\SimpleTrade2\AEMS\ui\source\htdocs
    Application #2:
    http://myserver/st/acms - where st/aems maps to the path X:\SimpleTrade2\ACMS\ui\source\htdocs
    Root - Default web application - This would be left empty with the idea that our
    company could sell our web applications and we would deploy them on someone elses
    WLS and we would not conflict in any way.
    The problem with the above is that when I look at the DTD and try and configure
    config.xml in the following way:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source\htdocs" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="st/aems"/>
    WLS blows up on startup because it tries to POST-Pend the URI to the path... If
    I change it to:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="htdocs"/>
    This will work but then my URL is not what I want it becomes http://myserver/htdocs
    Is there anyway around this or a way to get what I want?
    Another piece of information, I am developing in Exploded directory format when
    we deploy it will be as an ear.
    Thanks in advance for any ideas!!!
    -Jerry Rodgers

    Thanks for the info Christian.
    I thought I would pass along a bit more inforation for others who might be trying
    to do something similar. In case they run across this message.
    I did determine that if you are using a .WAR file the name attribute of the xml
    node WebAppComponent will allow you to create a different context path than the
    URI. I did not test to see if it allowed you to use a name like "st/aems" I am
    sure "st.aems" would work or any name that may be different than the URI. The
    weird thinhg is that when using the EXPLODED DIRECTORY format the URI is the name
    of the folder under the path and the name property appears to be ignored no matter
    what you change it to you can only get to your web app using the URI.
    Hope this helps someone who comes after me and is looking for the same thing,
    maybe they won't spend 6 hours on it like I did ;>
    -Jerry
    "Christian Plenagl" <[email protected]> wrote:
    >
    Hi,
    this is not possible.
    The URI field contains the directory name of the WebApplication, which
    normally
    is the same name as the directory where you put the webapplication in.
    Christian Plenagl
    Developer Relations Engineer
    BEA Support
    "Jerry Rodgers" <[email protected]> wrote:
    Hi,
    I am trying to configure multiple web applications on the same WL 7.0
    server and
    am having trouble doing the following.
    I would like to be able to use the following URLS:
    Application #1:
    http://myserver/st/aems - where st/aems maps to the path X:\SimpleTrade2\AEMS\ui\source\htdocs
    Application #2:
    http://myserver/st/acms - where st/aems maps to the path X:\SimpleTrade2\ACMS\ui\source\htdocs
    Root - Default web application - This would be left empty with the idea
    that our
    company could sell our web applications and we would deploy them onsomeone
    elses
    WLS and we would not conflict in any way.
    The problem with the above is that when I look at the DTD and try and
    configure
    config.xml in the following way:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source\htdocs" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="st/aems"/>
    WLS blows up on startup because it tries to POST-Pend the URI to the
    path... If
    I change it to:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="htdocs"/>
    This will work but then my URL is not what I want it becomes http://myserver/htdocs
    Is there anyway around this or a way to get what I want?
    Another piece of information, I am developing in Exploded directoryformat
    when
    we deploy it will be as an ear.
    Thanks in advance for any ideas!!!
    -Jerry Rodgers

  • Explain about transparent mode, single mode, multiple context mode

    You can explain about the differents of transparent mode, single mode, multiple context mode in ASA 5500? Thank you very much.

    Great question. Hope the below helps:
    Transparent Mode: In this mode, the ASA will filter traffic without requiring L3 on the ASA. This means that in your config you will not put IPs on the interfaces to be used for traffic filtering. Thus, filtering is transparent to the traffic as the traffic isn't directly routed to the firewall. Think of it like you have a server plugged into a switch. In transparent mode, you place the ASA between the server and the switch and no configuration change is required to the server. In routed mode, you place the ASA in the same physical location between the server and switch, but have to change the server to use the ASA as a default gateway.
    Single Mode: Default mode of an ASA. The ASA acts as a single firewall and all interfaces are provisioned to be managed through a single firewall configuration.
    Multiple Context Mode: The ASA is split into multiple virtual configurations. With the ASA now virtualized, you provision the physical interfaces on the ASA to the virtual firewall configured. Each context has it's own configuration seperate from the rest of the firewall. Multi-context is meant for enterprises to invest in a single piece of hardware and scale it for use as multiple security devices.
    Hope this helps. Let me know if you have anymore questions!
    -Mike
    http://cs-mars.blogspot.com

  • Drag and drop between multiple instances of an executable

    I want to know if there is a special way (not using Windows API) to drag and drop data between multiple instances of a same executable. 
    I have an application built in LabVIEW, where the main window can open a child window. Each window has a plot control. Between the two windows, a plot data of main window can be copied by drag and drop. 
    And I open another instance of the same executable. Now there are two executables(A and B).
    I want to drag and drop a plot data from the main window of B to the child window of A. But in this case, Drag Enter Event is not fired. I think that the event seems to be fired only inside an executable.
    http://digital.ni.com/public.nsf/allkb/AB268878693EF4B586257037004A6725 says that Queue or Semaphore is working only inside an executable. Is drag operation also valid only inside a process?

    Hi,
    Placed images (as opposed to pasted images) in Indesign are by their very nature pointers to an external image file, so there is no way to slim down the size of your exported PDF other than by playing with the export settings. Other than that, ensure that your file is placed in Indesign at 100% and at the correct resolution for your desired output. If you open the PDF in Acrobat, you can also save as a reduced size PDF which may help.
    Good luck!
    Malcolm

  • How to config a shared cache for multiple environments with C API

    How to config a shared cache for multiple environments with C API?  Just like Java edition. Chapter 2. Database Environments
    I want to open large number of databases, at least 10,000. But as the counts of databases opened increase, the db->open operation become very slow. It almost cost 2 hours to 10,000 databases.
    So I try to distribute these databases to multiple environments ( for example, 5 envs ). And in order to improve the efficient of memory use, I want to share cache between envs.

    Hi,
    It is not clear what you meaning about multiple environments. Do you mean these environments are in different directories or  in the same directory ? If you mean environments in different dirs share the same cache, it is interesting why you need that.
    If you do not use DB_PRIVATE to open the environment, the created cache will be on disk, in the environment directory, so it can be shared by multiple processes and multiple threads. Currently, the cache file is in the environment directory, and we do not support specifying a separate directory for cache only.
    Regards,
    Oracle Berkeley DB.

  • Share JSESSIONID cookie between 2 contexts

    Hi all,
    I am trying to share the JSESSIONID cookie between 2 contexts on the same virtual server.
    www.evador.ca/a and www.evador.ca/b
    I tried to put the following in my sun-web.xml:
    <session-config>
    <cookie-properties>
    <property name="cookieDomain" value=".evador.ca";>
    <description>The domain for which the cookie is valid.</description>
    </property>
    <property name="cookiePath" value="/" />
    </cookie-properties>
    </session-config>
    With Firefox I can look at the cookies created. There is only one JSESSIONID with path / and domain .evador.ca. But even with these encouraging info I cannot see the cookie in both contexts...
    I have an another cookie for localization purposes (That I create my self) called lang and believe it or not this works:
    langCookie.setMaxAge(Integer.MAX_VALUE);
    langCookie.setPath("/");
    langCookie.setDomain(domainName);
    response.addCookie(langCookie);
    What am I doing wrong?
    Thank you,
    Luc
    Edited by: lucbard on Dec 7, 2007 2:55 PM

    Servlet specification mentions:
    SRV.7.3 Session Scope
    HttpSession objects must be scoped at the application (or servlet context) level.
    The underlying mechanism, such as the cookie used to establish the session, can be
    the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container.
    You cannot share a cookie between 2 contexts.

Maybe you are looking for

  • CD / DVD drive is missing after upgrading to Windows 8

    My Toshiba laptop (SATELLITE P755-S5320 )  hard drive crashed and had to be replaced. I've got Windows 7 installed and am doing a Windows Update. But I fear that it won't install all the [correct] needed drivers. I see there is a huge list of Drivers

  • How can I change the Apple ID on iMessage?

    I bought this iPhone 4 from my aunt, and it is currently sim-locked to Japan. My problem is that I can't change the Apple ID on iMessage, and my aunt's Apple ID keeps asking for the password. There are no other options in the iMessage than iMessage o

  • Error when i click on 'See all' when browsing podcasts on itunes

    Right on my iphone i click on iTunes > More > Podcasts > Catagories > Technology .. it displays a few results.. and when i click on See All i get an error "Your request could not be completed" I have tried it using both wifi and 3g.. I also have a ip

  • How can I register my Photoshop Elements 2.0 to use on a new computer?

    I have used the program for years, and would like to upgrade if that's possible. My serial number is described as invalid. 

  • How do I set up printer to work on all my computers

    I currently have my Epson Stylus Photo R320 printer hooked up to my 20" iMac. I'm new to Apple and these forums so any help would be appreciated. I would like to be able to have my other computers use this printer as well. So far I have checked the "