This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Create file from AIX(server) machine to windows machine using java.io
kannagiri rosei
Ranch Hand
Joined: Nov 26, 2005
Posts: 31
posted
0
Hi
i just want to create File in Winndows , my code is there in AiIx server().in aix if i run java program i just want to create a file in 10.16.17.120/c$/test/StartDataEntry.txt file
is it possible in java? [ November 27, 2005: Message edited by: Mark Spritzler ]
i just want to create File in Winndows , my code is there in AiIx server().in aix if i run java program i just want to create a file in 10.16.17.120/c$/test/StartDataEntry.txt file
is it possible in java?
This is *not* a Java issue -- it is an operating systems issue. Windows file networking, with the technique that you are using, uses the Samba protocol. You need to have a Samba client on the AIX machine, and you need to modify your AIX program to use that instead.
Samba comes with a Java client library at jcifs.samba.org. It can read and write Windows files on a shared drive over the network, and has an API that's just like java.io.File, so it's easy to learn.
Hi sorry to ask this question here,i think Ditter knows very well. thanks for your reply. you all giving great help for us.
am using axis1.2 for my web services.i just want to host my web service in Aix.then my java class will be called by the Client.
if client Call my web service which is hosed in IBM http Web server.
my Java class file should create file in shared folder(windows).
my question:
1.can i able to deploy my web service in IBM http server.
2.if i deployed will "jcifs.samba.org." supports with axis.
am using java 1.4.2_06
please help am new bie?
note:my web service is executed in windows and tested also.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35243
7
posted
0
jCIFS is a Java library, it doesn't care whether it's used in desktop app, web app or web service, and it runs on all platforms that have a JVM. Does this answer your question?
kannagiri rosei
Ranch Hand
Joined: Nov 26, 2005
Posts: 31
posted
0
Can u please answer for my first question even though if it is web services related ?
can i deploy Axis Web serivce in IBM Http Web server
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35243
7
posted
0
Why wouldn't Axis run in any servlet container? The requirements for Axis are Java API 1.3 and Servlet API 2.2. That's also explained in more detail in the Axis installation guide.
Whether or not you use jCIFS with it makes no difference. Note that jCIFS may need to be installed in the servlet containers CLASSPATH, not in WEB-INF/lib, as is explained here.