aspose file tools*
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
Author

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

vivek makode
Greenhorn

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.
Vivek
Vijayakumar Arya
Ranch Hand

Joined: Jan 27, 2003
Posts: 76
Hi,
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: http://aspose.com/file-tools
 
subject: RMI : rmi and t3 protocol HELP.....