You can implement a Custom Spatial Provider.
I did it to use MapViewer with Apache Solr
Read more here:
MapViewer requires the Oracle DB.
A Custom Spatial Provider (like the one Evandro implemented) simply allows MapViewer access to spatial content outside of the Oracle db. The Oracle db is still required however.