As far as I know, it should work on both v2 & v3. Here's the way it's done
In V3 - you can do this yourself in a browser if you like.... (assuming
host=localhost, adminport=4848, fill in the resourcesfile yourself):
http://localhost:4848/__asadmin/add-resources?xml_file_name=${resourcesfile}
In V2 - you can do this using the cli if you like:
asadmin add-resources ${resourcesfile}
I hope those details help, but it should work (at least the first time)
using eclipse. You will see the output in the eclipse console for
deployment and it will show you whether the addresources ant command was
done.
Thanks,
Rochelle
glassfish_at_javadesktop.org wrote:
> Thank you for your answer.
>
> Yes, I am effectively trying to do my deployment from eclispse (sorry if I haven't said it before).
>
> So ok, I understand that I can use the add-ressource command manually but if you said that eclipse does it too, I don't understand where is the problem and so why my ressources aren't registered in glassfish (and they aren't, I can see this in the admin console).
>
> I don't exactly know what I could say more. I use ganymede, with the plugin for glassfish. My application contains twice an sun-resources.xml and a persistence.xml.
>
> Eventually do you know how I can verify that the add-ressource command is used?
>
> Or have you got an idea for me?
>
> (sorry for the bad english, and thanks in advance for your help)
> [Message sent by forum member 'rageice' (rageice)]
>
> http://forums.java.net/jive/thread.jspa?messageID=302594
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>