All Examples  This Package



public class HelloWorld
extends Object
This example illustrates the use of WebLogic File Services. HelloWorld looks for a file on the server, writes "Hello World" to the file if it is NOT there, reads the first 11 bytes of the file, and displays them.

To run this example, first locate or start a WebLogic Server offering a network-visible file system by setting the property in your file. For example, to configure a WebLogic Server to offer the native file system directory /myserver/fullPath as a network-visible file system named myFiles, set the property in the server's file.

After compiling this directory, call HelloWorld with three arguments:

You may also call HelloWorld with two arguments: in which case it will use the empty file system name. The empty file system name refers to the local file system on the client. File names are always absolute on a remote file system, but may be relative on a local file system.

Copyright (c) 1997-1998 by WebLogic, Inc. All Rights Reserved.
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o HelloWorld()

Method Index

 o main(String[])
Runs the HelloWorld file example.


 o HelloWorld
 public HelloWorld()


 o main
 public static void main(String argv[])
Runs the HelloWorld file example.

All Examples  This Package