Rmi service pooling

I have a rmi service that searches for products that are stored in a flat file system. The code sets up a key and then sequentially reads through the file returning data objects (if they match the required criteria) via a call back method. Due to what the method has to do I have had to make the method synchronized. My problem is that while this search is going on no other client can make a call to that particular service. Does anybody know a way round this as I have spent all day searching the internet for an answer. Please help

The main point of synchronizing is to "single thread" or "lock"; that is, only allow one thread at a time access to the objects.
Often it is not the method itself that needs locking but selective code within the method. In such a case, you only need to lock that selective code with a synchronized (Object) {} statement rather than a synchronized modifier on the method. There are many examples on how to do this in the archive.

Similar Messages

  • RMI service not working only inside desktop application creatd in netbeans

    Actually I have made an RMI service which works just fine inside a normal java application which I have created in netbeans 6.1, now the problem aries when I put this code inside a desktop application creatd in netbeans 6.1, see the code below, when I use this code in desktop application creatd in netbeans 6.1 the application hangs at the line as shown below;
    String[] list = registry.list();
    well I do not no why it just hangs there and after three or for minutes it returns with some error, I have shown the error in the end. What it seems to me that inside desktop application creatd in netbeans 6.1 the application can not get registry.list() or registry list.
    try
    registry = LocateRegistry.getRegistry(serverAddress, 1099);
    String[] list = registry.list();
    if( list == null )
                        throw new RemoteException( "list == null" );
    else
    for (int k=0; k < list.length; k++)
    System.out.println("registry" + k + ": " + list[k].toString());
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    // Create and install a security manager
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    rmiServer = (ReceiveNodeInterface)(registry.lookup("RMIServiceToSendNodesHierarchy"));
    String text = "Please, send us the root node.";
    rootNode = rmiServer.getRootNode(text);
    treeModel = new DefaultTreeModel( rootNode );
    jTreeOPCservers.setModel(treeModel);
    catch(RemoteException e){
    e.printStackTrace();
    catch(NotBoundException e){
    e.printStackTrace();
    the error is ;
    java.rmi.ConnectIOException: Exception creating connection to: 192.168.1.142; nested exception is:
    java.net.SocketException: Connection reset
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
    at tagbrowser.TagBrowser.getRootNodeIntoTree(TagBrowser.java:198)
    at tagbrowser.TagBrowser.<init>(TagBrowser.java:83)
    at desktopapplication1.DesktopApplication1View.MyAction(DesktopApplication1View.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    No I am sure that I am not starting the RMI Registry with socket factories at the server. Next I am sure that the RMI Registry is running. Infect as I have said in the start that I have made an RMI service which works just fine inside a normal java application which I have created in netbeans 6.0.1 the problem aries when I put this code inside a desktop application creatd in netbeans 6.0.1 or 6.5 both.

  • RMI service and failover

    Hi All,
    I am building an RMI service (implements UnicatRemoteObject). I am using Naming.rebind to bind my service - I start RMIRegistry as a standalone process. The client performs Naming.lookup to find the handle of server object.
    One of our requirements is that all our services must be highly available, with reasonable fail over.
    The questions are:
    1. How can I handle RMI registry automatic restart when it goes down ? Alternatively can I start multiple RMI Registries and register my service with all of them ?
    2. How can i restart my RMI Service when it goes down ?
    3. What about the Naming.(rebind, lookup) calls ?. Is Naming service always available ?
    We are using JBOss 4.0 as our app server. Any help is highly appreciated.
    Regards
    Vissu
    .

    Hi All,
    I am building an RMI service (implements UnicatRemoteObject). I am using Naming.rebind to bind my service - I start RMIRegistry as a standalone process. The client performs Naming.lookup to find the handle of server object.
    One of our requirements is that all our services must be highly available, with reasonable fail over.
    The questions are:
    1. How can I handle RMI registry automatic restart when it goes down ? Alternatively can I start multiple RMI Registries and register my service with all of them ?
    2. How can i restart my RMI Service when it goes down ?
    3. What about the Naming.(rebind, lookup) calls ?. Is Naming service always available ?
    We are using JBOss 4.0 as our app server. Any help is highly appreciated.
    Regards
    Vissu
    .

  • RMI service script in 11.1.2

    Can someone tell me where the script for starting RMI service is in 11.1.2 ? Couldn't find it thanks.

    Just create a quick batch script with the following in it
    net start "Hyperion RMI Registry"
    Rahul, that is just a link to the executable not a start up script, the service sets lots of parameters.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Debug RMI - Service with Sun One Studio

    Hi, I'm trying to debug an rmi - service with sun one studio 4u1 (win nt 4.0). To do so I start the rmid daemon via
    rmid -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE -J-Xrunjdwp:transport=dt_shmem,server=y,address=dime,suspend=n -J-Djava.security.policy=%POLICY% -log %RUNDIR% >%RUNDIR%\server.log
    Then I register the service to the daemon and attach the debugger in the studio to the address "dime". This seems to work, but the service does not stop at breakpoints set in the debugger.
    Can someone help?

    I set the breakpoints at false line numbers (method heads). Now It works fine (breakpoints, watches, ...). The only thing is, that the current line is not visible in the source (although the line number is displayed correctly).

  • Ask about the Service Pooling in OSB

    Hi all,
        I read the Service Pooling feature in OSB. It said that: "OSB support load balancing of service endpoints through service pooling technique." --> It's mean I can create multi instances of a service that a provider exposed, and when business service have some problems (maybe network, ...) when connect to this service, OSB will automatically detect live service and connect to other instance of this service, am I right ?
        And I need configure to enable this function when create a business service ?
    Regards,

    Yes, you can configure it in OSB's business service resource.
    If backend service is deployed on 3 endpoints, then in OSB business service add three end point URLs. You can select load balancing algorithm as per requirements.
    You can also configure Offline URL settings (in Business Service Operational Settings tab). Once enabled OSB will mark the unavailable endpoints as offline for a preconfigured time and no requests will be sent to this offline endpoint during this time.

  • RMI Service and FR Service abrupt shutdown

    Hi guys,
    I got problem with my BI 931 services, and it's weird since the behavior is randomly happen.
    The FR Server services and RMI services sometimes abrupt shut down, this is development server so the users are minimal (some cases no one using it at all).
    The architecture is like below (all of them are VMWares)
    1 essbase 931 server
    1 HBI Services server + SQL Server 2000
    1 HBI UIServices server
    It can't be network problem because DB and the services is under the same machine.
    Through the logs and found some errors but I think below err desc has the highest possibilities;
    Mon, 22 Sep 2008 13:55:10.0000000 [BRACKISH:9548] (IT_ATLI2_IOP:105) W - ATLI2 Failure occurred on connection to 10.10.11.109.3005: WSARecv() failed in TCPConnectionImpl::dispatch_failed() with: An existing connection was forcibly closed by the remote host.
    < Started by Process Monitor's I/O thead - Type-->BIID(0) >
    Wed, 08 Oct 2008 12:21:46.0000000 [BRACKISH:11748] (IT_ATLI2_IP:101) W - ATLI2 failure receiving data with minor_code 0 occurred in TCPConnectionImpl::dispatch_failed()
    < Started by Process Monitor's I/O thead - Type-->BIID(0) >
    Anybody can help or give me clue? Quite desperate here.
    Thanks
    Daniel -

    Anyone??

  • Rmic settings for singleton RMI service deployed in a cluster ?

    We want to deploy an RMI service on a single machine in the cluster
              only. What happens if we specify "-clusterable" to rmic when compiling
              the stubs for that service - will it be smart enough to know a runtime
              that the service has only been deployed on one machine in the cluster
              and direct calls there?
              david
              David Michaels <[email protected]>
              Director of Technology
              ShockMarket Corporation (650) 330-4665
              [david.vcf]
              

    Thanks for your reply John!
    I was hoping APS could do something like that .. I am not sure if restoring sessions of a dead APS cluster node on another APS would be helpful but I can think of one situation where a drill-through report is running for a long time on the Essbase server and APS goes down.. it would be good to have the other APS to take up the session and return the drill-through output to the user.

  • RMI Service going down

    Hi All,
    I have few RMI methods that is working perfectly. I start it using following command:
    java -classpath .;classes12.jar -Djava.rmi.server.codebase=file:///java/ -Djava.rmi.server.hostname=<MyIP> MyServiceI have noticed that if there is no client call for 10 minutes the RMI service goes down. If I call atleast one service within 10 minutes then the server code is there to service forever. For this issue I have included a ping kind of service on my client to keep server alive.
    The point is why does the service die if no calls are there for first 10 minutes or so. Is it garbage collected or I am missing something.
    Thanks and Regards,
    Vikash Anand.

    Hi All,
    My main method looks like this:
    System.out.println("Starting service deployment..");
            // Assign a security manager, in the event that dynamic
              // classes are loaded
              System.setProperty("java.security.policy", "c:/policy.all");
            if (System.getSecurityManager()==null){
              System.setSecurityManager(new RMISecurityManager());
            System.out.println("Loaded Security policies.....");
            // Create an instance of our service server ...
              Service service = new Service();
            // ... and bind it with the RMI Registry
            Naming.rebind ("MyService", service);
            System.out.println ("Service bound....Awaiting requests.........");Please suggest

  • What is the best practice to consume RMI Service

    hi ,
    i have rmi solution client server
    i want to know which one is the best practice and more stable approach from one of the below.
    1. initialize / consume the service once only
    maybe can do it in static block
    Example : static {
    //some object = Naming.lookup("rmi://192.168.0.130/RMIServer");
    2. Everytime client perform some activity and need to invoke rmi server
    then consume the service
    Example :
    public String getQuote(String quoteNumber){
    }

    Esentially both.
    Each time you do #2, but if it fails, then you do #1. You never know when its going to fail. failure is a normal part of TCP communication so be prepared to handle it gracefully as if its not even a failure.

  • Backup Service - Pool ownership conflict during import

    Hi, I am getting this error every time
    the backup service performs a backup. How do I remove the conflicting entries?
    Microsoft Lync Server 2013, Backup
    Service user store backup module detected items having pool ownership conflict during import.
    Items having pool ownership conflict: 
    ItemId: 823b033e-357e-43dc-97d1-75cb9670f640,
    DocId: 1117, DocName: urn:hcd:[email protected]
    ItemId: 823b033e-357e-43dc-97d1-75cb9670f640,
    DocId: 1118, DocName: urn:lcd:[email protected]
    ItemId: d2db9bae-4fa8-451c-b821-32e992319232,
    DocId: 1119, DocName: urn:hcd:[email protected]
    ItemId: d2db9bae-4fa8-451c-b821-32e992319232,
    DocId: 1120, DocName: urn:lcd:[email protected]

    Hi Fernando -
    How to take ownership from active directory? I searched everywhere but I didn't find any tab or command to do this. Can you please explain little bit more?
    Thanks,
    SD
    Please help....i recently deployed a second pool where i am currently facing this issue.
    My email address is : [email protected]
    PS C:\Users\xxxxx> Invoke-CsBackupServiceSync
    cmdlet Invoke-CsBackupServiceSync at command pipeline position 1
    Supply values for the following parameters:
    PoolFqdn: indyslync2013.technicolor.com
    Doing a full sync might add a heavy load to the backup service and temporarily
    increase the backup replication latency.
    Are you sure want to continue?
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
    (default is "Y"):Y
    Invoke-CsBackupServiceSync : Failed to perform a Windows Communication Foundati
    on (WCF) call to backup service instance on computer "INDYSLYNCFE03.thmulti.com
    ". Verify that backup service is running. More details: "There was no endpoint
    listening at https://indyslyncfe03.thmulti.com/BackupService/ that could accept
     the message. This is often caused by an incorrect address or SOAP action. See
    InnerException, if present, for more details.".
    At line:1 char:1
    + Invoke-CsBackupServiceSync
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Invoke-CsBackupServiceSyn
       c], CommunicationException
        + FullyQualifiedErrorId : Failed to find a computer that has an active bac
       kup service in the specified pool. Exception: System.ServiceModel.Communic
      ationException: Failed to perform a Windows Communication Foundation (WCF)
      call to backup service instance on computer "INDYSLYNCFE03.thmulti.com".
    Verify that backup service is running. More details: "There was no endpoin    t
     listening at https://indyslyncfe03.thmulti.com/BackupService/ that could     a
    ccept the message. This is often caused by an incorrect address or SOAP     act
    ion. See InnerException, if present, for more details.". ---> System.Se    rvic
    eModel.EndpointNotFoundException: There was no endpoint listening at h    ttps:
    //indyslyncfe03.thmulti.com/BackupService/ that could accept the mess    age. T
    his is often caused by an incorrect address or SOAP action. See Inne    rExcept
    ion, if present, for more details. ---> System.Net.WebException: Th    e remote
     server returned an error: (404) Not Found.
       at System.Net.HttpWebRequest.GetResponse()
           at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel
       .HttpChannelRequest.WaitForReply(TimeSpan timeout)
       --- End of inner exception stack trace ---
    Server stack trace:
           at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponse
       WebException(WebException webException, HttpWebRequest request, HttpAbortR
      eason abortReason)
           at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel
       .HttpChannelRequest.WaitForReply(TimeSpan timeout)
           at System.ServiceModel.Channels.RequestChannel.Request(Message message,
        TimeSpan timeout)
           at System.ServiceModel.Channels.ServiceChannel.Call(String action, Bool
       ean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs,
      TimeSpan timeout)
           at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMeth
       odCallMessage methodCall, ProxyOperationRuntime operation)
           at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage mes
       sage)
    Exception rethrown at [0]:
           at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessa
       ge reqMsg, IMessage retMsg)
           at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
        msgData, Int32 type)
           at Microsoft.Rtc.Management.Hadr.BackupService.IBackupService.GetStatus
       (Nullable`1 category)
           at Microsoft.Rtc.Management.Hadr.BackupService.BackupServiceClient.GetS
       tatus(Nullable`1 category)
           at Microsoft.Rtc.Management.Hadr.BackupService.BackupServiceClientManag
       er.InvokeMethod(Func`2 func, Nullable`1 category, String funcName, String
      machineFqdn, Boolean throwExpectedException)
       --- End of inner exception stack trace ---
           at Microsoft.Rtc.Management.Hadr.BackupService.BackupServiceClientManag
       er.HandleCommonWCFException(Exception e, String serverFqdn, Boolean needTh
      row, String& errorMsg)
           at Microsoft.Rtc.Management.Hadr.BackupService.BackupServiceClientManag
       er.InvokeMethod(Func`2 func, Nullable`1 category, String funcName, String
      machineFqdn, Boolean throwExpectedException)
           at Microsoft.Rtc.Management.Hadr.BackupService.BackupServiceClientManag
       er.GetStatus(Nullable`1 category, IMachine& activeMachine)
           at Microsoft.Rtc.Management.Hadr.BackupService.InvokeBackupServiceSyncC
       mdlet.FindActiveBackupServiceMachine(),Microsoft.Rtc.Management.Hadr.Backu
      pService.InvokeBackupServiceSyncCmdlet

  • RMI Service does not start

    Hello,
    I am deadly new in this, so I hope this is an easy to answer question ...
    I want to install an EJB application which runs on JBoss. Since JBoss don't need an application.xml file I wrote one and built an .ear file to deploy it into OC4J. Our application uses a fat client which connects to J2EE Container over RMI. Therefore I only installed the EJBs into OC4J. To change as less as possible on our client distribution I used the RMIInitialContextFactory to connect to the server. Problem is, that obviously the RMI server on port 23791 is not started. I got ConnectionExceptions because the connetion is refused. I activated debug logging in OC4J and there are following entries:
    05.11.03 12:17: Error binding to server: com.evermind.server.rmi.OrionRemoteException: Unable to connect to localhost/127.0.0.1:23791: Connection refused: connect;
    The logfile of the instance island in the opmn directory has the entry:
    Auto-deploying vs_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)... done.
    Error binding to server: com.evermind.server.rmi.OrionRemoteException: Unable to connect to localhost/127.0.0.1:23791: Connection refused: connect;
    I did change the rmi.xml file and entered a server tag with host="localhost", but it does not work.
    Anyone has an idea ?
    Thanks in advance,
    Frank

    Frank,
    In case you are unaware, there is a stand-alone version of OC4J (which I use) and there is Oracle 9iAS which includes OC4J as one of its components (and there is also an embedded OC4J in "JDeveloper"). Each one behaves slightly differently. Could it be that you were getting confused between the documentation for these products?
    Good Luck,
    Avi.

  • Microsoft Lync Server 2013, Backup Service user store backup module detected items having pool ownership conflict during import.

    Dear Team,
    I have two Enterprise lync 2013 pools, abcPool and abcpool1. abcPool1 has got two servers, Server1 and server2. and abcpool has one FE server named "Server 3". and they have pool pairing.
    Replication was fine between them when i had only one FE server in each pool, one day FE service broke on one of the FE server on abcpool1 and failed to start so i had to do failover to another pool, at that time i introduced one more FE in abcPool1, that
    why now 2 FEs in abcPool2. Server1 FE service was resolved by reinstalling the binaries. However after that im unable to get the backupservice state to normal, i tried the below articles with no luck,
    http://social.technet.microsoft.com/Forums/lync/en-US/0403621e-26b6-4cd0-bbca-8534a20de665/backup-service-pool-ownership-conflict-during-import?forum=lyncdeploy 
    http://msucmenow.blogspot.in/2013/05/troubleshooting-lync-2013-pool-pairing.html
    "Event on Server 1"
    Log Name:      Lync Server
    Source:        LS Backup Service
    Date:          1/21/2014 8:02:33 AM
    Event ID:      4073
    Task Category: (4000)
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      ABC.net
    Description:
    Microsoft Lync Server 2013, Backup Service user store backup module detected items having pool ownership conflict during import.
    Items having pool ownership conflict: 
    ItemId: 1b3be172-b121-43cf-bd4e-b3d368eae6a9, DocId: 7972, DocName: urn:hcd:[email protected]
    ItemId: 1b3be172-b121-43cf-bd4e-b3d368eae6a9, DocId: 7973, DocName: urn:lcd:[email protected]
    ItemId: 1b3be172-b121-43cf-bd4e-b3d368eae6a9, DocId: 7974, DocName: urn:upc:[email protected]
    PS C:\Users\lyncadmin> Get-CsBackupServiceStatus -PoolFqdn pool1.net | fl
    ActiveMachineFqdn   : abc1.net
    OverallExportStatus : SteadyState
    OverallImportStatus : ErrorState
    BackupModules       : {UserServices.PresenceFocus:[SteadyState,ErrorState],
                          ConfServices.DataConf:[FinalState,NormalState],
                          CentralMgmt.CMSMaster:[FinalState,NotInitialized]}
    Following error in "Lync Server" logs on server3 on abcPool.
    Log Name:      Lync Server
    Source:        LS Backup Service
    Date:          1/21/2014 9:37:47 AM
    Event ID:      4069
    Task Category: (4000)
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:     SQL1.net
    Description:
    Microsoft Lync Server 2013, Backup Service user store backup module encountered an exception that was handled gracefully when importing document batch.
    Batch file: UserServices\PresenceFocus\1-UserServices-8\Data\488bc218-9954-4caf-a5da-89efdb7b85a7_0_1562.xml.
     Exception: System.Data.SqlClient.SqlException (0x80131904): Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.Batch' directly or indirectly in database 'rtcxds' to update, delete, or
    insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.
    Log Name:      Lync Server
    Source:        LS Backup Service
    Date:          1/21/2014 9:52:45 AM
    Event ID:      4064
    Task Category: (4000)
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:     SQL1.net
    Description:
    Microsoft Lync Server 2013, Backup Service user store backup module encountered an exception that was handled gracefully during export.
    Additional Message: 
     Exception: System.IO.IOException: The process cannot access the file '\\SQl1.net\LyncShare\1-BackupService-10\BackupStore\UserServices\PresenceFocus\Cookie\Cookie.zip' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath,
    Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
    Praveen | MCSE Messaging 2003

    When you add a new FE in pool acdpool1, please check you have run the following:
    <system drive>\Program Files\Microsoft Lync Server 2013\Deployment\Bootstrapper.exe
    For the details, check
    http://technet.microsoft.com/en-us/library/jj204773.aspx
    Lisa Zheng
    TechNet Community Support

  • Clustering with RMI classes

     

    Prasad:
              I'm talking about a UserCache. It is not that much information, but it contains info
              from a lot of different tables. So if you came to our site and had a session then went
              away. Your session will expire at some point. Then when you come back, if we have a
              UserCache on the machine you were on, you are probably in there, but if you end up on
              another machine then we have to reload from the database. So what I'm thinking about is
              a static UserCache that resides on a machine that all the machines in the cluster could
              use.
              Thanks,
              Rob
              Prasad Peddada wrote:
              > Rob Williams wrote:
              >
              > > Jon:
              > >
              > > I was going to post a message about almost exactly the same thing. My thing is
              > > that I have a UserCache right now so that if someone comes back to the site we
              > > load their information up instantly. Obviously, if you come back to the site and
              > > get put on a different machine, we get your stuff from disk.
              >
              > Rob,
              > May I ask you what kind of information you want to load and how big is the
              > data?
              >
              > > We had a consultant come out who was sent by BEA to help us implement clustering
              > > and he recommended that we do in memory clustering by having a machine out front
              > > to 'proxy' and then a cluster. I asked a question on here and the BEA guy
              > > (Michael) seemed to think that that was not a good idea. Had it been a good
              > > idea, I was thinking the proxy machine (which I would have doubled w/another to
              > > avoid a single point of failure) would have been a good place to put the
              > > UserCache and then the machines in the cluster could just get the user info
              > > using RMI.
              >
              > I am trying to understand why you need RMI. When you use session replication
              > mechanism basically you have failover mechanism. If one server goes does the other
              > one still has all the information you need. Its too expensive at this point to
              > replicate the state information across all the servers in the cluster whether it is
              > RMI or EJB. Based on number of servers you have in the cluster, the session
              > replication failover mechanism might very well serve your needs.
              >
              > Prasad
              >
              > > Thoughts?,
              > >
              > > Rob
              > >
              > > Jon Eagles wrote:
              > >
              > > > All,
              > > >
              > > > I am in a situation where I want to create an RMI object which represents a
              > > > cache. For simplicity, let's say that the cache is called IntegerCache and
              > > > it holds a hastable of Integer objects as a private class variable. When my
              > > > Weblogic servers start up, I want to make use of the startup class
              > > > functionality to create an instance of the IntegerCache and populate it with
              > > > the Integer objects representing the numbers 1, 2 and 3. I then want to put
              > > > the IntegerCache object into the cluster-wide JNDI tree at the name
              > > > "cache.IntegerCache". It is my understanding that each server in the
              > > > cluster will create its own IntegerCache and add a stub to the service pool
              > > > stored at the node "cache.IntegerCache". Assuming that I have three servers
              > > > in my cluster, at this point, I have three IntegerCache stubs in the service
              > > > pool.
              > > >
              > > > Now, suppose a client wishes to get a reference to an IntegerCache out of
              > > > the tree and let's further assume that it gets the stub from server 1.
              > > > Since we are using RMI and the object does have state (the hashtable of
              > > > Integer objects), we must use the targeted model to retrieve a pinned
              > > > reference.
              > > >
              > > > Given the above scenario, can anyone tell me whether the following is
              > > > accurate:
              > > >
              > > > 1. If the client then adds Integer 4 to its IntegerCache stub, that Integer
              > > > will ONLY be added to the hashtable for the IntegerCache object that resides
              > > > in server 1. This addition will NOT be replicated to the other servers.
              > > >
              > > > 2. If statement1 above is correct, how can I achieve a solution where I
              > > > have a shared cluster-wide cache object. I don't want to have to implement
              > > > the individual cached objects (in this case Integers) as entity beans and
              > > > have the container constantly load and passivate them. The reason for this
              > > > is due to the fact that there is significant overhead involved in creating
              > > > my "Integer" objects and I would like to minimize the number of times I have
              > > > to do this.
              > > >
              > > > Any help would be appreciated.
              > > >
              > > > Thanks,
              > > >
              > > > -Jon
              

  • New sites & pool deployments

    Hi all,
    We use Lync 2013 Standard with Edge for presence, IM, webconf, pchat only - no EV deployed.
    I'm about to migrate ourselves onto an Enterprise setup with 2 sites, each one containing 3 FEs in each pool.
    My question is, can I safely roll out these new services without impacting live operations? Obviously there will be a point in time when we need to cut over, which we will do on a weekend maintenance window.
    I've created my 2 new sites and published ok. Using the Front End pool deployment wizard, below are the settings I'm about to publish.
    Pool FQDN: fePool01.corp.xxx.local
    Define the computers in the pool: fe01.corp.xxx.local, fe02.corp.xxx.local, fe03.corp.xxx.local
    Select features: Just Conferencing ticked for now
    Collocate Mediation Server: Yes
    Enable an Edge pool to be used by the media component of this Front End pool: No. For now.
    Define the SQL Server store: sqlserver.corp.xxx.local
    Default instance
    This SQL instance is in mirroring relation: Yes
    Port 5022
    Enable SQL Server store mirroring: Yes
    Mirroring SQL store: sqlmirror.corp.xxx.local
    Default instance
    Port 5022
    Use SQL Server mirroring witness to enable automatic failover: Yes
    SQL Server FQDN: sqlwitness.corp.xxx.local
    Default instance
    Witness port number 7022
    Define the file store
    Define a new file store:
    File server FQDN: DFS.corp.XXX.local
    File share: LyncShare
    Specify the Web Services URL
    Override internal Web Services pool FQDN: No
    External Base URL: FEPool01.domain.net
    Select an Office Web Apps server
    Office Web Apps server FQDN: OWASERVER.corp.xxx.local
    Office Web Apps server discovery URL: hxxxps://OWASERVER.corp.xxx.local/hosting/discovery/
    Office Web Apps server is deployed in an external network: No
    I need to ensure the standard production server continues to function and host external conferences.
    Any help is appreciated!
    Thanks,
    Simon

    All issues have been resolved, for those that may be in the same position, here were the fixes:
    1. Why didn't the SQL databases mirror?
    Issue due to Kerberos auth.
    2. Why wont the FE pools reach quorum?
    Issue was due to our CA issuing SHA512 type certificates. Rather than change the way our CA issues in this format and potentially cause more problems, I put a regedit on each FE:
    Disable
    TLS 1.2by
    following the below steps:
    On the Lync 2013 server open the registry and browse to the following location: HKLM\System\CurrentControlSet\Control\SecurityProviders\SChannel\Protocols
    Create the following Key under Protocol: TLS 1.2
    Create the following two Keys under TLS 1.2: Client and Server
    Create the following DWORDs under both the Client and Server Key: DisabledByDefault and Enabled
    Under both Client and Server set the following: DisabledByDefault=1 and Enabled =0
    Reboot the server.
    Ref: http://social.technet.microsoft.com/Forums/office/en-US/857c6804-8ce1-4f09-b657-00554055da16/tls-12-and-sha512?forum=winserversecurity
    3. Why did PChat add a new URI in? Can it be removed? Or should it be ok to continue to build one of the new PChat pool servers in the hope the message will go away?
    This was caused by our current Lync 2013 standard pool not being able to communicate with the new EE pool, we put a new static route in to solve this.

Maybe you are looking for