File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes RMI : rmi and t3 protocol HELP..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI : rmi and t3 protocol HELP....." Watch "RMI : rmi and t3 protocol HELP....." New topic

RMI : rmi and t3 protocol HELP.....

vivek makode

Joined: Oct 01, 2001
Posts: 27
Hello All,
I am developing a Data Transfer Application involving transfer of an xml file to a remotely located computer.
I am planning to use RMI and JMS(Message Driven Bean).
I am using JAXP for generating xml file from local database and then using RMI for transfering it to a remote Weblogic Server which is running a Message Driven Bean.
Can I use rmi protocol(using naming.lookup(rmi://remoteweblogicserver:7001)) in Java RMI client without Initial Context for remote access and t3 protocol at server side for internal transfer of that file to message driven bean?
I am facing difficulties with same. I am unable to use rmi one side and t3 on one side. It gives Connection Refused exception on either side when i test it in my LAN.
According 2 Weblogic documentation,weblogic.rmic is not generating the ImplementationServer_Proxy.class in my case.
Kindly help.
Can t3 be securly used for remote access over internet or intranet?
Thanks in advance.
Vijayakumar Arya
Ranch Hand

Joined: Jan 27, 2003
Posts: 76
You could directly send the message using JMS to the destination where the MDB is listening(In messaging perspective). I don't see any need for using RMI here, since your are having a MDB, you could directly send a message to the MDB.
The implementation for RMI is different between JDK and BEA, so you cannot call a weblogic remote server using a stub generated using rmic.
Also, it is JNDI implementation of the Registry, so you need to get the JNDI initial context factory and the provider url specific to the vendor, in your case Weblogic.
You can send a TextMessage containing the entire xml file to the MDB. It is very simple to do.

Thanks,<p>Vijay<p>The Hand that gives, Gathers.
I agree. Here's the link:
subject: RMI : rmi and t3 protocol HELP.....
It's not a secret anymore!