Creating the appropriate ConnectionFactory object

Your application needs to get an appropriate ConnectionFactory object. In the managed environment, the server or application does this for you, and you can reference it using JNDI (see Storing ConnectionFactory objects). In the nonmanaged environment, unless you have previously registered one that you can access, you must create a ConnectionFactory object with the appropriate EIS connection information.