OK !
I assume you are using sql server, use the query like this :
select * from [database].[schema].[tablename];
Make sure the user (mentioned in Jboss datasource has access(to the database) as well as the required permissions (select, delete etc) for the table object.
e.g.
Thanks,
Wasil