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.
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?
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?
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?
never mind...got it :)