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
好的,我可以为您提供一个左右响应式布局的示例代码。 首先,我们需要安装 `antd` 和 `react-router-dom` 依赖。 ```bash npm install antd react-router-dom ``` 然后,我们可以创建一个 `Login` 组件,作为登录界面。在这个组件中,我们可以使用 `antd` 的 `Layout` , `Row` 和 `Col` 组件来创建一个响应式布局。 ```jsx import React from 'react'; import { Layout, Row, Col, Form, Input, Button } from 'antd'; const { Header, Content } = Layout; const Login = () => { const onFinish = (values) => { console.log('Success:', values); }; const onFinishFailed = (errorInfo) => { console.log('Failed:', errorInfo); }; return ( <Layout> <Header> <h1 style={{ color: '#fff' }}>Logo</h1> </Header> <Content> <Row justify="center"> <Col xs={24} sm={16} md={12} lg={8} xl={6}> <Form name="basic" initialValues={{ remember: true, }} onFinish={onFinish} onFinishFailed={onFinishFailed} > <Form.Item label="Username" name="username" rules={[ { required: true, message: 'Please input your username!', }, ]} > <Input /> </Form.Item> <Form.Item label="Password" name="password" rules={[ { required: true, message: 'Please input your password!', }, ]} > <Input.Password /> </Form.Item> <Form.Item> <Button type="primary" htmlType="submit"> Submit </Button> </Form.Item> </Form> </Col> </Row> </Content> </Layout> ); }; export default Login; ``` 在这个示例中,`Header` 组件用于放置 Logo , `Content` 组件用于放置登录表单。使用 `Row` 和 `Col` 组件来实现响应式布局。 最后,我们可以将应用程序渲染到页面上。 ```jsx import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); ``` 这是一个简单的 React + Ant Design 登录界面的左右响应式布局示例代码。希望能对您有所帮助!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值