How can I register a custom URLStreamFactory in EAP 6?

Solution Unverified - Updated -

Issue

How can I register a custom URLStreamHandlerFactory in EAP 6?

I've written a JBoss module (a jar with a module.xml descriptor). This jar contains a META-INF/services/java.net.URLStreamHandler descriptor pointing to the Factory class. com.redhat.gss.custom-url-handler is the name of my custom module (module.xml).

Is this the preferred way? Do I really need a JBoss module, or can I move this code to a custom .ear?

Environment

  • JBoss 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.