Listening for new cachings getting created?
I'd like to be able to register my own MBeans on each distributed CacheServer for each cache that lives on that server. Is it possible to register a listener anywhere that gets called when a new cache gets created? Alternatively, is it possible to register a listener that is called after the cache factory has finished starting all the "autostart" caches?
I'm using version 3.3
thanks
sam
ps - I'm already registering my own custom global mbeans... but they are created before any of the caches get created.
Sam
You can specify your custom CacheFactory class in the override file so you can still use DefaultCacheServer
When I needed to intercept cache creation I extended DefaultConfigurableCacheFactory and overrode this method:
public NamedCache configureCache(CacheInfo cacheInfo, XmlElement xmlScheme, ClassLoader classLoader)
Then just call the super class version before or after doing whatever you need to.
The XML for the override file looks like this
<coherence>
<configurable-cache-factory-config>
<class-name>com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>
</coherence>The above snippet is taken from the Incubator common library. You would replace com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory with the name of your class.
You need to call the override file tangosol-coherence-override.xml and put it on the class path or if you call it anything else then specify the name as a JVM argument with -Dtangosol.coherence.override=<name of your file>
Jonathan
Similar Messages
-
Listening for new/removed NetworkInterfaces at runtime?
Hey everybody good morning,
Are there any good solutions or libraries for detecting dynamically at run-time when a new NetworkInterface gets created(or removed) - due to things such as the end-user physically plugging in a new Ethernet rj45 cable into their NIC(s)?
Does java provide any listeners to use that would receive an event being fired when a new NetworkInterface has been created / made available?
Right now, I have to run a thread and call NetworkInterface.getNetworkInterfaces() at my predefined interval of seconds throughout the lifetime of the program (which is wasting cpu/memory resources)
I also have to do this to detect when a NetworkInterface has been "taken away" / made unavailable.
Thanks!I'm not sure your typical operating system offers a signaling mechanism for unplugged network cables.
Right now, I have to run a thread and call NetworkInterface.getNetworkInterfaces() at my predefined interval of seconds throughout the lifetime of the program (which is wasting cpu/memory resources)I tried NetworkInterface.getNetworkInterfaces() on a couple of computers. On Windows one call to that method took about 0.001 seconds, on Linux about 0.00007 seconds. If done every few seconds, that is a rather insignificant percentage of CPU time. Are you sure you have a problem with resource waste? -
I have the latest firefox app on my laptop. When I click a link attachment to see a dinner menu for example, new tabs get created one after the other and so on. It's like a feedback loop, just more tabs and tabs but then you have to close the firefox window multiple time to get it to stop. I went to other websites and clicked their attachments and the problem repeated.
I have the current version of adobe also. please help. I'm using my internet msn exlplore now so can I send you this message. please help!
Thanks,
WayneYou get tabs opening endlessly if you select the Firefox program to handle a file when you get an "Open with" dialog.
*https://support.mozilla.org/kb/Firefox+keeps+opening+many+tabs+or+windows
You will have to revert this setting.
Rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
*http://kb.mozillazine.org/mimeTypes.rdf
*http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions -
New Session getting created(!)
Hi All,
I am facing a wierd behavior. I have an application with a
login page(jsp). User submits his authentication details,
is authenticated in a servlet, and some of his information is
put in the session. Later he gets "redirected" to another
jsp(just like any other app).
This is working fine most of the times. But randomly it is
so happening that the jsp being redirected to does not get the
values put in the session.
Some more debugging showed that from login jsp to servlet, same
session continued till the very last step(just before
redirection). Just after
response.sendRedirect(response.encodeRedirectURL(url));
a new session gets created(!!). Any pointers?
Please note I am testing all this out in a browser which is
accepting cookies.
Urgent!!
We have the same problem on WLS5.1.
Any suggestions would be fine
Regards
Osman
"Bijay Kumar" <[email protected]> schrieb im Newsbeitrag
news:3d0ed20f$[email protected]..
>
> Hi All,
> I am facing a wierd behavior. I have an application with a
> login page(jsp). User submits his authentication details,
> is authenticated in a servlet, and some of his information is
> put in the session. Later he gets "redirected" to another
> jsp(just like any other app).
>
> This is working fine most of the times. But randomly it is
> so happening that the jsp being redirected to does not get the
> values put in the session.
>
> Some more debugging showed that from login jsp to servlet, same
> session continued till the very last step(just before
> redirection). Just after
> response.sendRedirect(response.encodeRedirectURL(url));
> a new session gets created(!!). Any pointers?
>
> Please note I am testing all this out in a browser which is
> accepting cookies.
>
-
Hi ,
We need to to create a notification for new virtual machines created on Hyper-v Using SCOM or another way
thankshttp://sincealtair.blogspot.com/2010/04/how-to-ask-questions-in-technical-forum.html
Not nearly enough information.
If you are asking about SCOM, it is better to ask in the SCOM forum -
http://social.technet.microsoft.com/Forums/en-US/home?forum=operationsmanagergeneral
.:|:.:|:. tim -
Hi,
Can you tell me how to make or use (may be a library ) a listener that can response if an incoming sms received.
Thanks.What's the listener that listens for new tabs being
added to JTabbedPane?ContainerListener -
Another techincal system for SRM is getting created in SLD
Hello All,
I have a problem with duplicate Technical System being created automatically in our SLD. Since, there is no business system assigned to that, I am deleting that every day though It keeps on getting created every day. I understand that there could be a job which does this periodically.
Because of this, we encounter NO BUSINESS SYSTEM assigned error all the time. The work around is to delete that Duplicate Technical System in SLD.
What I observed is that we have three s/w compenent versions imported for SAP APPL. It might be funny in asking, Is these multiple SWCs for SAP APPL has anything to do with this issue ? And I also imported SRM Server 7.01 SWCV, there is no other version for this SC.
Please throw some light and give me some idea.
Regards,
Lakshman V.I also noticed that there is a difference in the Installation numbers of both the Technical Systems.
Hi Lakshman,
Which Technical system has got correct SRM installation number? Existing Technical system or new Technical system which is getting created eveyday?
Scheduled SLD Data supplier job in SRM collects the data(SAP products, database parameters, hosts, clients, and so on) and send it to the SLD Server. -
Price refresh for new Shopping Cart created from a model
I'm looking for a solution for the following problem.
When i create a shopping cart from a model that has been previously created with a certain price, i'd like the system to update this price if it has been updated between model creation time and new shopping cart creation time from this model. (Whatever price it is catalog, material master price etc...)
If i check the new SC created from the model with function module BBP_PROCDOC_GETDETAIL and my SC number, i see that table E_PRIDOC is fullfilled like this
COND COND_RATE COND_ COND_P CON D C C GUID CON CON COND_VALUE COND_
0100 106,53 EUR 1 PC Y 90CA85CDA91B254DB35E750519F3975D 001 001 2.556,72 EUR
01PB 2.532,72 EUR 1 CRN 90CA85CDA91B254DB35E750519F3975D 050 001 2.532,72 EUR
2.532,72 EUR 1 CRN 90CA85CDA91B254DB35E750519F3975D 100 001 2.532,72 EUR
0,00 EUR 1 CRN 90CA85CDA91B254DB35E750519F3975D 200 001 0,00 EUR
2.532,72 EUR 1 CRN 90CA85CDA91B254DB35E750519F3975D 300 001 2.532,72 EUR
condition type 0100 is inactive (with the new correct price) and condition type 01PB (manual condition) is used with SC model price and makes that 0100 is inactive.
How to get 0100 condition type active instead of 01PB when creating Shopping cart from models ?
Any ideas are welcome.
PE HAMONSupplier Relationship Management Implementation Guide (IMG): SRM Server ® Cross-Application Basic Settings ® Pricing ®
· General Configuration Parameters
· Process Condition Types
- Maintain condition type 0100 here if not maintained
· Process Calculation Schema -
In process calculation schema make 0100 condition type as default or assign 0100 to the calculation schema
· Process Condition Groups
Go through this steps and you will be able to figure out.
For more information you can log on to this URL
http://help.sap.com/saphelp_srm50/helpdata/en/67/c3833cfa3dbc2ce10000000a114027/frameset.htm
Please assign points if you find the answer usefull
Thanks
Sunny -
Creation of new Print Program & Variant for new Correspondence Type created
Dear Friends,
I have created 2 new Correspondence Types in SAP as SAP61 (Vendor Debit Note) & SAP62 (Vendor Credit Note) by copying SAP09 (Internal Document) properties like itu2019s Name of the print program - RFKORD30 & Name of variant - SAP09.
We are facing problem when we execute print program in F.64 for SAP09 it is coming same like SAP61 or SAP62. Actual script & print values of SAP09 are replaced by SAP61 or SAP62.
Please suggest us how we can differentiate both SAP09 & SAP61/62. Because we use these correspondences for different purposes like SAP09 gives the information for the Line items in the Document whereas SAP61/62 gives the information of vendor line item weather it is debit or credit entry.
Your kind co-operation in this matter is highly appreciated.
Thanks & Regards,
Naveen Kumar.P"Assigned the from to the company code - progam in V_001F_B"
Check 'Form ID' field in this IMG transaction against the program and form that you have created.
I am assuming there are 2 lines with same entries but different form IDs.
Or there are 2 lines with the same entries but different CoCodes (seem to remember that the CoCode is not taken into account as a key in certain programs - not logical i know but remembered a previous issue I had many moons ago - could be to do with the blank entry for CoCode field if there is one being picked up by the program before the entry that has your CoCode).
Now check the variant attached and Form ID in step 'Created new program variants in SA38'
Ensure the correct program and variant are attached in step OB78.
My assumption is Form ID is the key.
Hope this helps -
New account gets created with wrong permissions (777 instead of 755)
Hey Apple and Forum people, looks like there's a pretty bothersome error in the way that user permissions get set when you set a user's home folder to a drive partition.
By default, a user's home folder is supposed to get 755, with all of its subdirectories (excluding Public and Sites) as 700. But if you set up a new user and point his/her home folder to a partition or a separate drive, the folder is set to 777 - meaning that anyone can read, write, and execute any file they'd like to from that drive.
Given the sensible defaults of 755 during normal user creation, I can't believe this was intentional. And if it was intentional, then it's wrong and ought to be changed.Set the permissions on the other volume's root directory the same as the boot volume.
owner:root
group:admin
chmod 1775
Make a /Users directory on the other volume and
set permissions same as on the boot volume,
owner:root
group:admin
chmod 755
create your new user directory in the /Users directory on the other volume. -
New Row gets created in table automatically
Hi all,
I have a panel box(pb1) in my JSFF which has a table(tbl1).
When the table is empty, if i collapse table's parent panel box i.e. pb1,
n again expand it..,I see new row created in the table...
I haven't put any code to create new blank row in table view object on collapse n expand of panel box...
How to fix this issue..?
JDEV vesion : 11.1.1.4.0
Please reply...
Thanks.Hi yaminip,
Its not necessary to put the code in expand and collapse action of the panel box may it can be in different place
and the table may refersh while u expand /collapse the panel box and new row came to visible.... keep break point in the EntityImpl Create method or ViewObjectImpl InsertRow method
Find when its get fired........
Regards,
Suganth.G -
No inspection lot created for new inspection type created
Hi all,
We create a new inspection type which is based on a copy-version of an existing inspection type. These inspection type has a inspection type origin of standard SAP 04 (i.e. Goods Receipt from Production).
Question 1 - we bumped into problem when come to testing in which when perform goods receipt, there is no inspection lot created, may I know why?
The following fields of this new inspection type are all checked; those not specified, are not flagged.
1 - Insp with task list (flagged); Automatic Assginment (flagged); Check Chars (flagged); Skip Allow(flagged); Automatic UD(flagged); Serial Number Poss (flagged).
Question 2 - for this kind of inspection type with origin 04, do i need to perform a goods receipt against a production order or purchasing order? How do I perform a GR against a production order?
Thanks.Hi Tuffy,
Possibly you might not have ticked on preferred inspection type in material master. This could be one of the reasons. Try to do GR after ticking this.
The setting you have mentioned (flagged parameters)are seems to be correct. But lot generation is governed by preferred inspection type.
If you have assigned this newly customized inspection type to lot origin 04, then it would be used against production order and not the purchase order.
There are several ways to carry out GR against production order. It depends on the scenarios which you follow
1. MB31 101 movement
2. You may use backflush so while confirming order through CO11N auto GR is posted
3. In case of repetitive manufacturing scenario generally GR is done by MFBF transaction
Regards,
Anand Rao -
New notes getting create on every new folders
Hello,
I have office 2010 professional installed on my work computer. When I create new folder Microsoft one Notes creates its new file 'Open Notebook' by itself.
I want to stop it and delete all other files.
Please help me.
Thanks
SandipHi Sandip,
Do you mean the Open Notebook.onetoc2 file in each notebook folder?
The Open Notebook.onetoc2 file will always be created with one notebook. It's not recommended to delete the file.
The Open Notebook.onetoc2 file is a Microsoft OneNote index file that stores information about the order of note-taking sections. It is used to organize a collection of notes in a notebook. If the onetoc2 file is deleted, OneNote will
display the notebook sections in alphabetical order, which the user can manually reorder.
When you open a notebook folder, you will see the Open Notebook.onetoc2
file and several .one files. The .one files are the sections in the notebook. You can try to double click a .one file and you'll notice that the whole notebook is opened. However, if you there is no
Open Notebook.onetoc2 file found in the folder, when you click a .one file, it will only open the specific notebook Section.
I hope I had explained it clearly.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Configure listener for new database
When trying to setup my database I get a warning "Configuring the dababase with dbcontrol requires a listener to be configured in the current oracle home"
I run netca and there is a LISTENER there, any ideas what is going wrong?
Many thanksI get:
[oracle@localhost bin]$ env | sort
COLORTERM=gnome-terminal
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9Kh3kqcDHI,guid=800cb935a576ed1285a9fb004d695dac
DESKTOP_SESSION=default
DESKTOP_STARTUP_ID=
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
GDMSESSION=default
GDM_XSERVER_LOCATION=local
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-nvX8Sx/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=localhost.localdomain
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
OLDPWD=/home/oracle/app/oracle/product/11.2.0/dbhome_1
ORACLE_UNQNAME=student
PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
PWD=/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/3940
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=3976
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-dpPyeG3940/agent.3940
TERM=xterm
USERNAME=oracle
USER=oracle
_=/usr/bin/env
WINDOWID=23068753
XAUTHORITY=/tmp/.gdm27QDRV
XMODIFIERS=@im=none
[oracle@localhost bin]$ -
I have a FLVPlayer with a skin on stage and I want to listen for the player going into full screen mode when the skin's fullscreen button is clicked. And I want to listen for it going back to normal but I think that is easy enough, I just listen for the escape key, I think. How do I do that?
not the browser
im using a stand alone swf player
Date: Mon, 9 Apr 2012 09:05:51 -0600
From: [email protected]
To: [email protected]
Subject: Listen for Full Screen mode
Re: Listen for Full Screen mode
created by kglad in Action Script 3 - View the full discussion
you should not try and control a user's browser window. but, if you insist, you'll need to use javascript.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4322220#4322220
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4322220#4322220. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Action Script 3 by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
Maybe you are looking for
-
After running Ccleaner today (and it asked me to "close Firefox or the internet cache will not be cleared", but Firefox was closed or so I think), I can't open Firefox at all; double-clicking the Firefox icon on the desktop does nothing, and no other
-
Document Parking Workflow Responsible Agent for Two level release
Respected Members, I have done all the configuration for document parking workflow. i had said if the amount is greater than one lakh it should go two-level amount release. My organisation hierarchy includes two positions, SUB_HEAD with user xyz HEAD
-
Hi, My name is Antreas, i just bought wap4410n and i am trying to set it up as repeater of THOMSON TG585 router. i set it as Wireless Client/Repeater with the same password and encryption of my router but with no luck. It shows that i am connec
-
TCP/IP Printer installs - How do I get the proper driver settings?
I saw an older thread relating to this but I thought I would start a new one to revisit this thought. I want to deploy my printers as TCP/IP and not rely on a shared print server. This is in case the print server goes down, the users will still be
-
Advance Data Grid - Flat Query Array Collection To Grouping Collection Issue
Currently I have a Coldfusion CFC returning a flat query. The query is flat but returns data with four levels. For simplicity let's say Region, Territory, Title, and Person. I place the data into an Array Collection in Flex and then use the Advanced