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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content