How do I make a RMI client running in Bea find a remote, non Bea, RMI server?

On my stand alone test system I run a RMI server in one JVM,
registry.exe and a RMI client in its own JVM. The client uses
java.rmi.Naming.lookup() to find the RMI server, and this works fine.
If I run the same RMI client class within Bea the naming lookup fails! I
guess this is due to Bea using it own RMI registry rather than the
registry.exe I started separately(?)
QUESTION: How do I make a RMI client running in Bea find a remote,
non-Bea, RMI server?
Of course, in the final environment the server will run on a system
remote from Bea.
The RMI client calls are done from a servlet, not from a EJB.
The doumentation about using RMI with Bea is focused on running the RMI
server within Bea. This might be the "normal" thing to do, but in our
case Bea is the client, not the server. Do I still need to use
weblogic.rmi.*....? If so, where?
Grateful for any tip.
Göran Hagnell

On my stand alone test system I run a RMI server in one JVM,
registry.exe and a RMI client in its own JVM. The client uses
java.rmi.Naming.lookup() to find the RMI server, and this works fine.
If I run the same RMI client class within Bea the naming lookup fails! I
guess this is due to Bea using it own RMI registry rather than the
registry.exe I started separately(?)
QUESTION: How do I make a RMI client running in Bea find a remote,
non-Bea, RMI server?
Of course, in the final environment the server will run on a system
remote from Bea.
The RMI client calls are done from a servlet, not from a EJB.
The doumentation about using RMI with Bea is focused on running the RMI
server within Bea. This might be the "normal" thing to do, but in our
case Bea is the client, not the server. Do I still need to use
weblogic.rmi.*....? If so, where?
Grateful for any tip.
Göran Hagnell

Similar Messages

  • My Mac Book Pro has slowed to less than a crawl (possibly from a worm or virus).  How do I make sure it's running at peak efficiency before I complain to comcast

    My Mac Book Pro has slowed to less than a crawl (possibly from a worm or virus).  How do I make sure it's running at peak efficiency before I complain to comcast

    Please answer as many of the following questions as you can. You may already have answered some of them; in that case, there's no need to repeat the answers.
    Restart the router and the broadband device, if they're separate. Any change?
    Run Software Update and install all available updates for OS X or the computer's firmware. Any change?
    If possible, connect to the router with an Ethernet cable and turn off Wi-Fi. Any difference?
    Are any other devices on the network, and if so, are they the same?
    If you can connect to more than one network, are they all the same?
    Are all network applications affected, or only some? If only some, which ones?
    Is networking always the same, or is the problem intermittent?
    Disconnect all other devices from the network. Any change?
    If you're running a MacBook with the lid closed, open the lid. Any difference?
    Start up in safe mode and test. Any difference?
    Start up in Recovery mode. From the OS X Utilities screen, select Get Help Online. A clean copy of Safari will launch. No plugins, such as Flash, will be available. Any difference?
    If possible, turn off Bluetooth and disconnect any USB 3 devices. Any difference?

  • How can I make my mac mini run faster? Everytime i try to download a internet page I get the circle with colors. It takes too long. Help

    How can I make my mac mini run faster. Loading internet pages is too slow

    i have the same problem...it can take 10-15 seconds to just switch tabs..i think i will solve it by taking mine back

  • RMI client running from different machine giving error

    HI all
    I am trying to run the sample application getStart hello world.
    I am able to run the java applet from the same machine ....
    but i am get error when i am trying run client applet from the different machine .
    (HelloApplet exception: access denied (java.net.SocketPermission)
    client applet on machine1 and server and registory on machine2 in same lan .
    i copied the Helloapplet.class and Helloclient.html to machine1.
    appletviewer Helloclient.html
    but the java version is different in both machines.......
    can any one give some idea ....
    the errror i am geting is :
    HelloApplet exception: access denied (java.net.SocketPermission Neind-ws-003 res
    olve)
    java.security.AccessControlException: access denied (java.net.SocketPermission N
    eind-ws-003 resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:272)
    at java.security.AccessController.checkPermission(AccessController.java:
    399)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
    at java.net.InetAddress.getAllByName0(InetAddress.java:559)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:449)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
    SocketFactory.java:25)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
    SocketFactory.java:120)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:84)
    at examples.hello.HelloApplet.init(HelloApplet.java:23)
    at sun.applet.AppletPanel.run(AppletPanel.java:344)
    at java.lang.Thread.run(Thread.java:484)
    The helloapplet.java code is :
    package examples.hello;
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    public class HelloApplet extends Applet {
    String message = "blank";
    // "obj" is the identifier that we'll use to refer
    // to the remote object that implements the "Hello"
    // interface
    Hello obj = null;
    public void init() {
         try {
              System.out.println("Path looking: " +getCodeBase().getHost());
         //obj = (Hello)Naming.lookup("//" +
              //     getCodeBase().getHost() + "/HelloServer");
                   obj = (Hello)Naming.lookup("//Neind-ws-003/HelloServer");
         message = obj.sayHello();
         } catch (Exception e) {
         System.out.println("HelloApplet exception: " +
                        e.getMessage());
         e.printStackTrace();
    public void paint(Graphics g) {
         g.drawString(message, 25, 50);
    The helloclient.html code:
    <HTML>
    <title>Hello World</title>
    <center> <h1>Hello World</h1> </center>
    The message from the HelloServer is:
    <p>
    <applet
              code="examples.hello.HelloApplet"
    width=500 height=120>
    </applet>
    </HTML>

    Your problem is at the following line.
    obj = (Hello)Naming.lookup("//Neind-ws-003/HelloServer");
    The line you had commented beforehand is
    //obj = (Hello)Naming.lookup("//" +
    // getCodeBase().getHost() + "/HelloServer");
    This worked because the applet was being retreived from the same server where the RMI server exists.
    Remember, applets can only connect themselfs to the same host they are stored in and retreived from. This is because of VM, the sandbox does not allow you to connect to other machines other than the server where it resides on. If you use a applet viewer it might work if you loosen the security features. On a browser i do not belive it can be done. Maybe if you modify your security options for the VM you are able to achieve something, but personally i'm going for the "It cannot be done " answer because of what I said before.
    Hope this helps
    If any trouble then reply and I'll answer later.
    Rui P.

  • How do you make a .Desktop entry run as root?

    I know in KDE you add "X-KDE-Username=root" but what do you need to add for Gnome users (there's nothing in the desktop-entry-spec )? So is there a setting for it or do I need to make a script to run the command with gksudo/kdesu depending on the desktop environment?
    TIA

    i just put on Exec something like that
    Exec=gksu -u root /path/to/application      it requires root password
    Exec=gksudo /path/to/application      if i want to use my password/no password depends on the way i setup sudoers
    Last edited by wonder (2007-05-18 19:56:33)

  • How do I make an automator sequence run when I close an application?

    I have searched all over google, youtube, and the discussion boards but no one seems to want to do what I'm trying to do.
    I want to run a folder action every time I close out an application that imports files while its running. My actions then take those files, move them and create a symlink back to the original location so that next time the app runs, it sees the files like they never moved. I've tried 2 different ideas with varying acceptability.
    1. Create a folder action to watch the folder to copy. It got glitchy outside of Automator. I would be okay with this option but it has been acting up.
    2. Use the launching of the app to trigger the copying and moving etc. I can make the app icon the icon for my application that includes the moving and creating of the symlink. But it only does the saving when I open the app. So while I'm working on the files, they're not backed up to place until I close the app and reopen it next time.
    The catch: the file folder that I want to move files from and create symlink back to is my iMovie Library.
    Can anyone give me some ideas about how to work this right? Thank you!
    Running Mac OS X Mavericks 10.9.5  2.5 GHz Intel Core i5 8GB Ram and 1600 MHz DDR3

    Use some Applescript to launch your app, then wait until the app quits.
    When you do uit the app, the Applescript will continue then run the folder action.
    Activate "your app name here"
    repeat
         If application "your app name here" is not running then exit repeat
         Delay 10
    end repeat
    run folder action

  • How can i make my iphone backup run on the "D" drive instead of "C" drive ??

    hi there, can someone tell me how to run the iphone backup on the "D" drive instead of the "C" drive??

    The following quotation is from http://support.apple.com/kb/ht4946
    I don't know enough about Windows to know if/how you can change where all or part of a \Users\(username)\ directory is located but you may be able to find it on the Microsoft Community: http://answers.microsoft.com
    Where are iTunes backups stored on your computer
    The folder where your backup data is stored depends on your computer's operating system. Make sure the backup folder is included in your data-backup routine. iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press Return.

  • Any Ideas How I can Make this Formating Program Run Faster?

    I'm using LabView 8.0.1 to extract columns and rows from MS Excel to format to a specific format which can be read into a software program we use in-house.
    The software program requires a specific header which declares variables, etc and also fomats the extracted data in an arcane way.
    Due to an error in the software program we use, the file format that has to be read in is not uniform and has the first line containing  two point sets (see attached file for an idea of what I am talking about). Any other format will not be read by the program.
    This introduced some problems, and finally, I ended up with an highly inefficient program. It runs, but is relatively slow.
    The programs, the input excel file and output file are given for example. 
    A couple of notes on the files:
    1) The file type used as input is just an excel file which has been saved in space-delimited format.
    2)  To speed up the process,I  permitted the formating of only 2 variable types (x, y, z, variable 1, variable 2). I haven't gotten to adding more variables. Ideally, I would like to count the number of columns on the excel file, read the headers and then write the output file automatically with all the variable names.
    3) I used sequenced loops in the vi, which is probably not the best way to do this. I am guessing that I can interweave all the numbers into one large array before writing --- but have no idea how I can accomplish that.
    The output file extension is actually .fvp. I've renamed it in order to upload the file.
    Any help/suggests would be greatly appreciated!!
    ~Janak
    Files are attached.
    Attachments:
    ParticlePathExport-SlowVi.vi ‏65 KB
    Input_File_Example.txt ‏1 KB
    Output_File_Example.txt ‏1 KB

    Use the Format Into String Function instead of the large concatenation.  Most of your inputs are constants, so they could be put into the Format string of that function.  It looks like you have only 2 truly variable string inputs, so they would show up as %s in the format string.
    So your format string would be something like this (\codes turned on)  (VI is LV 8.5)
    Message Edited by Ravens Fan on 09-28-2007 05:05 PM
    Attachments:
    Example_BD.png ‏20 KB
    Untitled 2.vi ‏16 KB

  • How do I make sure I am running latest JRE on snow leopard?

    I am running snow leopard, and I somehow changed my version of java or JRE (not sure which - or if they are the same).
    But now, I want to be sure I'm running the most current versions.
    how can I check the version and if not up to date, how do I update this?
    thanks

    You can use /Applications/Utilities/Java Preferences.app to check installed Java versions, and which version is default/preferred.

  • How can i make my macbook pro run faster? seems slower then usual. :(

    okay, so my macbook pro lately seems to be going slow, well, its been gradually getting worse and worse.
    i am getting the rainbow wheel thingy just about every time i click onto a new button.
    i have SOPHOS (antivirus) installed, have never installed any antivirus or mackeeper ****.
    i usually only have safari and maybe itunes open.
    2.2GHz Intel Core i7     8 GB 1333 MHz DDR3 RAM (MEMORY)      OSX 10.8.4     15 inch screen     350GB free hard drive space
    ANY HELP WILL BE GREATLY APPRECIATED!

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    Otherwise, take the steps below when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • How can i make my macbook pro run faster?

    My macbook is running super slow. The spinning beach ball appears every thirty seconds and it's annoying. I ran the verify disk permissions and verify disk twice and nothing helps. Please help me

    Verily only checks the disks. It does nothing beyond that.
    How much free space does the system disk have?
    Alaln

  • How do you make a jmf application run on a computer without jmf installed?!

    I can create a jar with a program i made using jmf. It works on my comp, but i realized tht it doesn't work on others computers because they don't have jmf installed. How do i incorperate the jmf in my jar so that it can run on any comp whether or not they have jmf installed.
    Please help me asap, i really need to get this done.
    Thank You

    So here's some more info, Not only have i never used a mac before, I don't really know how to use one, and my girlfriend is at school pretty far away right now, shes not good with computers either. So i don't wanna have to resort to asking her to install jmf on her macbook. If i do have to do that i guess i could get her friend to help her out.
    But i'd still rather get this problem fixed. How do i incorperate jmf with my program, so it runs on all computers. I checked the native folder in SipCommunicator 1 release 2 and 3, but its only one dll file called ShellLink.dll
    I checked everywhere in both of the downloads and i couldn't find any other dlls.
    I must be downloading the wrong thing....
    I downloaded
    SIP Communicator 1.0-alpha2 release: Generic installer for all OSs
    and also
    SIP Communicator 1.0-alpha3 nightly builds: Generic installer for all OSs, Java installation required
    The reason i got the generic installer is because I have a vista, and i want to run this on a mac. I don't have or know any one living near me with a mac, so i need to be able to build it on my comp.

  • How can I make adobe photoshop cs6 run faster?

    Windows 7 Ultimate
    Processor: AMD Athlon(tm) XP Processor 3000+ GHz
    Installed memory (RAM): 768 MB usable
    System Type: 32 bit operating system
    Thanks for your help!

    GrantyPanty wrote:
    How exactly do I get more RAM or install a 64 bit operating system? How much RAM do I need?
    That depends on your computer; best ask in the shop where you bought it.
    How much do you need?  The more, the better.  I have only 4GB, and my Photoshop works decently well (for the limited tasks I use it for).  If you use it heavily, probably 8GB or 16GB would be better.
    However, you can only use this memory if you use
    the 64-bit edition of Windows
    the 64-bit edition of Photoshop
    Unfortunately you cannot upgrade 32-bit Windows to 64-bit Windows; you need to install it from scratch.

  • How can I make Final Cut X run faster on MBP 13?

    Hi all,
    I have a Macbook Pro 13inch Early 2011, 320 HD, OSX 10.8.3 2.3 GHz with 4 GB of memory. I use Final Cut X about once a week for editing, but it's literally frying my laptop. When I open it, I can't have any programs running. FC and my laptop become slow and unresponsive about once every ten minutes. I save all of my projects on my external HD and I have the background rendering turned off. Is there any solution for FC being this slow? I'm doing the editing to save up for a 15 inch MBP, but for now I have to use my 13inch. Any help would be greatly appreciated.

    At a minimum, increase your RAM to 8 GB.
    Put your events and projects on an external Thunderbolt or Firewire 7200 RPM drive.
    Maintain at least 25% free space on your boot drive.
    Use proxy clips.
    Russ

  • How can I make my vi to run on both ver 8 and 7.1?

    HI,
    The vi I'm making will eventually work on a machine with ver 7.1.   The machine I use for developing is running on ver 8.  What shall I do in order for the vi to run smoothly on the 7.1 machine?
    Thanks

    Make sure you don't use any new features that are only available in 8.0.
    In LabVIEW 8.0, try to save it for previous version and see if you get any messages about incompatibilities. Check the LabVIEW 8.0 release notes for a list of new features.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Write a progarm to test two parts at the same time

    Hi: I need to write a program in LabView that is capable of testing two parts at the same time. Explanation: I star the test on a unit, once all the electrical test is done move that unit to the pressure test without loosing the current test informat

  • LiveCycle ES4 Database Initialization

    Hello,,, I am in the process of installing LiveCycle ES4 on an Oracle Linux box with version 6.4. I am using Weblogic version 11g (10.3.6).. All the weblogic domains and machines are setup and running fine when I start them manually or through instal

  • Using a ref cursor

    I have a function that I created and am trying to use it to output data using a ref cursor. My function call is declare ret_cursor crsiweb.types.cursorType; type output_rec_type is record( location varchar2(100), client varchar2(100), number_in long,

  • Lost some customizations when computer crash

    I was right in the middle of work in LR 4.1 and my computer crashed. There was a problem with my video card all of a sudden. I got that resolved and when I went back into LR, catalog opened fine but SOME of my customizations were gone.  All the user

  • Where is my Photoshop?!

    I downloaded a trial of Photoshop two weeks ago. Before I could finish installing it, my laptop crashed & I had to do a system restore to the time before I began the Photoshop install. Now, whenever I try to re-download Photoshop, Adobe Creative Clou