`
heroliuxun
  • 浏览: 23957 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Install Design Console and login in.

 
阅读更多
    环境说明:
OIM Desgin Console: Windows系统下的绿色版
Identity Manager:部署在Jboss服务器下的Linux系统。

    执行步骤:
1. 在Windows系统下解压OIM Desgin Console。
2. 进入Design Console目录下,编辑xlclient.cmd文件。其修改后的内容如下:
@echo off
setlocal

call classpath

REM SET DEBUG_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5001 -DXL.RedirectSysOutErrToFile=TRUE -DXL.SysOutErrLogFile=.\logs\Client.System.Out.Err.log

REM Make sure to remove java.naming.provider.url and read it from the configuration
REM once the JNDI Profiles are implemented.
REM make sure you are using j2sdk1.4.2_05
java %DEBUG_OPTS% ^
-DXL.ExtendedErrorOptions=TRUE -DXL.HomeDir=D:\OimDesignConsoleBP09\xlclient ^
-Djava.security.policy=config\xl.policy ^
-Dlog4j.configuration=config\log.properties ^
-Djava.security.manager -Djava.security.auth.login.config=config\auth.conf ^
com.thortech.xl.client.base.tcAppWindow -server server

endlocal


修改两处地方
1> "C:\Program Files (x86)\Java\jdk1.6.0_17\bin\java" %DEBUG_OPTS% ^
将JDK目录修改为本机JDK安装的目录,如C:\Java\jdk1.6.0_17\bin\java
注意:若设置JDK目录后,还是不能显示登录Design Console窗口,则修改为java %DEBUG_OPTS% ^
   
2> -DXL.ExtendedErrorOptions=TRUE -DXL.HomeDir=D:\OimDesignConsoleBP09\xlclient ^
将Design Console安装目录修改为本机下的安装目录。

修改xlclient.cmd完成后,点击运行该文件,出现Design Console的登录窗口。


3. 进入Config目录下,修改配置文件xlconfig.xml。修改后的代码如下:
<?xml version="1.0" encoding="utf-8"?>
<xl-configuration>
<!--
Type of the application server being used.
Use jboss, weblogic or websphere
-->
<appServerName>jboss</appServerName>
<!--
Used for loading workflow renderer
-->
<ApplicationURL>http://192.168.19.20:8080/xlWebApp/loginWorkflowRenderer.do</ApplicationURL>
    <!--
Discovery settings are used to find other xellerate components.

CoreServer : How to find core server.  This is where the APIs and the
DataObjectBeans for the java client are installed.
BackOffice : Settings to be used to find where messaging components
are installed.
Scheduler  : These settings are used to find scheduler.

java.naming.provider.url
WebLogic:  t3://host:7001
JBoss:     jnp://host:1099  (Clustered default: 1100)
WebSphere: corbaloc:iiop:host:2809

java.naming.factory.initial
WebLogic:  weblogic.jndi.WLInitialContextFactory
JBoss:     org.jnp.interfaces.NamingContextFactory
WebSphere: com.ibm.websphere.naming.WsnInitialContextFactory
    -->
    <Discovery>
<CoreServer>
<java.naming.provider.url>jnp://192.168.19.20:1099</java.naming.provider.url>
<java.naming.factory.initial>org.jnp.interfaces.NamingContextFactory</java.naming.factory.initial>
</CoreServer>
    </Discovery>
   
    <!-- 
    Value of MultiCastAddress needs to same as OIM server
     -->
    <Cache>
    <XLCacheProvider>
<MultiCastAddress>192.168.19.20</MultiCastAddress>
</XLCacheProvider>
</Cache>
</xl-configuration>

需要修改以下几个地方:
1> <appServerName>jboss</appServerName> 
设置OIM的运行环境,由于OIM部署在Jboss,这里设置为jboss
2> <ApplicationURL>http://192.168.19.20:8080/xlWebApp/loginWorkflowRenderer.do</ApplicationURL>
修改http://192.168.19.20:8080为OIM部署在Jboss的IP和Port

3> <java.naming.provider.url>jnp://192.168.19.20:1099</java.naming.provider.url>
修改访问远程EJb的URL地址,一般只需要修改IP,端口1099不变。

4> 启动Jboss下的OIM
./jboss/bin/run.sh -b ip
说明:jboss默认启动时,绑定ip为127.0.0.1,此处修改为对外的IP。
以下是对该问题的解释:By default JBossAS binds its services to localhost (127.0.0.1). To enable remote access by binding JBoss services to a particular interface, simply run jboss with the -b option. Example: if your ip is 192.168.22.14, you must to start JBoss like: ./run.sh -b192.168.22.14 or ./run.sh --host=192.168.22.14 for windows: run.bat -b192.168.22.14 or run.bat --host=192.168.22.14
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics