The Hard Way

Back ] Up ] Next ]


Your bridge installation should have a directory structure as shown in figure 1. Follow these steps :
  1. Create a jboss-services directory under doc\appserver-connectivity-samples\src\enterprise.
  2. Copy every file from the weblogic-services directory to the jboss-services  directory.
  3. In the jboss-services  directory, rename each file weblogic* by jboss*.
  4. In each file, replace (be careful, the words are case sensitive) :
    1. Weblogic and WebLogic by JBoss
    2. WEBLOGIC by JBOSS
    3. weblogic by jboss.

Now we have a raw copy of the weblogic service, but named jboss.

Figure 1

Modify the following source files (click on the name to see the modified source) :

  1. JBossService.h : The Initial Context Factory is org.jnp.interfaces.NamingContextFactory line 25.
  2. JBossService.cpp : The provider URL is jnp://localhost:1099 line 11.
  3. JBossServices.idl : open a command line and type guidgen (Figure 2). The GUID generator will be launched (Figure 3).
    1. Choose the registry format.
    2. Press the New GUID button. Copy the GUID generated. It will be used for the IJBossServices interface. Paste it into the JBossServices.idl file at line 12.
    3. Press again the New GUID button. Copy the GUID generated. It will be used for the JBossServices Type Library. Paste it into the JBossServices.idl file at line 22.
    4. Press again the New GUID button. Copy the GUID generated. It will be used for the JBossServices Class. Paste it into the JBossServices.idl file at line 32.
  4. JBossServices.rgs : replace the GUID in the file :
    1. Paste the GUID of the JBossServices Class line 5, 9 and 14.
    2. Paste the GUID of the  JBossServices Type Library line 23.
  5. JBossServices.rc : fill-in the resource description strings as you want (from line 73 to line 85).

The source files are now ready to be compiled.

Figure 2
Figure 3
Open Microsoft Visual C++ and open EnterpriseServices.dsw located in doc\appserver-connectivity-samples\src\enterprise :
  1. Add a the JBossServices project to the workspace.
  2. Expand the JBossServices. You should have a project window like the (Figure 4).
  3. Choose Build/Batch Build menu (Figure 5). Select everything and press the Rebuild All button.
  4. You should see the compilation of all configurations (Figure 6).
  5. The DLLs are now created and registered. The generated DLL (at least the interesting one) is in the jboss-services\Release\MinSize directory.
Figure 4
Figure 5
Figure 6

That's it. You have build and register the DLL needed to allow COM access to JBoss.


Back ] Up ] Next ]

The informations below are given without any warranty of any kind.
Comments can be sent to letiemble@users.sourceforge.net