Rmi and http

i know this might sound silly but i am new to rmi ( to java too )
i want to understand the difference between rmi and other protocols such as http,ftp and so.
now what i think i know - and sometimes think im not sure i know or
perhaps im sure i know nothing about - is that rmi is java specific and can only work with java while http is different if im not wrong.. and rmi does not require http r8?
so how can rmi work over http or ftp ..,( can it in the 1st place ?)

Which version of WLS you are using?
Applet should also need to satisfy the version requirements similar to
standalone java client. With WLS 5.1, it may work. But, it will not work
with 6.* servers.
Again, the JRE versions in the Netscape and IExplorer are different. So the
applet, working in IE may not work on Netscape. It is better to test a
sample application, than taking assumptions.
Cheers,
..maruthi
"Andrea Musumeci" <[email protected]> wrote in message
news:3cb1dcba$[email protected]..
can an applet written in java 1.1.x work in a browser using weblogic rmiwithout a plugin? I need to create a java chat applet with callback. Tnx in
advance

Similar Messages

  • What is the difference between RMI and JAX-RPC?

    Dear All
    First of all my understanding of RMI and JAX-RPC:
    RMI is JAVA only version of RPC. It can't talk to any other language.
    JAX-RPC is a part of JWSDP and if you implement your client and server with JAX-RPC, client written in any language can talk with JAX-RPC implementation.
    What else makes them different and am I right with my understanding?
    Finally, I would like to develop clients which will have a java class, say httpserver.java, which will act like a http server, listens to a http port. Now, Two such client will run in two different PC and I want to call a module from one client to another which should be accessible via my httpserver.java. For that which should be my choice RMI or JAX-RPC? Can I achive it with http get-post method, as I am expecting to read some value of variables from one client to the another.
    Say class A has variable a, aa, aaa and clas B has variable b, bb, bbb. Now I want to read the value of b, bb, bbb from class A. How do I do that when class B is listening to a http port with my httpserver.java class.
    Lastly, say B is listening to a http port and I want to send a file to B from A. How can I do that? Remember, B didn�t ask for that. How can A send a file to B when B is listening to a http port with my httpserver.java.
    With regards
    Mohammed Jubaer Arif
    Mobile: +61-0411215302
    Personal Web: http://www.geocities.com/jubairarifctg/
    Org. Web.: http://www.geocities.com/halimschamber/

    simply put, RMI allows you to (semi) transparently treat remote objects as if they were local, and your distributed application can be written (more or less) like a "normal" java app. Sockets just give you a "raw" connection to work with, and you get to build up your application from that.
    I hope that helped
    Lee

  • What are the limitations of using RMI over http with EJB?

    We have a requirement for an intranet application where the majority of the clients
    (Swing clients) will be able to connect directly using either T3 or IIOP. However,
    there are a number of clients that will need to traverse a firewall.
    We could use SOAP, but I dont want to lose the value that RMI gives us (clustering,
    security, statefullness support etc). I am thinking of using RMI over http - which
    Weblogic supports.
    I have been trying to find some documentation on the topic - but havent succeded
    so far. What I would like to understand is: What limitations I would have using
    RMI over http. Do I lose anything (apart from performance) using http?
    Regards,
    Nick

    You will have to enable tunneling on the server side and I have not heard of any
    complaints of using it.
    Shiva.
    Nick Minutello wrote:
    In fact, we are not using applets - and its not an internet application. We are
    using Java Webstart and Swing on our intranet (the problem of the size of the
    weblogic.jar is a pain - but well known)
    The question for me is; Apart from performance, are there any limitations to using
    RMI over http?
    Can we also use JMS over http?
    -Nick
    Shiva Paranandi <[email protected]> wrote:
    "Old wine new bottle".
    The biggest problem with the approach of Applets like
    stuff connecting to weblogic is the size of the classes that need to
    be supplied to the
    users. The applets/swing would need a lot of weblogic classes which you
    need to
    supply as jar file. This file can be in the order of MBs depending on
    the
    weblogic version. we had a similar kind of problem and migrated the applets
    to use
    servlets instead of directly invoking ejbs or jms topics etc. Having
    the applets
    connect
    to servlets you would still benefit from the features of clustering etc.
    and added to
    that
    you would reduce the number of remote calls.
    Shiva.
    Nick Minutello wrote:
    We have a requirement for an intranet application where the majorityof the clients
    (Swing clients) will be able to connect directly using either T3 orIIOP. However,
    there are a number of clients that will need to traverse a firewall.
    We could use SOAP, but I dont want to lose the value that RMI givesus (clustering,
    security, statefullness support etc). I am thinking of using RMI overhttp - which
    Weblogic supports.
    I have been trying to find some documentation on the topic - but haventsucceded
    so far. What I would like to understand is: What limitations I wouldhave using
    RMI over http. Do I lose anything (apart from performance) using http?
    Regards,
    Nick

  • Simple RMI over HTTP in MIDP1.0 - open source project

    Hi All,
    For anyone interested in doing remote method calls (over HTTP) to a server from a MIDP 1.0 MIDlet there is an open source project now available for this. Please see MeRMI (Micro Edition RMI) at:
    http://mermi.dev.java.net
    You can use this to create a remote server class, much like you would in RMI. MeRMI then generates classes to do the remote communications for you. So you can just make nice, simple Java calls from your MIDlet, without having to worry about how the calls are passed to the server, etc. It's all pretty easy to use (especially if you have used RMI before) and takes a lot of the hard work out of building network applications.
    The toolkit is completely free (LGPL) and open source, you can use the code and do what you want with it.
    Hope it comes in useful to someone!
    zonski.
    Note: MeRMI does not support callbacks, but an event mechanism using blocking, polling requests can be used to create server to client messaging.

    It sounds interesting. It is only for MIDP 1.0?, what about MIDP 2.0?

  • 404 error Exception in thread "main" java.rmi.RemoteException: HTTP �������� 4

    I have Install Sun Application Server PE and JWSDP,when I run asant run-sample,an error below:
    run-sample:
    [echo] Running the simple.TestClient program....
    [java] Service URL=http://localhost:8080/securesimple/Ping
    [java] 2005-11-11 1:03:11 com.sun.xml.wss.impl.filter.DumpFilter process
    [java] ����: ==== Sending Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://xmlsoap.
    org/Ping" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.
    org/2001/XMLSchema-instance">
    [java] <env:Body>
    [java] <ns0:Ping>
    [java] <ns0:ticket>SUNW</ns0:ticket>
    [java] <ns0:text>Hello !</ns0:text>
    [java] </ns0:Ping>
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Sending Message End ====
    [java] Exception in thread "main" java.rmi.RemoteException: HTTP �������� 4
    04: ������ - /securesimple/Ping; nested exception is:
    [java] HTTP �������� 404: ������ - /securesimple/Ping
    [java] at simple.PingPort_Ping_Stub.ping(PingPort_Ping_Stub.java:146)
    [java] at simple.TestClient.main(TestClient.java:34)
    [java] Caused by: HTTP �������� 404: ������ - /securesimple/Ping
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.checkResponse
    Code(HttpClientTransport.java:302)
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.connectForRes
    ponse(HttpClientTransport.java:252)
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpCl
    ientTransport.java:88)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:96)
    [java] at simple.PingPort_Ping_Stub.ping(PingPort_Ping_Stub.java:130)
    [java] ... 1 more
    [java] Java Result: 1

    Hi,
    Before connecting through your main program, you have to keep ready your catching object. Mean to say first you have to run local method which will be waiting for remote method to catch.
    Regards,
    Ravi Maheshwari

  • Java.rmi.RemoteException: HTTP Status-Code 404 Not Found  securesimple/Ping

    Hello!
    I'm testing interop and simple application for JWSDP and I get the following error in the context:
    build-client:
    run-sample:
    [echo] Running the simple.TestClient program....
    [java] Service URL=http://localhost:8080/securesimple/Ping
    [java] Nov 4, 2004 1:31:54 PM com.sun.xml.wss.filter.DumpFilter process
    [java] INFO: ==== Sending Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/".............
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Sending Message End ====
    So, after the client has send the message this error occurs:
    [java] java.rmi.RemoteException: HTTP Status-Code 404: Not Found - /secures
    imple/Ping; nested exception is:
    [java] HTTP Status-Code 404: Not Found - /securesimple/Ping
    [java] at simple.PingPort_Stub.ping(PingPort_Stub.java:96)
    [java] at simple.TestClient.main(TestClient.java:37)
    [java] Caused by: HTTP Status-Code 404: Not Found - /securesimple/Ping
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.checkResponse
    Code(HttpClientTransport.java:302)
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.connectForRes
    ponse(HttpClientTransport.java:252)
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpCl
    ientTransport.java:88)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:92)
    [java] at simple.PingPort_Stub.ping(PingPort_Stub.java:80)
    [java] ... 1 more
    [java] Exception in thread "main"
    [java] Java Result: 1
    The application is running on localhost in a local network, so for accesing internet we're using a proxy. For this we tried to set up the proxy configuration and still the same error. We've also unplugged the network cable but it didn't help.
    We've done all the neccesary settings and we're using "org.bouncycastle.jce.provider.BouncyCastleProvider " as a JCE provider.
    Thank you!

    Just a guess, but if this is a secure web service shouldn't you be trying to connect to it using SSL? e.g.
    https://localhost:443/securesimple/Ping
    Have you tried hitting the web service via your browser and appending the ?WSDL to the URL
    http://localhost:8080/securesimple/Ping?WSDL
    https://localhost:443/securesimple/Ping?WSDL
    Can you telnet to http://localhost:8080

  • RMI over HTTP

    Hi, I'm new to this forum and fairly new to Java. I'm trying to run RMI from an applet, it works fine on the LAN but has problems externally due to firewalls. I'm now trying to set up RMI over HTTP to negate this problem but cannot find the Java-RMI.CGI script anywhere. I'm using J2SDK1.4.0, if anyone knows where to get this and how to configure it for IIS5 I would be most gratefull.

    The following is an example of java-rmi.cgi in Unix
    #!/bin/sh
    # This file handles rmi requests to download RMI code
    # The work is done by the class:
    #      sun.rmi.transport.proxy.CGIHandler
    # This class supports a QUERY_STRING of the form
    # "forward=<port>" with a REQUEST_METHOD of "POST"
    # The body of the request will be forwarded to the server (
    # as aPOST request) to the port given in the URL. The response
    # will be returned to the orginal requester.
    # Set the path to include the location of the jdk to run
    PATH=/opt/java/bin:$PATH
    java   \
       -DAUTH_TYPE=$AUTH_TYPE \
       -DCONTENT_LENGTH=$CONTENT_LENGTH \
       -DCONTENT_TYPE=$CONTENT_TYPE \
       -DDOCUMENT_ROOT=$DOCUMENT_ROOT \
       -DGATEWAY_INTERFACE=$GATEWAY_INTERFACE \
       -DHTTP_ACCEPT="$HTTP_ACCEPT" \
       -DHTTP_CONNECTION=$HTTP_CONNECTION \
       -DHTTP_HOST=$HTTP_HOST \
       -DHTTP_USER_AGENT="$HTTP_USER_AGENT" \
       -DPATH_INFO=$PATH_INFO \
       -DPATH_TRANSLATED=$PATH_TRANSLATED \
       -DQUERY_STRING=$QUERY_STRING \
       -DREMOTE_ADDR=$REMOTE_ADDR \
       -DREMOTE_HOST=$REMOTE_HOST \
       -DREMOTE_IDENT=$REMOTE_IDENT \
       -DREMOTE_USER=$REMOTE_USER \
       -DREQUEST_METHOD=$REQUEST_METHOD \
       -DSCRIPT_NAME=$SCRIPT_NAME \
       -DSERVER_NAME=$SERVER_NAME \
       -DSERVER_PORT=$SERVER_PORT \
       -DSERVER_PROTOCOL=$SERVER_PROTOCOL \
       -DSERVER_SOFTWARE=$SERVER_SOFTWARE \
       sun.rmi.transport.proxy.CGIHandler

  • Can we use applets as user interfaces with sockets, RMI and J2EE

    Dear Sir or Madam,
    Since I am a TA for software architecture class, some one ask me the following question: I think the answer is "No" based on the document on http://java.sun.com/sfaq/
    How I answer the quesions? Looking forward your help!!!
    1.You may have 2 applets and 2 html files. One applet with one html file may stay at a client PC and run on this PC, and the other applet with the other html file may stay at a server PC and run on this PC. In this case, all the applets are run locally.
    2.Could applets works with sockets, RMI and J2EE?
    3.Can we use applets as user interfaces with sockets, RMI and J2EE?
    Thank you very much!
    Best regards,
    Jing

    The scenario you paint doesn't quite make sense. The "server PC" wouldn't be running an applet, normally, since applets are by definition in a web browser page, and most likely involve user interaction, and "server processes" generally are done without user interaction.
    The security rules around applets are that -- by default -- applets can connect with sockets ONLY to the server from whence the applet was loaded. RMI uses sockets (J2EE is too broad a spec) and hence RMI calls would also be limited to the server from whence the applet was loaded. Within that limitation, an applet could open all the sockets it wants, so long as they are all on the server from whence the applet was loaded.
    If you want two applets on two different systems to communicate with each other, the simplest way is to have them rendevous through a server process on the server(s) from whence each applet was loaded. Maybe it's PC-a <-> server-a <-> server-b <-> PC-b ...? Or maybe PC-a and PC-b both are talking to the same server.
    The limitation is rooted in the security subsystem. You can specify a policy file and override anything in the security subsystem. That does mean signing the applet and then cajoling the user into agreeing to grant greater levels of security than the default. In such a case you can open sockets more broadly and then PC-a could talk directly to PC-b without going through any servers.
    - David

  • RMI and Corba

    Please i need someone to tell me when to tell me the real life application of RMI and CORBA.

    jtahlborn wrote:
    wpafbuser1 wrote:
    jtahlborn wrote:
    Somebody just posted the answer to this question in another forum:
    http://catb.org/~esr/faqs/smart-questions.html
    I would argue that Google has always had the answer to this question and this is not the place for such a high level interest.Did you check out the link? ;)Haha! Nice. I missed that. We need more of that kind of tough love trickery :)

  • Rmi and iiop

    hi,
    may i know that what is the difference b/w rmi and iiop "some one told me that it is the marrige form b/w RMI and CORBA"
    please explain me or give me a link to explanation.
    thanks in advance!

    http://java.sun.com/j2se/1.3/docs/guide/rmi-iiop/

  • RMI and JXTA

    Please i am confused between RMI and JXTA. I know that JXTA is for Peer 2 Peer distributed computing and RMI for general distributed computing. But what are the technical differences ? Can RMI be compared to JXTA or are they completely different things. Thanks

    basically this is where im at. I have two applets for the two different versions of the game. You can Check them out at
    http://cs.stmarys.ca/~csc465004/gui/MastermindAppletCM.html, or
    http://cs.stmarys.ca/~csc465004/gui/MastermindAppletCB.html
    but dont use netscape or it wont work. so these two play against the computer. what i would like to do is have it so that two people can play against each other. so when they click the SEND button they can send their guess or their score to the other player and update both of thier applets. i have no idea what to do.

  • Rmi iiop http ?

    Hi,
    I'd like to have some precisions about the communication between a
    remote java fat client and a weblogic ejb container.
    We should use RMI, but what is the protocol we have to use : RMI IIOP
    or HTTP
    Can we wrap rmi with http ?
    thanks in advance

    You can use RMI over t3(weblogic specific) or IIOP.
    Please take a look at http://edocs.bea.com/wls/docs81/rmi_iiop/index.html
    -utpal
    "truecolor" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I'd like to have some precisions about the communication between a
    remote java fat client and a weblogic ejb container.
    We should use RMI, but what is the protocol we have to use : RMI IIOP
    or HTTP
    Can we wrap rmi with http ?
    thanks in advance

  • Corba,RMI and RMI-IIOP

    Can someone help me understand and analyze the marshaling techniques of CORBA, RMI and RMI-IIOP??

    RMI/JRMP is easy, just read the RMI Specification:
    http://java.sun.com/j2se/1.5.0/docs/guide/rmi/spec/rmi-protocol.html
    CORBA is not so easy. Find the GIOP and IIOP specifications at http://www.omg.org

  • Help Please!!!!!  RMI and Threads

    My server has 10 threads doing constant polling of network equipment through use of SNMP. I have a servlet that connects to my server and retrieves collected information by using RMI and displays it in the browser window. Browser refreshes the information very often. So, there is a constant flow of RMI traffic between the server and the servlet.
    Here is the problem:
    There are times when my server stops responding to RMI requests issued by the servlet. All 10 threads that are doing SNMP polling stop being scheduled by the JVM. They block! This picular situation occurs with the server only during RMI requests coming from servlet. It doesn't always happen though. Also, I've noticed that if RMI load is high this problem emerges again.
    I get no RMI exceptions.
    I am using Apache and Jserv.
    All of my attempts to understand and fix the problem have been futile so far. Could a heavy RMI load between my server and servlet be causing my threads to block? Should I decrease my RMI traffic?

    You have the same problem I had. You need to set the timeout .. so once the timeout is exceeded, an exception is thrown. You need to create a custom RMISocketFactory ... trust me, its easier than it sounds ..check the answers to my post at:
    http://forums.java.sun.com/thread.jsp?forum=58&thread=167287
    hope that helps.

  • Difference between RMI and Java Beans

    Hello
    I have to develop a program that allow the users to have access to the Patient information . The program will also organize appointment between the users and the patients. + extra thing like agenda .....
    I will have about 10 to 20 user that will have access at the same time to the same info .
    My question is :what is the best solution for such kind of programes
    RMI :after searching in google (it is light weight )
    java beans:more powerful than RMI
    or maybe thread ???
    any one can explain the difference please ?
    Thank you

    A little [url http://www.google.ca/search?hl=en&q=rmi+ejb&btnG=Google+Search&meta=]google with keywords: rmi ejb would give all the answers you need.
    Specifically you could read [url http://www.devx.com/Java/Article/20843/0/page/1]the article from the first result: EJB and RMI: A Practical Introduction.
    Also there are many threads from these forums that already answered your question in the past.
    Here is one: [url http://forum.java.sun.com/thread.jspa?threadID=539544&messageID=2613399]Rmi and EJB.
    Happy reading!
    Regards

Maybe you are looking for

  • XML to Nested Itab using Simple Transformation

    Hi there is there any experts there who can show me an example of Transforming a XML to a Nested Internal Table using Simple Transformation? I have tried this the program from the blog by Tobias Trapp <a href="/people/tobias.trapp/blog/2005/05/04/xml

  • Issue with attachment file name

    Hi All, This is about an issue with attachment file name: we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments a

  • Ios update lost purchased songs on ipad

    I lost purchased itunes songs on my ipad after last ios update.

  • Archive Support Messages using SARA

    It is my understanding that the CRM message has to be archived using the archiving object CRM_SERORD in Transaction SARA. Does anyone have the detailed steps to correctly archive a CRM message within this transaction?

  • How do I transfer an itune into another software program like Vegas Studio?

    I purchased an itune but can't figure out how to import it into vegas studio. The only way I've figured out to work around it is by burning the song onto a CD and then importing it back onto my computer with Sound Forge. Any other suggestions? I hate