RMI Server and Provider Services

Hi Everyone,
Can I know whats the role of Planning RMI server and Provider Services. On what specific situations do we need to restart those??
Thanks in Advance

Any help on this please!!

Similar Messages

  • RMI Server as a service

    I've have a very simple RMI Server that handles authentication for a Java Web Start app. This server app has been running as a standard console app and now I want to run it as a service on a Windows Server 2003 box.
    I've tried Java Service Wrapper (http://wrapper.tanukisoftware.org/) and the built in tool in Windows for creating services (sc.exe) but no avail.
    I'm becoming desperate and have begun peeking at full fledged application server such as JBoss and Suns application server. Those guys should be a total overkill since my tiny RMI server is as far away from J2EE as you can come.
    Could someone provide me with some hints on this one? All I want is to have my server app run as a service, how hard should this be?

    Dear Sacke,
    Did you find anything on this front? I also need develop an RMI server and deploy it as Service (on Windows) and Daemon on Java. And I particularly dont want to use the Java Service Wrapper as it is not a pure java solution. Please let me know if you found anything on this?
    Thanks,
    Mehul

  • SQL Server and Reporting Services

    What is the best practice for replicating the same reports for different clients using different databases in the same SQL Server and Reporting Services?
    For example:
    Create a single database for each client.
    Create a single data source in Reporting services for each client.
    Create a folder in Reporting Service for each client, and replicate all the report and point each report to its correct data source.
    Is there an easier method for this type of solution.

    Hi acedenoBI,
    According to your description, you have reports which has same structure for each user. Now you want to have a folder for each client to keep their reports. And each client should have a single database and single data source. Right?
    In Reporting Service, if we need one data source to connect different database dynamically, we may need to use parameter and create dynamic connection string. However, in this scenario, since we need to have a single folder and data source for each
    client, so we can just make copies of the whole project. Modify the Connection string in each data source, change the Initial Catalog to be the corresponding database for the client. This can be an easy way to meet the requirement.
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou

  • Can I put both RMI server and client in a same program

    hi everybody...
    I wanna know that can I use RMI server and client in a same program....My idea is like that I wanna use the same program for client and server....When I open my program, I can accept connection from other program and if I want to connect to others, I can also connect it. I expect you to understand my question. Here are the sample code for my program...
    package Chat.Rmi;
    import java.lang.*;
    import java.util.*;
    import java.rmi.*;
    import javax.swing.*;
    import java.net.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class netKitManager implements netKitInterface{
        public netKitManager(){
            try{
            reg = LocateRegistry.createRegistry(4242);
            reg.rebind("NetKitServer",this);
            }catch(RemoteException re){
        public void DirectConnect(String ip){
            try{
            netUser = (netKitInterface) Naming.lookup("rmi://"+ip+":4242/NetKitServer");
            JOptionPane.showMessageDialog(null,"Connection succeded!");
            }catch(NotBoundException nbe){
                JOptionPane.showMessageDialog(null,"There is no server at specified IP address!");
            }catch(MalformedURLException mue){
                JOptionPane.showMessageDialog(null,"IP adress may be wrong!");
            }catch(RemoteException re){
                JOptionPane.showMessageDialog(null,"Remote exception occured!");
        public void SendMessage(String msg){
            try{
            netUser.SetMessage(msg);
            }catch(RemoteException re){
        public void SetMessage(String msg) throws RemoteException{
            chatKit.SetMessage(msg);
        private netKitInterface netUser;
        private Hashtable netUserList;
        private Registry reg;
    }

    Yes it can be done. I have done it.

  • RMI Server and RMI Client Problem

    First, Hi!
    I have create my RMI Server and a RMI Servlet client.
    I can run the server and servlet first time and it works fine.
    Then, I stop rmiregistry and server.
    Then, I start rmiregistry and server for a second time but my RMI Servlet client gets a
    java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection refused
    If I copy the class again where the servlets resides, it works again. But I have to keep doing that. I have to keep copying the class file to the servlet directory every 2nd time I try to run it for it to work.
    Anyone know what am I doing wrong?

    First, Hi!
    I have create my RMI Server and a RMI Servlet client.
    I can run the server and servlet first time and it
    works fine.
    Then, I stop rmiregistry and server.
    Then, I start rmiregistry and server for a second time
    but my RMI Servlet client gets a
    java.rmi.ConnectException: Connection refused to host:
    xxx.xxx.xxx.xxx; nested exception is:
    java.net.ConnectException: Connection refused
    If I copy the class again where the servlets resides,which class file ? u mean RMIServer's class files ??
    I have faced the same problem too. In my case if i just restart my Tomcat webserver the error goes and the servlet is very well able to connect back to the RMI Server
    it works again. But I have to keep doing that. I have
    to keep copying the class file to the servlet
    directory every 2nd time I try to run it for it to
    work.
    Anyone know what am I doing wrong?

  • Unable to start Oracle BI server and Presentation Service

    I am unable to start the Bi Server and presentation service . I start stop, options in service window is coming disabled. Please can any body help on this?

    Hi,
    Please check if you have started the Oracle BI Java host service.
    Check if the OC4j is started.
    Check the event viewer logs. Also check on what account the service is starting.
    Hope this helps ...
    Thanks,
    Anita

  • Pls Suggest server names for Reporting Server and Shared Services

    Hi,
    Can any one Pls Suggest server names for Reporting Server and Shared Services
    Thanks in advance.

    Report server name: OrclRpt
    Shared Services: OrclSS

  • RMI server and client in one application - Exceptions during some calls

    I wrote an application, which is an RMI-Server (Server1), and another separate application, which is an RMI-Client (Client1). Because I wont use dynamic class loading, I gave the client beside the interface.java also an interface_implementation.java, which is only a dummy of the original interface_implementation of the server. This dummy contains only declarations of the methods (parameters and return values) and no functional code. From this dummy the _stub.class is generated, and it works fine - no problem.
    Now I want to modify Client1 to become also an RMI-Server (Server2) for a second, separate Client (Client2), the methods used are different from the first RMI connection. This Client2 uses a dummy of the implementation of Server2 in the same way as described above. The application Client1+Server2 only has to "translate" the calls from Client2 to Server2 into calls of Client1 to Server1 (Server1 is not changed at all). In case of primitive method parameters or return values this chain of RMI-applications works fine, but in case of more complex structures (my own classes) during the call of Client1 to Server1 an "ClassNotFoundException: access denied to class loader" occurs by running through the stub. Both stub.classes are found, all of the applications know the objects needed, the call of Client1 to Server1 is exactly the same call as it was during the simple version (only Server1 and Client1).
    Does anybody know, why this exception occurs and how I can overcome this ?
    Axel

    I figured out a solution - it's a problem of policies. In detail: Server1's codebase entry (file:) refers to the class directory of Server1's project. In the simple case of only Client1, which has no codebase entry, it works fine without a file permission on the side of Server1. In the complex case of Client1+Server2, which has to have a codebase entry (file:) refering to the class directory of the Server2's project on a separate machine, for exactly the same method call from Client1 to Server1 a file permission entry on the side of Server1 is needed for Server1's class directory. But WHY ???
    It seems to be a little confusing with the codebase entries, many of the posts are contrary to others and to my personal experiences. Some comments given by Adrian Colley throw a little light upon some aspects. Is there anybody, who can explain the whole topic, when, why, and which part of RMI application deals with codebase entries, also in case of not dynamic code downloading ? May be there is also a reference into the java docs, which I didn't found up to now.
    Thanks in advance
    Axel

  • How to Convert an RMI Server into WINNT service

    I have an RMI Server, that looks like the following
    SimpleRMIServer.java
    import java.io.*;
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class SimpleRMIServer
    public static void main(String[] argv) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    LocateRegistry.createRegistry(1099);
    SimpleRMIImpl implementation = new SimpleRMIImpl("SimpleRMIImpl instance");
    // SimpleRMIImpl implementation = new SimpleRMIImpl("SimpleRMIImpl instance");
    System.out.println("SimpleRMIImpl ready");
    catch (Exception e) {
    System.out.println("Exception occurred: " + e);
    the SimpleRMIImpl.java also is available. (SimpleRMIImpl.class)
    now the problem is how to convert this Server to a service.
    I have seen a java class that extends a service class have been converted to a service like the following
    TestService.java
    // TestService.java
    // (C) Copyright 1995 - 1999 Microsoft Corporation. All rights reserved.
    import java.io.*;
    import com.ms.service.*;
    public
    class TestService extends Service
    static
    // Uncomment to disable the assassin. The service will fail to respond
    // in the time specified in the last waithint for the third pause
    // event received. If the assassin is enabled (i.e. this line is commented
    // out, the default), then the service will be forcibly killed.
    //Service.disableassassin = true;
    int pausecount;
    int intcount;
    public TestService (String[] args) throws IOException
    System.out.println("Sending updated pending status");
    CheckPoint(1000);
    System.out.println("Sending running status with all controls");
    setRunning(ACCEPT_SHUTDOWN | ACCEPT_PAUSE_CONTINUE | ACCEPT_STOP);
    System.out.println("Started");
    protected
    boolean handleStop ()
    setStopping(5000);
    System.out.println("dying");
    return true;
    protected
    boolean handlePause ()
    pausecount++;
    if (pausecount == 3)
    System.out.println("pause #3, sleeping for 30 seconds, should be killed in 2+5 seconds");
    setPausing(2000);
    try
    Thread.sleep(30000);
    catch (InterruptedException e)
    System.out.println("interrupted");
    else
    System.out.println("received pause #"+pausecount+", pausing for 2 seconds");
    setPausing(5000);
    try
    Thread.sleep(2000);
    catch (InterruptedException e)
    System.out.println("interrupted");
    System.out.println("sending paused");
    setPaused();
    System.out.println("sent paused");
    return false;
    protected
    boolean handleContinue ()
    System.out.println("received continue, continuing after 2 seconds");
    setContinuing(5000);
    try
    Thread.sleep(2000);
    catch (InterruptedException e)
    System.out.println("interrupted");
    System.out.println("sending running");
    setRunning();
    System.out.println("sent running after continue");
    return false;
    protected
    boolean handleShutdown ()
    System.out.println("received shutdown, treating as stop");
    return handleStop();
    protected
    boolean handleInterrogate ()
    System.out.println("received interrogate");
    setServiceStatus(getServiceStatus());
    System.out.println("sent status for interrogate");
    intcount++;
    if (intcount == 3)
    System.out.println("received 3rd interrogate, stopping self in 5 seconds");
    try
    Thread.sleep(5000);
    catch (InterruptedException iex)
    System.out.println("interrupted");
    System.out.println("stopping");
    StopServiceEventHandler(1000);
    return false;
    using the jntsvc.exe tool, that code have been converted to an executable, then installed as a service.
    I've tried to embed the RMIServer code in the constructor for this service, but it didn't work
    Hope you have a clear understanding of what I'm saying
    any help, highly appreciated
    thanx in advance
    here is my email [email protected]
    regards

    Our second installment of "Questions from the Past"
    Dear viewer, check out Tomcat's source, I believe they implement Tomcat as a service so just follow what they did.
    Steve - your answer Guru
    Tune in next week for our third installment of "Questions from the past"

  • Basic understanding about Essbase Server and Administration Services

    Hi
    I am a newbie to the Essbase. I am trying to figure out the diference between Server and Services.I am very confused.
    Please clarify my understanding
    Essbase Server - This is a server in which Essbase stores all the data.
    Essbase Administration Services -This is a agent used to communicate to the Essbase Server from the front end ( Admin Console)
    Admin Console - This is a front end client used to connect to different Essbase Servers. It is possible to have Essbase Servers to be installed on different machines.
    Before connecting to client Admin console we should make sure Essbase SErver and Essbase Administration SErvices are up and running
    Thanks
    Arun

    hello friend
      what ever your saying about essbase server and EAS is correct.If you want more detailed explanation on this please have a look into essbase architecture check this link which gives you better insight
    http://gerardnico.com/wiki/epm/essbase/essbase_architecture
    it not necessary that Essbase server and EAS should be on the same machine.we can add differnt servers in EAS console.
    As far as your last question(Before connecting to client Admin console we should make sure Essbase SErver and Essbase Administration SErvices are up and running)
    Before logon to EAS we have to make sure that essbase server,essbase admin services and openldap are up and running
    thanks
    raj

  • RMI server and german umlaute

    My rmi server does not show german umlaute after rebooting the linux box. It is started by a script in init.d/rc5. The script calls a C routine that really starts the server. The crazy thing is that if I remove the script from init.d/rc5 and call it manually after reboot everything is ok.

    Sorry, I did not explain clearly, the server is the backend, the frontend is a swing application that is started by jnlp and communicates via rmi with the server. In the swing application there is a table filled with values coming from a database. In the database german umlaute are ok, in the swing frontend question marks and square boxes are shown after the linux box is rebooted.

  • Optimize Powershell script (reboot remote Server and Check Services)

    Hi there,
    For my next maintenance Weekend i try to write a script to reboot all Servers and check after the reboot all automatic Service if there are running or not.
    Now the Script works fine for me so far, but it is not perfect. I would like to ask if anybody could help me to optimize it.
    # First Part: Reboot Servers
    $date = Get-Date -Format dd-MM-yyyy
    # Get list of Servers
    $Servers = Get-Content "D:\Scripts\Reboot\servers.txt"
    # Reboot each server
    ForEach ($Server in $Servers)
    "Computer $Server initiated reboot at $(Get-Date)" | Add-Content -Path D:\Logs\Reboot\Rebootlogs_$date.txt
    Restart-Computer $Server -Force -Wait
    # Check each Server
    forEach ($Server in $Servers)
    if (Test-Connection $Server -quiet) { "Computer $Server verified to be responding to ping at $(Get-Date)" | Add-Content -Path D:\Logs\Reboot\Rebootlogs_$date.txt }
    else { "Computer $Server unresponsive to ping at $(Get-Date)" | Add-Content -Path D:\Logs\Reboot\Rebootlogs_$date.txt }
    # Seconde Part: Check Services
    # Get list of Servers
    $Servers = Get-Content "D:\Scripts\Reboot\servers.txt"
    # Check Auto Services on each Server
    ForEach ($Server in $Servers)
    ForEach-Object {
    Write-Output $Server | Out-File -FilePath "D:\Logs\Reboot\services_$date.txt" -Append
    # get Auto that not Running:
    Get-WmiObject Win32_Service |
    Where-Object { $_.StartMode -eq 'Auto' -and $_.State -ne 'Running' } |
    # process them; in this example we just show them:
    Format-Table -AutoSize @(
    'Name'
    'DisplayName'
    @{ Expression = 'State'; Width = 9 }
    @{ Expression = 'StartMode'; Width = 9 }
    'StartName'
    ) | Out-File -FilePath "D:\Logs\Reboot\services_$date.txt" -Append
    As you can see i do it in two parts, the perfect way might be in one, where i check one server and write also just one log with all information.
    At the Moment the log files Looks like that:
    Reboot:
    Computer server1 initiated reboot at 04/28/2015 15:14:51
    Computer server2 initiated reboot at 04/28/2015 15:16:40
    Computer server1 verified to be responding to ping at 04/28/2015 15:17:41
    Computer server2 verified to be responding to ping at 04/28/2015 15:17:44
    Service:
    Server1
    Name           DisplayName         State   StartMode StartName                
    RemoteRegistry Remote Registry     Stopped Auto      NT AUTHORITY\LocalService
    sppsvc         Software Protection Stopped Auto      NT AUTHORITY\NetworkSer...
    Server2
    Name           DisplayName         State   StartMode StartName                
    RemoteRegistry Remote Registry     Stopped Auto      NT AUTHORITY\LocalService
    sppsvc         Software Protection Stopped Auto      NT AUTHORITY\NetworkSer...
    Now my Question is how to Change maybe my Loop or code to get one Log like that:
    Computer server1 initiated reboot at 04/28/2015 15:14:51
    Computer server1 verified to be responding to ping at 04/28/2015 15:17:41
    Name           DisplayName         State   StartMode StartName                
    RemoteRegistry Remote Registry     Stopped Auto      NT AUTHORITY\LocalService
    sppsvc         Software Protection Stopped Auto      NT AUTHORITY\NetworkSer...
    Computer server2 initiated reboot at 04/28/2015 15:16:40
    Computer server2 verified to be responding to ping at 04/28/2015 15:17:44
    Name           DisplayName         State   StartMode StartName                
    RemoteRegistry Remote Registry     Stopped Auto      NT AUTHORITY\LocalService
    sppsvc         Software Protection Stopped Auto      NT AUTHORITY\NetworkSer...
    Thanks for helping.

    You could probably have something nice using Function and CmdletBinding so you can get something like:
    function reboot-myservers { blablabla }function check-myservices { blablabla }$Servers = Get-Content "D:\Scripts\Reboot\servers.txt" $servers | reboot-myservers | check-myservices
    Bruce Jourdain de Coutance - Consultant MVP Exchange http://blog.brucejdc.fr

  • Difference Between "Content Server" and "Content Services"

    Can someone tell me the difference between "Oracle Content Server" and "Oracle Content Services"? From my research, I get the sense that
    these are different products (and Oracle Content Services seems like it's an obsolete one), but I would like some confirmation.
    My apologies for the uber-newbie question :)

    Content Services is what you had with Content DB, Oracles old product.
    Content Server is the core engine of the UCM product, formerly Stellent Content Server.

  • JAVA Stack for consuming and providing Services with ABAP?

    Hi Experts,
    I would like to know if I need to have a Java Stack when I want to build a Web Application with Web Dynpro Abap and consume Enterprise Services from the Enterprise Service Repository. Additional own created services in ABAP should be provided. Is a Java stack necessary for that? Or is an ABAP Stack enough?
    Thanks a lot for your answers?
    Best regards,
    Ingmar

    Hi Ingmar,
    You do not need a Java stack to build or run Web Dynpro ABAP application. Web Dynpro ABAP runs on ABAP stack.
    Just to consume a web or enterprise service from Web Dynpro ABAP application, or any ABAP application for that matter, you do not need Java stack, either. NetWeaver Application Server contains a component called ICM (Internet Communication Manager) that enables the AS to play both as a service provider as well as a consumer.
    The part about consuming Enterprise Services from the ES Repository is more complicated, though.
    ES Repository is only a modeling tool. Services are actually implemented  in the respective backend systems and then registered in central Services Registry. So, if the Enterprise Service you want to consume comes from an application that runs on Java stack, although I do not have any example of that handy, then obviously - Java stack is needed. This is irrelevant, however, if your question only pertains to the consumer part.
    I hope this helps.
    Andrzej

  • Error with VB, Ora ODBC 8.1.6, MS Tran Server and Ora services for MTS

    I am getting VB error -2147168246 "Failed to enlist global transaction" from a VB middle tier component loaded in MS Tran Server. The VB error also mentions MS OLEDB Provider, however, I am using Ora ODBC 8.1.6, MS Tran Server 2.0, Ora Services for MTS (8.1.6) and Ora 8.1.6 for Win NT database. The VB middle tier component is marked as Requires Transaction. When the error occurs, the component has performed 3 SELECT's, a DELETE FROM, 3 more SELECT's, and then fails on a 4th SELECT. All of these activities are happening in this one VB component - it is not making calls to other components. Any ideas?

    Thank you for your response. To answer your question, no, the SELECT statements do not involve any LOB's. With respect to the "Failed to enlist" error message, the dialog box mentions the Microsoft OLE DB Provider. We are using Oracle's 8.1.6 ODBC Driver and our connection string in VB 6.0 uses the DSN= syntax; we don't expicitly have the Provider= syntax in there. One of our many questions is: Given the above, is the Microsoft OLE DB Provider somehow being used, instead of Oracle's OLE DB Provider? We think not because we use Oracle Services for MTS and its trace file shows some transactions enlisted and completed, but this is a deduction - we don't really know what's happening behind the scenes. Another question we have is: When installing the Oracle 8.1.6 database on Win NT 4.0, there is a step where we must choose communication protocols. We have been selecting just TCP/IP. I read in OTN that Oracle Services for MTS talks to Microsoft's DTC using Named Pipes. We are now wondering if we should have included Named Pipes as a comm protocol when installing the DB.

Maybe you are looking for

  • Issue reg creation of reservation

    Hi all, I am trying to create a reservation. I have given a plant and storage location for a material by checking in table mard. for some reason ,its says  storage location not supported even though the mard table has the same plant and storage locat

  • Ipod Touch to Iphone

    I have an ipod Touch which i use with all my apps.. paid and free and im going to get the iphone soon.. Am I able to transfer all my Ipod Touch apps to the Iphone? Thanks A very excited Rob

  • CATS_REPORTING

    Hello, we implemented extra parameters on the selection screen of the report cats_da. We want them to be implemented as search conditions on the db query, so we activated the method before_cats_data_selection  and tried to use the method set_conditio

  • How downtime can be reduced for setup table update.

    Hi; Can anyone tell me various ways to reduced system downtime for setup table updates. thanks Warm Regards Sharebw

  • Has anyone ever solved the OID problem on redhat 8

    I have noted the OID assistant failing on RedHat 8 problem discussed in a number of threads in this forum but haven't seen anyone with a clear solution. Her is how far I have gotten. [oracle@dev1 bin]$ ../ldap/bin/ldapcheck Checking Oracle Internet D