Salesforce

EJB - Prerequisites (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

EJB – Prerequisites (Magic xpi 3.x)

To be able to use the Magic xpi EJB component you should make sure that you have J2EE server or client software and Java 2 SDK SE Version 1.4.2 installed on the same computer as the Magic xpi Studio. Java runtime is required for accessing the Java Beans.

Follow these steps to complete configuration for the EJB component:

  1. Open the mgreq.ini file (located in the scripts\config directory).

  2. Enable the requester to listen to Java requests. You do this by removing the semicolon (;) in the MGSRVR05 property of the [MAGIC_MESSAGING_GATEWAYS] section.

  3. In the MaxThreads parameter of the MGSRVR05 property, enter a percentage of threads of the total permitted thread count, according to your Magic xpi Server license, to define the number of concurrent EJB requests the Magic xpi Server will accept. For example:
    MGSRVR05 = , , , ,MaxThreads=10%

Note:

You should make sure that you have an up-to-date copy of the Magic xpi Mgejbgnrc.jar file in the %JAVA_HOME%\jre\lib\ext directory. You can find this file in the Magic xpi x.x\Support folder.


To be able to use the Magic xpi EJB component to access Enterprise Java Beans (EJB):

  1. Copy the Mgejbgnrc.jar file to the Magic xpi x.x\jre\lib\ext\ folder and to the %JAVA_HOME%\jre\lib\ext folder. This file is in the Magic xpi x.x\Support folder

  2. Add the class or deployed EJB path in the Magic.ini file to the end of the CLASSPATH line in the [MAGIC_JAVA] section. If another entry is present, add a semicolon (;) and add the deployed EJB class or path to the end of the line. For example:
    [MAGIC_JAVA]
    CLASSPATH = C:\%J2EE_HOME%\client\j2ee_client.jar; where %J2EE_HOME%\ is the folder that contains your J2EE application server, client is the name of the folder where the J2EE client jar file is, and j2ee_client.jar is the name of your J2EE client jar file.

  1. Right-click the My Computer icon on your desktop and select Properties to open your computer’s System Properties dialog box and click the Advanced tab.

  2. Click Environment Variables to open the Environment Variables dialog box.

  3. In the System variables section, click to add the following to the Path:

    • %JAVA_HOME%\bin

  4. Add the System Variables according to the Application Server you are using:

    • JBoss

    • Sun One 8

    • WebLogic 8.1

For any other application server consult the Application Server manual or Tech Support.

Reference
Attachment 
Attachment