Results 1 to 6 of 6

Thread: Java card rmi install method parameters

  1. #1
    Join Date
    Jul 2010
    Posts
    62

    Java card rmi install method parameters

    I have a problem, I want to access the method proposed by MBeans in JBoss. The problem is that I can not, I think I took the wrong url.
    here is my code:

    Code:
    Url = new JMXServiceURL JMXServiceURL ("service: jmx: rmi: / / / jndi / rmi: / / localhost: 8080/jmx-console");
    JMXConnector jmxc JMXConnectorFactory.connect = (url, null);
    MBeanServerConnection jmxc.getMBeanServerConnection MBSC = ();
    String domain = "org.servicemix";
    ObjectName = new stdMBeanName ObjectName (domain + ": type = org.servicemix.jbi.container.JBIContainer, index = 1");
    mbsc.invoke (stdMBeanName, "start", null, null);
    Any idea?

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Java card rmi install method parameters

    You need to add this code:
    Code:
    java.rmi.ServerException: RemoteException
        Occurred in server ...
            java.rmi.UnmarshalException: error
              unmarshalling ...
            java.lang.ClassNotFoundException:
    The stub is easily accessible to the server BUT NOT TO rmiregistry.
    1. Decide on your architecture, taking care to separate the codes implementing interfaces, code server, ...
    2. Implement your application
    3. Test.
    4. Modify your application, test the difference between a player serialized or distributed.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Java card rmi install method parameters

    The positive impact on the performance of this mode is often overestimated, there is absolutely no need to take advantage of hardware acceleration. It can force the color depth and resolution rather than be subject to the settings for the user's desktop which can be useful for games. It may not be supported by your system. For this you can (you even have) to the following test:

    Code:
    Frame frame = new Frame(); GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice graphicsDevice = graphicsEnvironment.getDefaultScreenDevice()
    if(graphicsDevice.isFullScreenSupported())
        (
         System.out.System.out.println("Mode Full Screen Exclusive supported");
        )
    Else
        (
         System.out.System.out.println("mode full screen exclusive non- supported");
        )

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Java card rmi install method parameters

    You're not in the correct directory.If you look carefully your class, you will see that the first line contains the keyword package followed by the name of the package (here rmidemo). Without going into details, it means that the name 'complete' in your class is not rmidemo.HelloImpl HelloImpl. Moreover, the physical tree on your disk must reflect this mechanism: you must certainly have a directory where your file rmidemo HelloImpl.class is. To run your file, you should then put you in the parent directory (just above) the rmidemo directory and type in your command line:
    Code:
    java rmidemo.HelloImpl
    And it should work.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Java card rmi install method parameters

    The problem is the security policy implemented in Java. On the server side, you must have a text file called java.policy or something like that (ending in policy anyway). In this file, you must indicate that your server accepts connections on port 1099 by adding a line like:
    Code:
    Permission java.net.SocketPermission "machine: 1099", "connect";
    By digging a little that, it will solve your problem.

  6. #6
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Java card rmi install method parameters

    Any construction of an application requires a major concern related to safety. The latter provides protection system and its data. However, understanding the risks associated with security is imperative especially for web applications which today carry more and more mission critical in business. A secure system is a software application that works properly without overstepping the framework of its requirements without jeopardizing the integrity of its data or expose them to people who are not allowed to access.

Similar Threads

  1. How to Install Java Card CAP File into a Smart Card
    By mysalmon in forum Software Development
    Replies: 2
    Last Post: 22-09-2011, 12:01 PM
  2. Method to Build, Sign and Install Java MIDlets
    By FuzzyLunkun in forum Tips & Tweaks
    Replies: 4
    Last Post: 01-12-2010, 10:34 PM
  3. Pass Parameters To A Popup in Java
    By Adrina_g in forum Software Development
    Replies: 4
    Last Post: 23-02-2010, 09:01 PM
  4. What is method overriding and method overloading in java
    By beelow in forum Software Development
    Replies: 3
    Last Post: 17-11-2009, 08:20 AM
  5. Java: How can I call one method in another method?
    By biohazard 76 in forum Software Development
    Replies: 3
    Last Post: 16-07-2009, 07:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,654,736.07950 seconds with 17 queries