How to create a separate custom module to load additional JDK classes in EAP 6/7?

Solution Verified - Updated -

Issue

  • I have followed the steps mentioned in this KCS Solution 174983 in order to make the JDK related APIs available to the application deployed on JBoss EAP6 however I do not want to edit the "$JBOSS_HOME/modules/sun/jdk/main/module.xml" module.

  • Is there a way to create a separate Module which will load the additional JDK related APIs without changing the original "$JBOSS_HOME/modules/sun/jdk/main/module.xml" file.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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