Connecting to JBoss/WildFly Application Server

After creating a project, you have to create a connection between the plug-in and an EJB server.

Prerequisites

Ensure that you have created a project, as described in Creating a Project.

Procedure

  1. Copy all .jar files into a local directory.

    The .jar files are located in the JBoss_Home/bin/client directory, where JBoss_Home is the directory that your JBoss Enterprise Application Server and WildFly Server are installed into.

    For more information about the server JAR files, see related documents from your EJB server vendor.

  2. In this local directory, create .properties files and add contents to each .properties file. Create .properties files based on the version of your JBoss Application Server.
    Create a .properties file with the file name jndi.properties and add the following contents to the file:
    jboss.naming.client.ejb.context=true
    java.naming.security.principal=remote://<JBoss7_IP_Address>:<Port>
    java.naming.factory.initial=org.jboss.naming.remote.client.
    InitialContextFactory
    java.naming.security.principal=<username>
    java.naming.security.credentials=<password>
    Create another .properties file with the file name jboss-ejb-client.properties and add the following contents to the file:
    remote.connectionprovider.create.options.org.xnio.Options.SS
    L_ENABLED=false
    remote.connections=default
    remote.connection.default.host=<JBoss7_IP_Address>
    remote.connection.default.port=<Port>
    remote.connection.default.connect.options.org.xnio.Options.S
    ASL_POLICY_NOANONYMOUS=false
    remote.connection.default.username=<username>
    remote.connection.default.password=<password>
  3. Expand the created project in the Project Explorer view, and drag the local directory to the lib folder.
  4. In the File and Folder Operation dialog, click Link to files and folders and click OK.
    Note: If you want to deploy the application to TIBCO® Enterprise Administrator, click Copy files and folders.
  5. From the menu, click Window > Open Perspective > Other to open the Open Perspective dialog, click Java, and then click OK.
  6. In the Package Explorer view, expand META-INF, right-click MANIFEST.MF; then click Open With > Plug-in Manifest Editor.
  7. In the Runtime tab, click Add in the Classpath panel.
  8. In the Jar Selection window, click lib > the local directory name and press Enter.