RMI please get me started

I know the reasons behind using java RMI. But i don't know where to start. Please tell me how to start learning java RMI.

In the RMI tutorial for the client there are two source code files. Which one do i have to use?
client.compute.PI or client.PI ?
also in the implementing the remote interface there are two source code files which one do i have to use?
Please help.

Similar Messages

  • Please get me started!

    "Arch Linux 2.6.31-ARCH   (myhost) (tty1)
    myhost login: root
    Password:
    [root@myhost ~]#"
    - Now what? I'm just experimenting through Virtual Box but I hope to be able to use Arch as my main OS in the near future. 'I want to build it with fluxbox and stuff' - You might find a lot of errors in that statement but please, just link me a from-scratch guide or something.
    Thanks in advance!

    A big yes to the beginner's guide on the wiki - it's very good. Plus there's more than one page on the wiki about fluxbox - look under "desktop environments".

  • I want to get rid of everything in itunes , music, movies etc and start afresh. Ive deleted all old libraries but still there is stuff in iTunes. Please help me start afresh?

    i want to get rid of everything in itunes , music, movies etc and start afresh. Ive deleted all old libraries but still there is stuff in iTunes. Please help me start afresh?

    Please do not delete any files from the HDD without having a current backup.
    I'm not sure what you mean when you say you've "deleted all old libraries." Can you explain that?
    If all you are wanting to do is empty the iTunes library of all music, video playlists, etc. the easiest way is to quit iTunes and, in the Finder, go to ~/Music/iTunes and simply move the .itdb, .itl and .xml files to the trash. Launch iTunes again and the library will be empty.
    You should be prompted to add content, so you can let iTunes scan the HDD if you like.

  • Please help i started my project video format 720HD resolution 12x720 rate 25p at last when i finish and burn to dvd the edges are cut off any one help please i am really in trouble

    please help i started my project with  video format 720HD, resolution 12x720, rate 25p.  at last when i finish and burn to dvd the edges are cut off and my logo cut off the screeen aswell any one help please i am really in trouble. thanks

    Sorry, but I don't know anything about that app.
    I did go to their Web site and I see they have a support link. Perhaps you can get help there or in their forum.
    If you are OK with a DVD with a basic menu, you could try the Share>DVD option in FCP.
    Good luck.
    Russ

  • Getting the start  and end dates of the week

    Hi,
    I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
    Thanks

    There is no simple way. It has to be a math calculation.
    There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
    Hope this helps to get you started.
    - Venkat Dhurjati.

  • (Example) Books to get me started

    Hi,
    I am new to Java programming and besides the Herbert Schildt's, "Java2: The Complete Reference" book (required by instructor), I would like to purchase some other books to get me started into the subject.
    I am specially interested about books loaded with examples; I am more of a practical learner vs an abstract one.
    Please post your recommendations.
    Thanks.

    Before you go out buying more books take advantage of free:
    http://java.sun.com/developer/onlineTraining/
    http://java.sun.com/developer/codesamples/#javase
    http://www.mindview.net/Books/TIJ/ (Thinking in Java: buy or read on web)
    and I also like:
    Head First Java, 2nd Edition by Kathy Sierra and Bert Bates
    But please do not get mixed up about learning Java and learning to program--Java is the tool and programming is the actual method.

  • CS5 Trial Download -- Cannot get past 'starting up plug-ins'

    i did some searches through the forum and didn't find any answers about this. I successfully downloaded the trial software for CS5 and extracted and installed it.  After a system restart I tried to open the system, and the startup splash page runs, but when it gets to 'Starting up plug-ins...' i get an error saying the program ran into an unexpected error and had to close.  I've uninstalled and reinstalled multiple times.  Can someone please help? 

    function(){return A.apply(null,[this].concat($A(arguments)))}
    John Joslin wrote:
    flydrgn wrote:
    i have an HP laptop running Windows XP.
    Did you right-click the .exe file and select Run as Administrator?
    Being Administrator is not enough.
    Yes it is...  On Windows XP.  No UAC there, John.
    Flydrgn, have you made sure you have the latest video drivers for your particular video interface?
    -Noel

  • I keep getting a "start up disc is full" message on my iMac (running leopard)-  its a new mac so can't be full?

    I keep getting a "start up disc is full" message on my iMac (OSX 10.7.3 running leopard).  It can't be full the mac is only a few months old - please help - I am not a computer whizz so treat me gently!!

    Do you have any external hard drives attached that your system might be booting from? Did you create multiple partitions on your hard drive, one of which may be full? These are a couple of possibilities, and there may be others.
    I suggest powering on your system then immediately hold down the option key. Your system should display the system picker screen showing all bootable volumes. Do you see just one boot volume show up?
    I also suggest launching the Activity Monitor application that can be found in the Applications/Utilities folder. Click on the 'Disk Usage' option to see how much drive space is available as shown below. You may also want to use the Disk Utility application to verify the hard drive and file permissions. Both of these are options available within the application.

  • Cannot Get PSCS6 Started (Mac)

    When I start PSCS6 it flips over to the Adobe Applications Manager (V6.0.236.0) and says Sign In Required but provides NO place to enter Adobe ID etc.
    Clicking on Sign in now flips to a second screen:
    Clicking retry just jumps back to this second screen. Cannot get past this "loop".
    How do I get PSCS6 started?
    Thanks!

    Hi All,
    Please follow the instructions mentioned in kb doc:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#id _78979
    There are a few threads on this same issue. Please try this suggestion and post ot the main thread at:
    I cannot sign in to Adobe Photoshop CS6
    Do let us know if issue still persists.
    Regards,
    Ashutosh

  • I just got my brand new Iphone 4 at work!! Can I create an itunes account and get it started (no music files here at work)....then when i get home- I can fill it with the files I want?? I dont want to wait!!!!

    so..basically- can I sync my phone here to get it started, and then continue playing at home?  I have no intentions in ever transferring anything from my work computer- but I want to get this up and running!

    Read here.
    iTunes: How to set up an iTunes Store account (Apple ID)
    I know you are impatient but better to wait until you get home and take your time thus eliminating mistakes.
    Connect the iPhone to your computer and follow the onscreen instructions. If you connect the iPhone to another computer first, you will have to re authorize your home computer. You don't want to do that.
    Patience grasshoppa.

  • I have an MacBook Pro 10.6, using disk utility I tried to verify my disk, but it came up with the message, please use your start up disk, I tried this, starting the computer up and pressing C, but it ejected the disk, the same thing happened while I runni

    I have an MacBook Pro 10.6, using disk utility I tried to verify my disk, but it came up with the message, please use your start up disk, I tried this, starting the computer up and pressing C, but it ejected the disk, the same thing happened while I running the computer. Is the hard drive damaged as laptop doesn't seem to recognize the start up disk ? If so, I presume I will have to put in a new one.
    There haven't been any problems with the computer, apart from a sticky curser,I have run a permissions programme from disk utility, there were a lot of different ones, but it seem to be able to fix them.
    Any comments or ideas ?
    Thank you in anticipation.

    First backup your users files off the machine to a external storage drive (not TimeMachine!)
    Most commonly used backup methods
    Next to startup from the disk, have it inserted, hold c or option/alt (wired or built in keyboard) and then boot the computer and or select the disk when it appears and click the arrow.
    Disk Utility is under the Utilities menu on the second screen.
    Step by Step to fix your Mac
    If you used the wrong 10.6 disk, it will spit it out or have issues, use the one that came with that machine or if it's defective, call Apple for a new one.

  • Not able to get the start constellation of the MOPZ transaction

    Hello,
    When I get to step 3 of the transaction MOPZ the following error message appears to me "Not able to get the start constellation of the MOPZ transaction"
    How I can fix it?
    Best Regards!

    Hello
    Implementing the here under note you solve your issue
    Best regards
    1803377 - MOpz: Not able to get the start constellation

  • I have an iphone 4 and it will not boot. I've done everything except downgrade the firmware to 6.1.3 or 6.1.4... is this what needs to happen and if so can I please get a link to do so? thanks

    I have an iphone 4 and it will not boot. I've done everything except downgrade the firmware to 6.1.3 or 6.1.4... is this what needs to happen and if so can I please get a link to do so? thanks

    Hi JACOBfromINSIDEaLION,
    If you are unable to get your iPhone to restore, you will want to perform a restore from recovery mode, as explained in the following article:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • I just upgraded to the New OS on my Mac Book Pro and now my trackpad does not zoom in or out.  I looked at system settings on trackpad and it is set, but does not work How do I get it started?

    I just upgraded to the New OS on my Mac Book Pro and now my trackpad does not zoom in or out.  I looked at system settings on trackpad and it is set, but does not work How do I get it started?

    This is really unfortunate. I'm sorry that nothing works. I was going to mention holding down the power button and doing a force shutdown but you already did that. You might need to take it into the Apple store. I don't know if booting into safe mode would help. You would have to turn off the machine again, hit the start button and hold down the shift key after you hear the tone, but normally you would let go of the shift key when you see the apple logo and spining wheel. Maybe by holding down the shift key after you here the tone will cause the screen to come back on? The other option is to start up from the 'install disk' if your machine came with one. You would insert the disk, then shut down the computer, and hold down the C key right after hitting the start button.
    Here's the link for the safeboot
    http://support.apple.com/kb/HT1564?viewlocale=nl_nl

  • Connection to CRX via RMI and getting WeakReference value..... with an exception!

    Hi there,
    I have the following problem.
    I opened a ticket in Day Care Support system, about CRX users/group membership that got lost while synchronization with our LDAP server.
    Although when the user and the group had been created (and therefore taken from that same LDAP server), the membership was good.... but after some time the membership got lost......
    So what i am trying to do now is a Java program that connects to CRX via RMI.
    And gets the list of all the users from a group (aka membership).
    The idea is to monitor the membership each seconds.
    But when trying to get the property "rep:members" of the group, I have the following exception :
    javax.jcr.ValueFormatException: Unknown value type 10
              at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:13 9)
              at org.apache.jackrabbit.rmi.server.ServerProperty.getValues(ServerProperty.java:71)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
              at java.lang.reflect.Method.invoke(Method.java:611)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)"
    I searched a little bit and found that "10" is the number for type WeakReference.
    That's normal to me because memberships are stored in the group as a list reference to users linked to that group....
    Anyways, what's not normal to me is that when the type is "10" the API does not let me get the Value (cf. ServerProperty.getValues() method)
    Here is the program:
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import javax.imageio.spi.ServiceRegistry;
    import javax.jcr.Node;
    import javax.jcr.NodeIterator;
    import javax.jcr.Property;
    import javax.jcr.PropertyIterator;
    import javax.jcr.Repository;
    import javax.jcr.RepositoryException;
    import javax.jcr.RepositoryFactory;
    import javax.jcr.Session;
    import javax.jcr.SimpleCredentials;
    import javax.jcr.Value;
    public class Test {
              public static void main(String[] args) {
                        String uri = "rmi://sma11c02.............:1234/crx";
                        String username = "admin";
                        char[] password = {....................};
                        String workspace = "crx.default";
                        String nodePath = "/home/groups/a";
                        Repository repository = null;
                        Session session = null;
                        try {
                                  // Connection to repository via RMI
                                            Map<String, String> jcrParameters = new HashMap<String, String>();
                                            jcrParameters.put("org.apache.jackrabbit.repository.uri", uri);
                                            Iterator<RepositoryFactory> iterator = ServiceRegistry.lookupProviders(RepositoryFactory.class);
                                            while (null == repository && iterator.hasNext()) {
                                                      repository = iterator.next().getRepository(jcrParameters);
                                  if (repository == null) {
                                            throw new IllegalStateException("Problem with connection to the repository...");
                                  // Creation of a session to the workspace
                                  session = repository.login(new SimpleCredentials(username, password), workspace);
                                  if (session == null) {
                                            throw new IllegalStateException("Problem with creation of session to the workspace...");
                                  // Get the targetted node
                                  Node node = session.getNode(nodePath);
                                  System.out.println("Node : " + node.getName());
                                  System.out.println();
                                  PropertyIterator properties = node.getProperties();
                                  System.out.println("List of properties for this node :");
                                  while (properties.hasNext()) {
                                            Property property = properties.nextProperty();
                                            System.out.print("\t"+property.getName() + " : ");
                                            if (property.isMultiple()) {
                                                      Value[] values = property.getValues();
                                                      for (int i = 0; i < values.length; i++) {
                                                                System.out.print(values[i]);
                                                                if (i+1 != values.length) {
                                                                          System.out.print(", ");
                                                      System.out.println();
                                            } else {
                                                      Value value = property.getValue();
                                                      System.out.println(value);
                                  System.out.println();
                                  NodeIterator kids = node.getNodes();
                                  System.out.println("List of children nodes for this node :");
                                  while (kids.hasNext()) {
                                            Node kid = kids.nextNode();
                                            System.out.println("\tChild node : "+kid.getName());
                                            PropertyIterator kidProperties = kid.getProperties();
                                            System.out.println("List of properties for this child :");
                                            while (kidProperties.hasNext()) {
                                                      Property property = kidProperties.nextProperty();
                                                      System.out.print("\t"+property.getName() + " : ");
                                                      if (property.isMultiple()) {
                                                                Value[] values = property.getValues();
                                                                for (int i = 0; i < values.length; i++) {
                                                                          System.out.print(values[i]);
                                                                          if (i+1 != values.length) {
                                                                                    System.out.print(", ");
                                                                System.out.println();
                                                      } else {
                                                                Value value = property.getValue();
                                                                System.out.println(value);
                                            System.out.println();
                        } catch (RepositoryException e) {
                                  e.printStackTrace();
                        } finally {
                                  if (session != null) {
                                            session.logout();
    Here is the output of the below program:
    Node : a
    List of properties for this node :
              jcr:createdBy : admin
              jcr:mixinTypes : mix:lockable
              jcr:created : 2011-10-25T16:58:48.140+02:00
              jcr:primaryType : rep:AuthorizableFolder
    List of children nodes for this node :
              Child node : administrators
    List of properties for this child :
              jcr:createdBy : admin
              rep:principalName : administrators
              rep:members : javax.jcr.ValueFormatException: Unknown value type 10
              at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:13 9)
              at org.apache.jackrabbit.rmi.server.ServerProperty.getValues(ServerProperty.java:71)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
              at java.lang.reflect.Method.invoke(Method.java:611)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
              at sun.rmi.transport.Transport$1.run(Transport.java:171)
              at java.security.AccessController.doPrivileged(AccessController.java:284)
              at sun.rmi.transport.Transport.serviceCall(Transport.java:167)
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:547)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:802)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:661)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
              at java.lang.Thread.run(Thread.java:736)
              at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
              at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
              at sun.rmi.server.UnicastRef.invoke(Unknown Source)
              at org.apache.jackrabbit.rmi.server.ServerProperty_Stub.getValues(Unknown Source)
              at org.apache.jackrabbit.rmi.client.ClientProperty.getValues(ClientProperty.java:173)
              at Test.main(Test.java:96)
    Here is the list of jar files i'm using with this program:
              2862818581          61388           crx-rmi-2.2.0.jar
              732434195           335603           jackrabbit-jcr-commons-2.4.0.jar
              1107929681           411330           jackrabbit-jcr-rmi-2.4.0.jar
              3096295771           69246           jcr-2.0.jar
              1206850944           367444           log4j-1.2.14.jar
              685167282           25962           slf4j-api-1.6.4.jar
              2025068856           9748           slf4j-log4j12-1.6.4.jar
    Finally, we are using CQ 5.4 (CRX 2.2) with the latest hotfix and under Websphere 7.0
    Best regards,
    Vincent FINET

    Je suis absent(e) du bureau jusqu'au 17/04/2012
    Je suis absent.
    Je répondrai à votre sollicitation à mon retour le 17 avril 2012.
    Cordialement,
    Vincent FINET
    Remarque : ceci est une réponse automatique à votre message  "[CQ5]
    Connection to CRX via RMI and getting WeakReference value..... with an
    exception!" envoyé le 13/4/12 0:32:14.
    C'est la seule notification que vous recevrez pendant l'absence de cette
    personne.
    Le papier est un bien precieux, ne le gaspillez pas. N'imprimez ce document que si vous en avez vraiment besoin !
    Ce message est confidentiel.
    Sous reserve de tout accord conclu par ecrit entre vous et La Banque Postale, son contenu ne represente en aucun cas un engagement de la part de La Banque Postale.
    Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee prealablement.
    Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement l'expediteur.

Maybe you are looking for