question related to the configuration of POF and use-sub-classes

Hello

I noticed that by default POF in coherence.jar (coherence-pof - config.xml) requires the use subclasses true indicator (the ultimate-sub-classes use value is true if any POF loaded configuration file specifies that it is true), and making it impossible to obtain if certain error messages a subclass of a registered type is not listed specifically in the POF-configuration and users can silently losing data in this way.

My question is:

The indicator of use subclasses in coherence-pof-config. XML set to true only because of Throwable-s, or are there other classes provided by coherence that are serialized by a resolution of the subclass and so dependent on the indicator of use subclasses being true?

If only the Throwable-s which depend on, instead of set to true, can we set it to false and use the following instead of ConfigurablePofContext as class the class serializer for POF-enabled services:
import com.tangosol.io.pof.ConfigurablePofContext;
import com.tangosol.run.xml.XmlElement;

/**
 * This class extends ConfigurablePofContext with the possibility to
 * configurably disable the subclass-allowed setting forced true in the
 * coherence-pof-config.xml, and still be able to use ThrowablePofSerializer for
 * each not specifically configured Throwable subclass.
 *
 * @author Robert Varga
 */
public class ThrowableAwareConfigurablePofContext extends
      ConfigurablePofContext {

   /**
    * By setting this flag to true, it is possible to disable subclass
    * resolution. Interface resolution remains untouched.
    */
   private boolean m_fDisableSubclassAllowed;

   /**
    * {@inheritDoc}
    */
   public ThrowableAwareConfigurablePofContext() {
   }

   /**
    * {@inheritDoc}
    *
    * @param sLocator
    */
   public ThrowableAwareConfigurablePofContext(String sLocator) {
      super(sLocator);
   }

   /**
    * {@inheritDoc}
    *
    * @param xml
    */
   public ThrowableAwareConfigurablePofContext(XmlElement xml) {
      super(xml);
   }

   /**
    * Sets the {@link #m_fDisableSubclassAllowed} flag. You can set this as an
    * <init-param> in the Coherence cache configuration file.
    *
    * @param disableSubclassAllowed
    */
   public void setDisableSubclassAllowed(boolean disableSubclassAllowed) {
      this.m_fDisableSubclassAllowed = disableSubclassAllowed;
   }

   /**
    * @return false if disableSubclassAllowed is true, or result from the super
    *         implementation otherwise.
    */
   @Override
   protected boolean isSubclassAllowed() {
      return (!m_fDisableSubclassAllowed) && super.isSubclassAllowed();
   }

   /**
    * If the super implementation could not resolve the type id for the class,
    * and subclass-allowed is disabled and clz is a {@link java.lang.Throwable}
    * subclass then it falls back to the configuration for
    * {@link java.lang.Throwable}.
    */
   @Override
   protected int getInheritedUserTypeIdentifier(Class clz) {
      int result = super.getInheritedUserTypeIdentifier(clz);
      if (result == -1 && !isSubclassAllowed()
            && Throwable.class.isAssignableFrom(clz)) {
         result = getUserTypeIdentifier(Throwable.class);
      }
      return result;
   }
}
Thank you and best regards,

Robert

Hello

Ok. Here goes. Yes, you are right. If you can tolerate interface use being true, the only thing you have to worry is Throwable instance (or subclasses it) in Java and Exception instances (or subclasses it) in .NET.
Please let me know if you have more questions.

Best regards
-Dave

Tags: Fusion Middleware

Similar Questions

  • can I download u.a.c and re install instead of completely relative to the configuration of my system as the last 2 repairs did not work?

    user account control.

    can I download u.a.c and re install instead of completely relative to the configuration of my system as the last 2 repairs did not work?

    http://www.Vistax64.com/tutorials/48893-user-account-control-UAC.html

    Read the above info.

    It can help you.

    And this information about the repair facility

    Read this tutorial on how to do a repair installation:

    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    See you soon.

    Mick Murphy - Microsoft partner

  • I format the machine. How to back up the configuration of Firefox and bookmarks for re-installing later?

    I need to reinstall my operating system to windows 7. Firefox works fine. All I need is a procedure to save the configuration of Firefox and bookmarks to facilitate the configuration process when I re - install Firefox later. Thank you

    Firefox stores all your information in a folder called "account profile". If you back up to the top (on a USB key, for example), you can copy it back later after you have reinstalled your computer (including Firefox, of course) and all your settings, passwords, bookmarks, etc. will be present again. Take a look at: back up and restore the information contained in the profiles of Firefox.

  • At the start, my phone freezes on the configuration of updates and restarts

    At startup, my phone freezes on the configuration of updates and restarts. It won't let me even put my password. Automatically, it restarts and continues to do the same thing over and over again... I need help!

    What were the results of the test of the hard drive?

    It seems that things go too far and you need to perform a factory restore and reinstall the files on your system.

    Repeatedly press the F11 key at startup to enter the Recovery Manager, and then follow the instructions.  I hope that the recovery partition is not damaged.

  • Web server plug in the configuration of Reporting and analysis

    Hi Hyperion gurus,

    Please suggest: -.

    at the time of Configuring Reporting and analysis (taken from Web server in the configuration of Reporting and analysis)

    What Web server I would prefer to use for planning and working space (Apache HTTP server/IIS HTTP Server) I'm having IIS installed on my environment.

    If you're suggesting IIS: HTTP Port?

    He suggested that if I select the Apache HTTP Server Port: 19000

    Somewhere I read the required planning installed IIS server that's why I'm confused.


    Thanks for the reply in advance...


    Thank you
    Kumar N

    Hello

    It is up to you what you choose, most people go with the apache plugin and would go for this one, it is much more robust and rarely there at - it problems with it. The apache option will install all necessary files.

    You've probably read that you needed IIS to use EPMA.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • I want to know the differences between the conditions of subscription and use of Photoshop for photographers of the usual subscription?

    Nice day! I want to know the differences between the conditions of subscription and use of Photoshop for photographers of the usual subscription? And if I can buy then and for how Adobe Illustrator? What will be the beta of the Adobe XD for Windows? Thank you!

    If you ask what is the difference between photographic subscription and the subscription of stand-alone application, then the answer is both are essentially the same except for two ways. The photographic edition comes with Adobe Lightroom and 2 GB of cloud storage. The stand-alone Photoshop version comes on its own, but with 20 GB of cloud storage and is two times more expensive. If the 18 GB of cloud storage is an additional value, I would say probably no - put the money that you save on an external hard drive in place. The photographic edition was initially a temporary special offer caused a suggestion from one of the co-creators of Photoshop, but turned out to be very popular with fans, private and business and so we have a permanent plan to subscribe to Photoshop. There is no plan equivalent to Illustrator and who is available at a single price. With the subscription model, you can cancel at any time, but the contract is 1 year, if you cancel at the beginning there is a penalty clause which will ask you to pay extra this tax applies only if you pay your monthly subscription every year.

    You don't say where in the world you are, but the link below shows the available plans. There is a drop down box that allows the conversion in different currencies.

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Hope that helps.

    Terri

  • Question related to the entrance with pci 6221 and SCC 68 analog

    I use 6221 PCI and SCC 68 analog read of voltage between the terminals of the drain and the source of a transistor. The drain is at 0 Volt and source is connected to 5 volts via a 100 k resistor. The transistor is used as a follower of the source, and therefore the output is measured at the source of the Terminal. When I measure the voltage by using oscilloscope, I see clearly the change of output as a result of change of voltage of the door. But, when I try to acquire the same by using labview, I see nothing. I tried to change the signal to the CSR, NRSE, but nothing works. Seems to be that something related to differences in impedance. Can you please advice me on this issue? Thanks in advance

    Hi rsd111,

    I understand that you measure a circuit similar to this ( http://en.wikipedia.org/wiki/Common_drain)

    I also get that you use an external power supply with GND connected to the Drain and - 5V connected to the Source with a 100 k resistor.

    You should be able to measure the tension between D and S setup a differential measurement and connection Ai0 + D and Ai0 - s, in fact you can youse Ain you prefer.

    You should be able to do the same measure also at configuration NRSE linking Ai0 AiSense at the Source and drain.

    The Board's input impedance is greater than 10GOhm, it must behave as the oscilloscope in pairing mode high-impedance DC.

    6221 specifications: http://digital.ni.com/manuals.nsf/websearch/8117DF4C5A29C95C862573020061023B

    Nice day.

  • Memory problems and questions related to the process

    Does this look just for you, because the modified memory does little until after I had computer problems and had to do a factory reset

    The operating system is Windows 7 64-bit edition SP1

    I disabled SuperFetch is told by the way, if this help anyone on this issue.

    Resource monitor

    Windows process

    Services

    Performance

    Hello

    When your computer doesn't have enough memory for all the actions it is trying to perform, Windows and your programs can stop working. To help prevent information loss, Windows will inform you when your computer is low on memory. You can also learn to recognize the signs of low memory and take measures to prevent the problem. Insufficient memory problems occur when your computer is running out of RAM and becomes virtual memory. This can happen when you run more programs that the RAM memory installed on the computer is designed to support. Low-memory problems can also occur when a program free up memory that it needs more. This problem is called memory overuse or a memory leak.

    You can consult the following Microsoft articles and check if it helps.

    Diagnosing memory problems on your computer

    http://Windows.Microsoft.com/en-AU/Windows7/diagnosing-memory-problems-on-your-computer

    Prevention of problems of memory

    http://Windows.Microsoft.com/en-AU/Windows/preventing-low-memory-problems#1TC=Windows-7

    You may receive an "Out of Memory" error message because of the limitation of in Windows Vista or Windows 7 desktop heap

    http://support.Microsoft.com/kb/947246

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://windows.microsoft.com/en-US/windows7/Back-up-the-registry

    I hope this helps.

    Please post back with the State of the question and we will be happy to help you further.

  • Two questions relating to the signature using restricted code API: s

    First question

    I have a library that contains classes that requires the signature in order to use API:s. limited one of the functions in the library uses "persistent storage". My application accesses the library import library module, then instanciates and calls the function that I need.

    Is it enough to have signed library or don't call asking the library must sign too?

    Second question

    Is it possible to configure the simulator so it actually tests that the modules using API: s limits are signed correctly?

    Check the Simulator definition "activate the safety of the device. When this setting is enabled, the Simulator checks would be signatures almost like a true pocket computer. For your application, which should be pretty good. If your module is missing a required signature, the simulated Pocket will complain even as would a normal hand.

  • Configure the router WRT54G with the PUBLIC IP address and use the DHCP protocol for internal computers

    Hello

    I have a service online Internet with 5 public IP addresses.

    The router and the AP are connected to a switch.

    I would like to set up a WRT54G Router with a public IP address and use DHCP (with private ip address) for the computers that will connect to the AP.

    That the AP is connected to the switch, it is possible that the other wired computers that are connected to the same switch can get an IP from the DHCP?

    Thanks in advance

    In this case, the routing is automatic.

    WRT54G configuration:

    WAN:

    Internet connection: static IP address

    IP address: 180.X. X 170

    Subnet mask: 255.255.255.248

    Gateway: 180.x.x.x (Ex: 180.x.x.1)

    DNS: servers your ISP DNS

    LAN:

    The IP address of the router: 10.10.10.1

    DHCP range: 10.10.10.100 of-online 10.10.10.200

  • How to configure the Windows speech recognition and use gtalk and gmail?

    Original title: Windows Vista speech recognition program the

    Trying to learn how to use the program of recognition of the window so that I can help a friend who has very high served as his hands. I'm getting the hang of it, but I need to know how to use Windows RV with gmail, because that's where we have been typing his e-mails for him, and is where he'd like to read his mail. On my own page of gmail, I am able to use the "numbers" for everything except actually typing in the main field, where he would actually type emails. Anyone able to help?  Max of TIA

    Hello
    • What happens when you click on the text box and dictate?
    • Also, try to use the HTML version of gmail and check.
     
    1. in Windows vista speech recognition.
    I've collected some articles from the Microsoft Knowledge Base that will help you in until the speech recognition settings.
     
    2 on the use of speech recognition on gtalk you can ask your question on the forums of gtak. Here is the link.
     
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Question related to the extension of disk C

    Separated from this thread.

    Hey, I want to extend my C drive and have a lot of free space on my D drive, but the problem is my drive C is on disk 1 (TPG) and my D drive is on disc 2 (MBR) and I can't seem to transfer between the two discs... Anyone know if this is possible?

    Hi Stef,

    Thank you for visiting Microsoft Community to ask your question.

    MBR (Master Boot Record) and GPT (GUID Partition Table) are two ways to store the information of partition on a disk. You must convert the MBR to GPT or vice versa, then you would be able to share the space between them.

    For help, please refer to this link.

    Convert a disk from MBR in a GUID partition table disk

    http://TechNet.Microsoft.com/en-us/library/cc738416 (v = WS.10) .aspx

    Hope that the information provided is useful. Do not respond if you need more help.

  • Newbie question relative to the composition of base layer VERY in PSE3

    Sorry, this question is interbreeding - I want to do something super basic, but I can't know, of 40 - odd micro-sous-topics which the PE3 help file lists for layers - unnecessarily, not in any order of workflow - how to do this.

    I have a photo of a person in a room. I also have a picture of a beach.

    I want to cut the man of the 1st photo, stick him on the beach and then be able to manipulate him (him reposition, resize, etc.) without affecting the substance of the beach. A

    I used the magic lasso to select the man of the 1st photo and then copied him, then he glued on the picture of the beach. Problem is doing that I can not slect / manipulate comes from him; It is now merged in the photo of the beach, so no matter what I try to do just the man, now affects the whole new man + the photo of the beach.

    It is hgot to be the only way to do it... can someone take pity on me and give me a beef?

    Well, hover over the Panel layers/pallet and click on the layer with the man (should be the top layer there). Then click on the move tool, which is the first tool in the Toolbox. Then you should be able to grasp man and move him, resize, rotate, etc..

    When you want to stop working on the picture, save it as a PSD or Tiff file to keep the layers so that you can make further changes. JPEG can't have layers so it will definitely be stuck if you use this format.

  • Question related to the deployment of Hyperion

    Hi all

    I want to install Hyperion 11.1.2. Is there a difference between automatic and manual deployment services Web of Hyperion on Weblogic deployment. Is there an advantage if we do manual deployment on the deployment of the car.

    Thank you
    Prashanth

    It's about what he says is: -.
    manual deployment, you must deploy the web application yourself and configure everything manually.
    Auto will deploy the web application and configure automatically.

    Go with automatic deployment, unless you have a reason not to.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Two questions relating to the archive redo logs with RMAN backup

    DB version: 11g

    I am new to RMAN.

    My database is in ARCHIVELOG mode. I intend to make a weekly backup for my db (02:00 every Monday). There will be all the incremental backups between these windows(Monday-to-Monday) of backup that I have would function for retrieving archived redo logs.


    Question1.
    I want to save the archived logs every day (for example at 23:00). How can I configure that?

    These are the configuration setting, that I intend to implement. I don't know how to set up the archive log backup
    configure default device type to disk;
    configure retention policy to redundancy;
    configure device type disk parallelism 1;
    configure channel 1 device type disk clear;
    configure channel 2 device type disk clear;
    configure channel 1 device type disk format '/u05/rman1/datafiles/rmnabackup1_%U';
    configure channel 2 device type disk format '/u05/rman2/datafiles/rmnabackup2_%U';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/u05/rman1/control_files/rmnabackup1_%U';
    Question2.
    After that a new full backup is taken at 02:00 on Mondays, the archived redo logs accumulated since the last 7 days become unnecessary. How can I automate the removal of the archive redo logs with RMAN?

    Archive the log delete them all input command will take the destination of the log archiving log backup archive and delete this destination.

    In the log archive destination he has archived log in the sequence 1 to 100 then will he take the backup and delete any of the destination (Monday 23:00).

    In the log archive destination he has archived sequence journal 101 to 150 then will he take the backup and remove those in the destination (Tuesday 23:00).

    In the log archive destination he has archived log in the sequence from 151 to 180 so will he take the backup and delete any of the destination (Wednesday 10:00).

    It will continue like that.

    Concerning
    Asif Kabir

    -If you help brand the response as correct/useful.

Maybe you are looking for

  • No effect of {Enter} in the lacation bar

    I use Firefox on Windows 7 (64 bit) 4.0.1.Enter a Web site address and pressing {Enter} has no effect. I have to again click the green arrow on the right to navigate to the address entered.What's wrong?

  • Cannot use the Webcam Microphone

    I use Lunbuntu 14.04 LTS 64 bit and I have a Logitech webcam C170. When I do a test call there is no sound at all. I have check that PulseAudio configuration but doesn't ' nt seem to find any problem in the framework. It happens when fresh installed.

  • Satellite C660 - 21 c - problems with modules of RAM

    Hello I was considering upgrading my RAM for my C660 - 21 c from 4 GB to 8 GB. So I decided to leave my 4 GB of ram in the ram slot to see the name & type of latter. Once I did, I inserted it, however, now, when I press the power button, the laptop t

  • SE recoverable material Non-erreurs

    I'm helping a friend When running the diagnostics, I found these errors. How can I fix them or is the hard drive bad? Thank you

  • Vista is not generate video thumbnails

    Vista is not generate thumbnails for one of my new video files.  The oldest are very good, but something new (mpeg, flv, avi, no matter) just takes the form of icon.