Weblogic clustering - share a singleton services without implementing weblogic  singletonService interface

I have a singleton object java object in my application , when i deploy my application in clustering each cluster node creates a separate singleton object thus data integrity is lost. More over I am not in a position to change any of my code with specific to web-logic and implement any third party library such as teracotta.
Can any one help me out of it in how to maintain the data integrity between the cluster nodes . Thanks in Advance

Hi,
I'm not sure if singleton services works with stateless session beans. By other hand, I understand as follow:-
1. After you have created a singleton service class using the SingletonService interface, you must define it as a singleton service within WebLogic Server, see http://download.oracle.com/docs/cd/E1284001/wls/docs103/ConsoleHelp/taskhelp/clusters/ConfigureSingletonService.html_
2. A singleton service is a service (application) on a cluster that is available and active on only one server at any given time, you must deploy the service on only one member of the cluster.
3. For high avalability, you must implement WebLogic Service Migration for your singleton service, see http://download.oracle.com/docs/cd/E1284001/wls/docs103/cluster/service_migration.html#wp1051458_
4. The clients connecting to the service, you must implement a special mechanism. See http://download.oracle.com/docs/cd/E1322201/wls/docs81/jndi/jndi.html#475689_

Similar Messages

  • How to implement singleton service if i m using only jar and war component

    hello,
    in my application i m using only jar and war component .
    as i m not using EAR for deployment so i dont have weblogic-application.xml file.
    so in this case how i implement weblogic singleton service .and how to call active method

    From the documentation:
    After you have created a singleton service class using the SingletonService interface, you must define it as a singleton service within WebLogic Server. This singleton service object contains the following information:
    The path to the class to load as the singleton service.
    The preferred server and other candidate servers for the singleton service.
    The following excerpt from the cluster element of config.xml shows how a singleton service is defined:
    <singleton-service>
    <name>SingletonTestServiceName</name>
    <user-preferred-server>myManaged1</user-preferred-server>
    <class-name>mycompany.myprogram.subpackage.SingletonTestServiceImpl</class-name>
    <cluster>myCluster</cluster>
    </singleton-service>
    Note that the config.xml is located in the <domain-home>/config directory

  • Singleton service

    Hi guys
    I tried to create singleton service by implement SingletonService interface which provided by weblogic.
    And configure singleton service in
    weblogic-application.xml file.
    And define singleton service in
    environment->cluster->singleton service tab in weblogic console.
    I used to create Singleton service instance like such a way
    SingletonServiceTest singletonServiceTest =
    (SingletonServiceTest)SingletonServicesManager.
    getInstance().
    getService("SingletonServiceTest");
    Problem was
         SingletonServicesManager give the different singleton service instance for different server.

    I have partial solution now:
    For proper work of SingletonService, the servers (cluster nodes) must be run using node manager. Then SingletonService as pure java class works - methods activate and deactivate are called as expected.
    However it seems, that MDB cannot be a SingletonService.
    zmach

  • Error with running Singleton Service in a non-clustered mode

    Hello,
    I'm getting this error when try to deploy an app with defined Singleton Service in a WebLogic 10.3.5:
    <Error> <Deployer> <localdomain> <AdminServer><[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default(self-tuning)'> <<WLS Kernel>> <><7785ef355ffde3d6:-4c7bfbbc:138dd48f82b:-8000-0000000000000002><1343742871514> <BEA-149231> <Unable to set the activation state to true for the application 'MyApp'.
    weblogic.management.DeploymentException:
    at weblogic.application.internal.flow.SingletonServicesFlow.activate(SingletonServicesFlow.java:67)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:31)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: java.lang.IllegalArgumentException: Cannot add Singleton Service MySingletonService as SingletonServicesManager not started. Check if MigrationBasis for cluster is configured.
    at weblogic.cluster.singleton.SingletonServicesManager.addConfiguredService(SingletonServicesManager.java:280)
    at weblogic.cluster.singleton.SingletonServicesManager.addConfiguredService(SingletonServicesManager.java:297)
    at weblogic.application.internal.flow.SingletonServicesFlow.activate(SingletonServicesFlow.java:65)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:637)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:54)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:31)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    It gets run only after deleting singleton-service entry from weblogic-application.xml:
    <singleton-service>
         <class-name>my.app.SingletonClass</class-name>
         <name>MySingletonService</name>
    </singleton-service>
    Is it possible to run it in a non-clustered server without deleting Singleton entry from weblogic-application.xml?
    Thanks

    Did this help you ??
    Not sure if it's related as here the issue is with clustered/non clustred and versioning!! the application which the bug talks about.

  • Weblogic Singleton Service concurrent updates

    Our environment has 1 cluster with 4 managed servers(each in a different physical servers).We have a requirement to maintain a cache which is transparent to all the 4 servers(only one copy is expected to be available at any point of time in the cluster) . This cache contains hashmap which gets updated every millisecond by clients performing calculations.This cache does not grow in volume overtime but has very frequent updates. We plan to implement a weblogic singleton service to handle this caching requirement .
    1. Based on your past experience, Is weblogic singleton an ideal candidate for such a requirement. Does this introduce any delay because of synchronizing between the 4 managed servers? This will be used by the pricing engine and we do not want this to introduce any additional delay using this technology.
    2. Also can you let me know what is the underlying technology weblogic(does it use IP multicast??? or do we have a choice choosing either IP socket, ip unicast or mulicast) uses to syncronize the data in singleton object with the managed servers.
    3. Can I have this setup without a nodemanager as nodemanages are not allowed in our environment. According to what I read from weblogic documentation, nodemanager is required if we use consensus leasing only.If I choose to use database leasing, node manager is not required. Is that true?
    Thanks for your help.

    I'd be seriously looking at Oracle Coherence, which is specifically designed to solve this sort of distributing caching/map problem.
    http://coherence.oracle.com/display/COH/Oracle+Coherence+Knowledge+Base+Home
    -steve-

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Singleton service example

    Hi
              In order to create and deploy a singleton service on WebLogic 92, I did exactly as the book said (http://edocs.bea.com/wls/docs92/cluster/migration.html#wp1045262). But it didn't work.
              So I wish to find a tested example (all required files), or an artical that describes the whole process of creating and deploying a singleton-service, with one of you.
              Thx in advanse

    Hi,
              I'm runing into issues trying to build a simple singleton service. Actually, I do not even know how to invoke methods on the singleton. I guess there is not enough documentation on this. Just curious whether or not you get this working. I will really appreciate it if you can share some ideas/knowledge.
              Thanks, Adam

  • Singleton Service in Cluster

    Has anybody created the singleton servince in cluster and migrated once the server goes down. If so can you please share the sameple and steps for the migration.
    Thanks,

    Here is an example on how to create a singleton service: http://middlewaremagic.com/weblogic/?p=5799
    Example on configuring migration can be found here: http://middlewaremagic.com/weblogic/?p=7188

  • Want to cluster windows service without IP address

    Environment
    Two nodes configured clustered on windows2008R2
    Query
    I want to cluster windows service without IP address. Actually I want to cluster around 7 windows services but when we configure the service to cluster, it also ask to put IP address with it. But I dont want to access these services via IP addresses. I just
    want to switchover these services. How could I do that.
    Any comment will be appreciated. Thanks. Zahid Haseeb.

    No, Its is not possible.  
    Without IP address, how will you access the services? 
    You need a dedicated IP address for each high availability service and application you are trying to configure.
    See Dave's explanation for the below post
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/51231c5e-c890-4c9d-a6fc-3a4500c1992c/ip-address-allocation-in-failover-clusters-services-and-applications?forum=winserverClustering
    Regards,
    Rafic
    If you found this post helpful, please give it a "Helpful" vote.
    If it answered your question, remember to mark it as an "Answer".
    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

  • Use Enterprise Services without service registry?

    Hello experts,
    this question is following me since days: is it possible to use enterprise services from an erp-system without a service registry?
    From my understanding the service registry at runtime determines the endpoint where the service is implemented. But when there is just a single erp-system is it then possible to use this services without any additional systems?
    Thanks for any answer.
    Regards,
    Norbert

    Yes you can.
    The service registry is just a "phone book" of services. as much as phone numbers exist well without the phone book services exist without a registry.
    actually, if you really ever have only one source system for enterprise (or other) services you don't need the service registry. even if you have 3 source systems and you know how to find an overview of the services in each of those 3 systems and if you don't use a 'global' data model you do not really need the service registry.
    but this is just my 2 cents. 'publishing' seems to be a common source of joy these days
    anton

  • Is there a way to update an external dictionary for services without migrating the services

    Is there a way to update an external dictionary for services without migrating the services
    Is there a way to update a common external dictionary used by many services without migrating each and every service that uses the dictionary.  I have updated the table in the database and the external dictionary in our Development Environment. The external dictionary is used by many services. When I migrate the changed service to TEST/STAGE/PROD environments (NOTE: the table has been updated in the TEST/STAGE/PROD Databases), only the changed service is having the external dictionary updated. All other services that use the same external dictionary are NOT updated. I have the following questions
    Is it possible to migrate dictionaries so that all the services which are using that dictionary are updated?
    If the first one is not possible, Is there any other way to update the external dictionary without migrating all the services that use dictionary?

    dont think so but I could be wrong
    as it were I didn't like the build in audio so I connected some external logictech 2.1 speakers  but there
    are times when I use headset so I bought this one
    or any minijack splitter will work too so I have 2 things connected to the headset port works just fine
    http://www.belkin.com/IWCatProductPage.process?Product_Id=404634

  • IDOC - PO Creation using a service without master record

    I can not find the field to populate the cost center when i create a PO using a service without master data (buy using Material Group) via transaction WE19.
    The accounting information is present on "E1BPMEPOACCOUNT" segment, but the cost center and G/L Account in this segment were not recognized by IDOC because this segment is used to populate Account Assignment tab on Item Detail Level and my problem appear one step before when after I populate the service tab at Item Detail Level and press .
    In few words I didn´t find the correct field to populate the cost center on Basic type "PORDCR101".
    I tried populate the field COSTCENTER on the segment "E1BPMEPOACCOUNT" but didn´t work.
    Maybe is there another basic type to use in this specific case?
    Thanks a lot.
    Kind Regards,

    Hi,
    In the inbound side create a new entry in WE57 tcode.. with the functio mdoule as "IDOC_INPUT_ORDERS", basic type "ORDERS05", extn< specify the extn u created at outbound side>, message type "ORDERS". Now see if it is working.
    Regards,
    Nagaraj

  • Use-Case for Business Services (Service Without Party) in SAP XI

    Hi,
    I have a synchronous scenario where I am calling a web Service from SAP R/3 via SAP XI. I have designed the Integration Scenario in the Integration Repository, where I created an A2A role for the R/3 System and a B2B Role for the Web Service. For the Web Service Party in the Integration Directory I use a Business Service unterneath 'Service without Party' as the party for the Web Service is unknown.
    I realized that I cannot assign the Business Service to the defined Web Service Role when I want to use the Integrationscenario-Configurator. This only works when I ceate a Party and create the Business Service underneath this Party.
    I understand that this makes sense when I am having a B2B communication like in this case although I don't have a real external Party for the Web Service.
    But I don't understand for which cases I would create a Business Service underneath the 'Service without Party' as internal Systems are known and can be set-up as Business Systems in the SLD.
    Does anybody have such a case where I use an 'Internal' Business Service? And is there any way that I can use such a Business Service in the Business Integrationscenario-Configurator?
    Thanks in advance.
    Alex

    Hi,
    for creatting a communication channel you will have to have either the Business system, Business service.
    For file systems which are generally just servers come under Business service. This is one of the place where you use Business service.
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • Business Service Without Party in Integration Scenrio Configurator

    Hi everybody
    I am stucking in a small issue but do not found a related thread.
    Can anybody explain me, why I cannot assign a "Business Service" of typ "Service without Party" to an Application Component? I am try to configure my integration Process and call in the directory Tools --> Transfer Integration Scenario from Integration Repository. In the following Configurator I can only assign Business Systems from SLD or Services with a Party depending on the settings of the Application Component in the Repository (Flag "External Party with B2B Communication"). If you configure the scenario manually it is possible to involve Business Services without party. But I would like to make use of the Wizard and my Customer has a lot of Systems maintained as Business services.
    Any suggestions?
    Regards Oliver

    Hi,
    I have not done this type of task before.. but from the given links
    see the below information was in the above first link
    The following steps are then only required if the application component has at least one connection to a B2B component.
           3.      On the Business Services for B2B tab page, enter the business service that you want to use for B2B communication.
    The integration process service that is already entered on the  Integration Process Service for A2A tab page is then assigned to this business service.
    B2B Component...
           1.      On the Business Services for B2B tab page, assign the business services.
    Use the input help () to select the business services.
           2.      If you want to create a new business service, choose Create Business Service ().
    To assign multiple services simultaneously, choose Input Help () in the toolbar of the table (only when assigning business services and business system services).
    Regards
    Chilla

  • Using Service without party in Inbound Idoc scenario

    Hi Guys,
    Can we use a Service Without Party in an inboud Idoc scenario? I want to create a Business Service without party and use it as a sender service. For the Adapter Specific Identfiers for this service I want to put any arbitrary value for the logical system for Idoc adapter (as there is no business system defined in SLD for this, we cannot get the logical system name from there). Would this work while the Idoc adapter tries to resolve the Sender Service? Would this arbitrary value from the Adapter Specific Identifier be taken for SNDPRN in the Idoc control header?
    Regards,
    Suddha

    Hi,
    You can use Business system or Business Service (Service without Party).
    If you use Business system then there will be direct linking with SLD while in case of Business Service you will have to manually add the Interfaces to the Business service.
    But in case of IDOC sender since communication channel is not required so you can use Business service as well.
    Check this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903a0abc-e56e-2910-51a8-9dc616df56eb
    PrasHanT

Maybe you are looking for

  • Adobe PhotoShop Elements 9 crashes on Exit

    I wonder if I am the only one having a crashing problem with 10.7 and PhotoShop Elements 9. The application seems to work fine but when I exit I get the following. When it loads again it shows the last photo I was working on before exiting the app.An

  • Transferring from old computer to new.

        Recently purchased a new computer and want to transfer Acrobat to the new devise. Steps???

  • How do I get my Officejet Pro 8500A to print card stock?

    How do I print card stock?

  • No balance in pla

    hello, The scenario is when i try to post excise doc. in j1ih  other adjust. tab after entering the relevent value when i click post tab the system gives messege that no balance in pla i was posting for PLA. tell me how we can maintained the balance

  • Grant Object Privileges Page

    I am running version 3.0.6.6.5 on Solaris 2.6 and using Netscape Navigator 4.51. On the Grant Object Privileges Page for a database object, the "Add to List" button is in an odd spot (crosses over a border) and does not work unless you click it on th