-
1. Re: [MainDeployer] Could not make local copy for file...
raja05 Apr 25, 2004 12:10 PM (in response to sumedh)Create a URL from ur file
URL fileURL = new URL("c:/xxx.ear")
and return teh fileURL.toString to the deploy method, thats the format it expects(starting with file:///c:/xxx.ear)
Anyway, the better way to deploy would be to get the current instance of MainDeployer rather than creating one like this. I believe i posted a way to do this earlier for a question of urs. -
2. Re: [MainDeployer] Could not make local copy for file...
sumedh Apr 25, 2004 12:13 PM (in response to sumedh)Yes I had read your response before...
However, I will have to do this through reflection as the JBoss APIs will not be available when the EAR is built (using Maven)...so making any calls that depend on the JBoss API is just not feasible...
Thanks for your response...any other ideas? -
3. Re: [MainDeployer] Could not make local copy for file...
raja05 Apr 25, 2004 12:22 PM (in response to sumedh)Im not sure where you use a JBoss API. You need to look up RMIAdaptor(or any other adaptor if available) and do an invoke on a Objectname, all pretty much standard Java code. What JBoss API are u using?
-
4. Re: [MainDeployer] Could not make local copy for file...
sumedh Apr 26, 2004 4:12 AM (in response to sumedh)I re-read your earlier post about calling the deployer using a HTTP request...could you post how I would do the same for the MainDeployer?
For example, I have an EAR that I want to deploy (lets say the EAR is in C:) using MainDeployer.deploy()...
what would the HTTP request call look like in such a case?
thanks... -
5. Re: [MainDeployer] Could not make local copy for file...
sumedh Apr 26, 2004 8:25 AM (in response to sumedh)never mind...got it :)