DataSourceProvider does not delete the temporary files it creates in JBoss EAP 6

Solution Verified - Updated -

Issue

The DataSourceProvider for JAX-RS resources creates a temporary file named resteasy-provider-datasource ... .tmp when reading more then 4096 bytes. However, it does not delete the created temporary file itself nor does it provide a facility to do so. This results in a resource leak!

Environment

  • Red Hat Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.