How can I register a custom URLStreamFactory in EAP 6?
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.