File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Using IIOP for creating file on a remote server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Using IIOP for creating file on a remote server" Watch "Using IIOP for creating file on a remote server" New topic
Author

Using IIOP for creating file on a remote server

Johan Apelgren
Greenhorn

Joined: Jan 24, 2002
Posts: 6
Hi!
From an EJB in WebSphere on server S1 I need to create a XML string and save this string as a file on another server S2. On S2, a COM component in Microsoft Transaction Server will use it. I'm not allowed to use FTP for this operation due to security restrictions. Instead I plan to use IIOP (an authorized protocol). Unfortunately I'm a rookie when it comes to IIOP, so that's why I have a few questions:
1) What is needed on server S2 to get the conversation working. Some kind of "IIOP server"?
2) Security question: Does this conversation require the client (S1) to authenticate itself to S2?
3) How do I actually create the file? In the application that handles the conversation on S2? Can this be a "normal" Java application?
4) Are there any limitations regarding how big these XML-strings can be in a single operation?
//Johan
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Why don't you just use Web Services and send this over HTTP? That sounds much easier -- the only way to do what you're suggesting is to install WebSphere on BOTH servers, which is I'm sure not what you want.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Johan Apelgren
Greenhorn

Joined: Jan 24, 2002
Posts: 6
Unfortunately HTTP is out of the question due to security restrictions since the S1 and S2 remains on two different networks, one more restricted than the other.
//Johan
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
You're telling me that HTTP and FTP won't work but IIOP will? What's the reason for an odd firewall setup like that?
There's no way that I can think of (short of using a commercial CORBA ORB, or another WebSphere instance) to allow the "server" on the machine with the COM object receive an unsolicited message over IIOP. As I said earlier you could do this with 2 WebSphere instances, but that's probably overkill that a negotiation with your security team could probably get around....
Kyle
Johan Apelgren
Greenhorn

Joined: Jan 24, 2002
Posts: 6
Beats me, but that's the response I get. Probably HTTP and FTP are regarded as more common "internet-hacker" protocols than IIOP.
Anyway, as it has turned out, the solution will be to move the servers to the same network. I will now be able to use a simple FileOutputStream object instead...
//Johan
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Using IIOP for creating file on a remote server
 
Similar Threads
one more with Strings ( == and equals)
Immutability of strings???
about "=="and "equals" problem,I can't understand clearely?
Behaviour of String and StringBuffer class.
How to find out OS type