[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deploy app from Remote File URL

srikanth_vals do-not-reply at jboss.com
Wed Jul 30 22:14:38 EDT 2008


what i see the code running inside VM could not lookup to remote machine and read the file....

Below is sample code from DeploymentInfo class in org.jboss.deployment


  |       if (!isDirectory)
  |       {
  |          try
  |          {
  |             url.openStream().close();
  |          }
  |          catch (Exception e)
  |          {
  |             throw new DeploymentException("url " + url + " could not be opened, does it exist?");
  |          }
  | 
  | 

Below is sample code in same utility in which i can read the file contents..

  | 
  | 		try{
  | 		URL test = new URL("file://B/work/hsqldb-ds.xml");
  | 		System.out.println(test.openStream().toString());
  | 		BufferedReader in
  | 		   = new BufferedReader(new InputStreamReader(test.openStream()));
  | 		System.out.println(in.readLine());
  | 		}catch(Exception e){
  | 			e.printStackTrace();
  | 		}
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167783#4167783

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167783



More information about the jboss-user mailing list