I can guarantee the sharename will be there because the service puts it there.
Let me try again to explain the process:

1) The GUI tells the java service (via corba) to generate a report. The java
service may be running on a unix server or any other kind of OS that supports
java

2) The service generates the report and rather than sending it back through a
corba connection, it stores it locally on the server in a particular directory.

3) The service tells the GUI that the report is finished and can be picked up at
location X. Location X is on the server, not the client.

The main problem is how to tell the gui the name of the server (or the volume on
the server) that the file is stored on.
I figured that a UNC (O.K., I worked out what that particular TLA stands for)
would be the answer IF the following were true:

a) the service could some how return the name of the volume that it stores the
report in (probably the same volume that the java service is running from).
b) UNC's will work regardless of whether the server was a unix or NT box.

sorry if I am misunderstanding you.

Thanks,

Phil.




Aaron Scott-Boddendijk <[EMAIL PROTECTED]> on 21/02/2000
19:52:16

Please respond to [EMAIL PROTECTED]

To:   Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc:    (bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)

Subject:  Re: [DUG]: Client/middleware storage



> Hmmmm, As I said, our network expert is away on leave so please, no acronyms.

Which one the IMHO or the UNC ;)

> I am probably wrong, but if you are thinking I was talking about drive letter
> mappings, then that is not so. By volume name I mean the actual name on the
> server, not the drive letter that is (maybe) mapped to it on the client.

But your 'machine name' won't tell you which 'drive' to store the file on... And
you shouldn't
write global data to the same network resource as the application itself - why
introduce
fragmentation into a section of the system that should be static.

you want to know the 'share name' of the destination storage space for your file
- this
unfortunately is an application configuration issue as the OS doesn't 'type' its
drive with
'that one is for applications' and 'that one is for data'...

Your most reliable solution is a network manager specified share name stored in
the
registry (or another editable configuration storage resource)... The name would
be
something like

\\ FServe1 \ TempReports

> wants to be able to grab a file of the server (where the service is running)
> from the location that the service tells it. If figured this would be
something
> like "ServerName//TempStorage/Reports/NewReport123.txt". The problem was, how
> can the service find out the name of the server (I forgot to mention the
servers
> may be unix or NT machines and the services are written in java).

How can you guarentee that there is a sharename TempStorage on ServerName... You
really shouldn't hardcode a requirement onto an external resource.

> I guess this is probably more a java question maybe? I don't know. As I said,
> our network expert yada yada yada.....

Definitely a java question re: the servername but I still question the
implementation
plan.

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz






---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to