It is generally considered bad design to use the Struts datasource feature since it introduces a dependency between your controller (struts) and your model. Instead use your JNDI, follow this link:
Thanks for the reply Kerry. But my goal is obtain a DataSource when my application startup ro retrieve some data from a BD. That's why i need the DataSource. My question is how can i obtain this one from the init method of a class that implements Plugin and execute both the init(..) and destroy() methods Thanks in advance