Custom load handler

Hello,
          Reading through the documentation on clusters I found the following;
          A developer may use one of a set of default load handlers or may provide
          one specifically tailored for the application.
          I assume this means that I could plug my own load balancing algorithm
          into the intelligent stubs.
          If so, then how?
          Are there any examples of documentation of this, or has anyone else
          defined their own algorithm.
          Thanks,
          Kirk
          

          http://www.weblogic.com/docs51/classdocs/API_rmi.html
          http://www.weblogic.com/docs51/classdocs/javadocs/weblogic/rmi/extensions/CallRouter.html
          -callRouter callRouterClass
          May only be used in conjunction with "-clusterable". Specifies the
          class to be used for routing method calls. This class must implement
          weblogic.rmi.extensions.CallRouter. If specified, an instance of this class
          will be called before each method call and be given the opportunity to
          choose the server given the method parameters. It either returns a server
          name or null indicating that the current load algorithm should be used to
          pick the server.
          - Prasad
          Kirk Fritsche wrote:
          > Hello,
          >
          > Reading through the documentation on clusters I found the following;
          > A developer may use one of a set of default load handlers or may provide
          > one specifically tailored for the application.
          >
          > I assume this means that I could plug my own load balancing algorithm
          > into the intelligent stubs.
          > If so, then how?
          > Are there any examples of documentation of this, or has anyone else
          > defined their own algorithm.
          >
          > Thanks,
          >
          > Kirk
          

Similar Messages

  • Custom event handler

    Just curious. I made a custom event handler that is
    dispatched from within a class when an XML document is loaded. The
    listener is attached to the instance of that class in the FLA. The
    attached code to this thread is what is for the class instance.
    Does that have to be out there? Is there a cleaner way to do it so
    that the code would be away in a class? Just wondering....
    Thanks!

    Well I need my instance to know when the data is loaded into
    the object, but I wish there was a more transparent way to do it. I
    guess I could somehow put that stuff into the initiation of the
    class....

  • Initial customizing loads (DNL_*) causing short dumps in R/3

    Hi,
    I'm trying to run the initail loads for the DNL_* customizing objects.  When I start a load in R3AS and check the status in R3AM1, it shows "Running".  In the CRM oubound queue (SMQ1), there is an entry for the load with status SYSFAIL.  The detailed status message is "The current application triggered a termination with a short dump". 
    The short dump in R/3 shows an error "No external system (such as CRM) connected" which occurs in function module CRM_FIRST_CALL_OPERATIONS.  Looking at the code, there seems to be a problem with the CRMRFCPAR table.  I had only one record in this table for object CUSTOMER_MAIN, so I tried adding a record with Object Name "*" and Load Type "I", but this had no effect. 
    What is the proper configuration of table CRMRFCPAR for customizing loads?  Is it possible that this error is related to some other config or a problem with the RFC connection?  These loads work fine in our quality system which is configured the same as production (as far as I can tell).
    Thanks.
    Martin

    hi,
    Maintaining Table CRMRFCPAR (SAP R/3)
    The parameters in this table indicate the RFC destinations which receive data. The required parameters include, for example: consumer, client, object name, and download type.
    You can send data to a certain consumer only in an initial download and not in a delta download by making the appropriate specifications for the data exchange.
    User- That uses the OLTP plug-in functions as data receivers
    Object name -Object name
    Destination -Specifies the destination of the CRM server
    Load Type -Restricts CRMRFCPAR entries to the initial (I) or delta (D) download.
    Out Queue - Name RFC outbound queue
    In Queue -Name RFC inbound queue
    BAPI name
    INFO -Information/Comments
    InQueue flag- Controls whether qRFC inbound queues are used on the CRM server
    Send XML -XML supports (Should data be sent in XML format?)
    Stop data -Causes the OLTP System to place data into the outbound queue.
    Regards
    sri

  • Custom Loading screen for blu-ray

    I'm fairly new to this so my experience level is low. However, I have no problem creating my own static menus and burning great quality Blu-Ray disks. I'm just now learning how to create active menu content and would like to implement the custom "loading..." screens that I see on many Blu-Ray movies. So, what is the proper way of implementing such a feature using the toolset available with Adobe Production Premium CS5.5? What is the correct terminology for this screen? Are there any free tutorials on YouTube describing this? Is this simply a flash menu load screen?
    Thanks,
    Tony

    The lack of response actually indicates that none of us know.

  • Custom Loading Screen in Applet

    Hello,
    in Flex/Flash the swf File contains 2 parts. First the loading Screen and second the programm.
    So it loaded the loading Screen and than contains with the loading of the programm.
    You can override the common Loading Screen and add some company specific varaint. The is very usefull, cause many company have a own CI.
    So it is possible to change the Loading Screen in Java FX Applets?
    Thanks for you Answer.
    Regards,
    Rookee

    See [Joshua Marinacci's Blog: A Better Applet Experience, Part 1: a custom loading screen|http://weblogs.java.net/blog/joshy/archive/2008/08/a_better_applet.html] article.
    But I fear we are currently limited to an image, fixed or animated (Gif). We cannot do something fancy like a lightweight FX program showing a more or less complex animation while the heavyweight applet loads in background (and provides progress information...).

  • ADF Custom error handler not working.

    Hi All,
    i am using jdev version 11.1.1.5.0. i have created one custom error handler class in model layer which extend DcErrorHandlerImpl class.
    and do the entry in Databinding.cpx file
    *<Application ErrorHandlerClass="mypackage.classname"/>*
    i have override getDisplayMessage(BindingContext ctx, Exception ex) method to show SQL Exception which comes from database table trigger.
    code is following-
    package com.in.jagran.view.services;
        import java.sql.SQLException;
        import oracle.adf.model.BindingContext;
        import oracle.adf.model.binding.DCErrorHandlerImpl;
        import oracle.jbo.JboException;
        public class AclasErrorHandler extends DCErrorHandlerImpl {
          public AclasErrorHandler(boolean setToThrow) {
            super(setToThrow);
            System.out.println("Inside Error Handler class");
          public AclasErrorHandler() {
              super(true);
           // this(true);
           * Returns the message that will be reported to JSF for each error that occurs.
           * Returning "null" is the way the custom error handler signals that a given exception
           * should not be reported to the client.
          @Override
          public String getDisplayMessage(BindingContext ctx, Exception ex)
            if (ex instanceof oracle.jbo.ValidationException) {
              return super.getDisplayMessage(ctx, ex);
            else {
              // Extract and return the error message that has to be displayed
              Exception exception = ex;
              String message = "";
              // If this exception is an instance of JboException,
              // try to find the cause by recursing over the eventual causing exceptions
              if (exception instanceof JboException)
                Throwable[] exceptionList = ((JboException)exception).getExceptions();
                while (exception instanceof JboException
                        && exceptionList != null && exceptionList.length > 0)
                  exception = (Exception)exceptionList[0];
                  if (exception instanceof JboException) {
                    exceptionList = ((JboException)exception).getExceptions();
              // *** Special processing of SQLExceptions
              if (exception instanceof SQLException) {
                message = exception.getMessage();
                // Ignore the lines in the error message that indicate the line number in the PLSQL code that the error resulted on.
                int ind = message.indexOf("ORA-06512");
                if (ind > 0)
                  message = message.substring(0, ind);
              // *** If the the reason for the JboException was data creation exception then display the message
              // of the top JboException (i.e. JBO-*****: Invalid numeric value, date format or time format)
              else if (exception instanceof NumberFormatException || exception instanceof IllegalArgumentException) {
                // Report the top exception
                message = ex.getMessage();
              // Otherwise report the message of the lowest exception in the hierarchy
              else {
                message = exception.getMessage();
              return message;
        }but it is not working for me.
    thanks in Advance.

    yes i have used dubugger.
    i have set break point to following line-
    return super.getDisplayMessage(ctx, ex);
    if (ex instanceof oracle.jbo.ValidationException) {
            return super.getDisplayMessage(ctx, ex);   
    }when atttribute validation done like i have attribute of type number and i have done the validation "must be greater than 0" now when i have given negative value control go to above line.
    and i have added following code also in handler class
            @Override
               public void reportException(DCBindingContainer dCBindingContainer,
                                           Exception exception) {
    System.out.println(exception.getMessage());
                       super.reportException(dCBindingContainer, exception);
                   }now when i have done commit operation control go to here and println statement print follwoing error on log window.
    JBO-26041: Failed to post data to database during "Rollback to Savepoint": SQL Statement "null".

  • Custom loading image JSP dynpage

    Hello,
    Wa have created a jsp dynpage, and want to show a custom loading image. I other applications (appintegrator) we have succesfully changed the loading image by exporting the theme that we are currently using, change the loading_ani.gif image and re-importing the theme. This change has no effect on the loading image of the JSP dynpage, it is still the one supplied by SAP. I checked the url of this image and got the following https://host:port/htmlb/mimes/common/loading/loading_ani.gif, so I tried changing the loeding image that is stored in the htmlb par file, but there was no visible result when loading the application, or when loding the direct url of this image. Can anyone tell me where I can change the loading image of the JSP dynpages?
    Kind Regards
    Timon Van Soom

    Juhi Bhatnagar
    Greetings!!!
    May i know , what is the procedure need to be followed to replace the default Loading ICON with our custom image.
    2. Does our custome image should be a image file (like jpg, png) or its like a command
    Kindly share the procedure for this...
    Appreciate your response in advance'
    Thanks

  • Problem reading custom property file from custom event handler.

    Hi,
    My custom event handler needs some bits of information that I have set up in a property file. However, when the event handler runs it throws a FileNotFound exception - actually its because permission was denied.
    I have added the code System.getProperty("user.name") to find out the actual user that the event handler is running as. It reports that "oracle" is the user.
    That's great. However, the permissions on the file will allow oracle to read/write the file. If I log onto the server where OCDB runs (as oracle), I can vi the file.
    The file is owned by another user, but the "oracle" is a member of the group that has read/write (we're running on a unix box). The file is not 777.
    The event handler is actually calling a static utility method that returns the Properties. This utility is used elsewhere in other custom apps in conjunction with OCDB (on the same server). It works there, so the utility is functioning correctly.
    Is there something going on that I'm missing? Like somehow the event handler is acually runn as somebody else?
    Here is the node log.
    2007/07/17 12:52:16 [oracle.ifs] [37] 434364 system FINE: Error /opt/csc/sfi/configuration/sfi.properties (Permission
    denied) Additional INFO: java.io.FileNotFoundException: /opt/csc/sfi/configuration/sfi.properties (Permission denied)
    Thanks in advance for the help.
    Winston

    Matt,
    Sorry to have wasted your time. It was a server reboot issue. The ocdb server hasn't been restarted since early July. We added the users and groups late last week. Although we tested on line, the server wasn't quite up to speed with the new changes.
    We bounced the server and all is well.
    Thanks
    Winston

  • Custom loading image in WebDynpro iView

    Hi All,
    I have replaced the default loading image in the com.sap.portal.appintegrator PAR with a custom image.
    As a result the new custom loading image is being shown in all iviews made fom that PAr e.g.BSP Iview, IAC iview etc.
    But only the webdynpro iview is still not able to show that image,but is instead showing no image during loading.
    Have checked every possibility.
    Can anyone suggest what could be the problem??
    Thank You.

    Juhi Bhatnagar
    Greetings!!!
    May i know , what is the procedure need to be followed to replace the default Loading ICON with our custom image.
    2. Does our custome image should be a image file (like jpg, png) or its like a command
    Kindly share the procedure for this...
    Appreciate your response in advance'
    Thanks

  • Custom View Handler

    I am creating a custom view handler , but I want that this view is used only for specific files(views) and for all other files I want that default handler to be used , can we do this in JSF ??If yes then how ??

    In your createView method of custom view handler, One of your parameter represents viewName. I guess you can inspect the viewName and delegate the method calls the appropriate implementation. You may also use a resource bundle in conjuction with this.
    This strategy depends on the enhancements that you wish to do in your custom implementation.
    I have never tried this before but dont you think its possible in your case?

  • Custom Load Balancing Question.

    Can anyone give me any pointers on creating a custom load balancing algorithm / cluster proxy..
              Basically i want to have something similar to HttpClusterServlet but that you can customise the load balancing on... for example in a cluster of 6 managed server ms1,ms2,ms3,ms4,ms5,ms6 i want to be able to say this instance of httpclusterservlet only knows about and round robins betwen ms1 and ms2 and ignores ms3-6.
              Can something like that be easily written? I'm trying implement this to run again ALSB so it's mostly webservice calls being made to the proxy. What i'm aimin for in alsb is having one domain across 3 regions each having their own local load balancer balancing to the ms's in their own region).

    David Ingham wrote:
              > Can anyone give me any pointers on creating a custom load balancing algorithm / cluster proxy..
              >
              > Basically i want to have something similar to HttpClusterServlet but that you can customise the load balancing on... for example in a cluster of 6 managed server ms1,ms2,ms3,ms4,ms5,ms6 i want to be able to say this instance of httpclusterservlet only knows about and round robins betwen ms1 and ms2 and ignores ms3-6.
              >
              > Can something like that be easily written? I'm trying implement this to run again ALSB so it's mostly webservice calls being made to the proxy. What i'm aimin for in alsb is having one domain across 3 regions each having their own local load balancer balancing to the ms's in their own region).
              I think my answer to your previous emails may start a
              discussion...perhaps you need 3 clusters. By creating your own cluster
              servlet, you're messing around with WLS clustering algorithms which may
              not be a good idea.
              Pete

  • How to set up a label control from custom event handler?

    Hi,
    Below I try to describe my problem:
    I have a single instance of MyClass (I use Cairngorm framework), with ArrayCollection as a variable, in which I would like to keep a couple addresses from database.
    Additionaly  I created a custom components with a list of people retrieved from database, with eventhandler  for a doubleclick event. After I doubleclick on some person, I create a custom event and dispatch it. In command class connected with this event I connect to the database and get full data about this person and a set of her addresses. This set of addresses I placed into ArrayCollection in my model variable. And now I have a problem, because one of this address (the birth place) I would like to display below the list with persons, in a Panel with a couple of label control, but .... I can't to bind label control to my model.addresses[???] because I don't know if this doubleclicked person has this birth address at all?
    I wonder if it is possible to set up label control in my custom components in time when I'm receiving the data from database in my custom event handler???
    One of the way to achieve this is to define a string var in my model and placed this special address in it, and then the label control to this variable, for instance {model.birthplace}, but this is only needed for a moment, I don't want to keep this address in extra variable in model, because I have already it in my ArrayCollection in model, so it would be a duplicate.
    I hope that you could understand me and my english :-)
    Best regards

    Looks like I migh not be a novice swing programmer for long then.

  • Custom Error handling in DataSheet View with pop-up message or label controls or HTML

    I have a requirement in which DataSheet view is used to bulk edit or input list items and handle validations while in the process.
    We have validations done in event recievers before creating the list item. But could not provide a pop up or message with summary of all validation errors. these are buiness custom validations.
    Is there a way to custom error handle datasheet view? Is there a way to invoke a UI in context from event recievers?

    I have a requirement in which DataSheet view is used to bulk edit or input list items and handle validations while in the process.
    We have validations done in event recievers before creating the list item. But could not provide a pop up or message with summary of all validation errors. these are buiness custom validations.
    Is there a way to custom error handle datasheet view? Is there a way to invoke a UI in context from event recievers?

  • Implement custom fault handling in bpel

    Hi,
    Can you please provide some link on how to implement custom fault handling in bpel
    Thanks,
    kpr

    See the article below for details on implementing custom fault handling.
    http://beatechnologies.wordpress.com/2011/07/18/fault-handling-in-oracle-soa-suite-advanced-concepts/

  • EDT custom exception handler

    Hi,
    Is there any posibility to add custom exception handler to EDT? I'm thinking to implement an automatic feed-back from a client aplication. When an exception occurs in EDT it will automatically send to server. The problem is that unsigned webstart application have no permissions to call Thread.setUncaughtExceptionHandler() on EDT.
    Is there any workaround?
    Anton

    Hi,
    Is there any posibility to add custom exception handler to EDT? I'm thinking to implement an automatic feed-back from a client aplication. When an exception occurs in EDT it will automatically send to server. The problem is that unsigned webstart application have no permissions to call Thread.setUncaughtExceptionHandler() on EDT.
    Is there any workaround?
    Anton

Maybe you are looking for