- 浏览: 88511 次
- 性别:
- 来自: 深圳
最新评论
-
450029462:
不是 必须的就不要 写进去,还有不知道 就不要乱发
SSI要的jar包 -
songzi1990:
xiaopengmvp520 写道为什么引进myeclipse ...
S2SH项目实例 -
songzi1990:
你的数据库用得是什么啊?我用得是mysQL,为什么不行额?
S2SH项目实例 -
xiaopengmvp520:
为什么引进myeclipse后很多文件都报错了?
S2SH项目实例 -
fly_zcl:
如果有的话,麻烦你发一份给我,281996542@qq.com ...
IBM ESB中常用的jar包列表
文章列表
com.ibm.bpc.common.jar
com.ibm.bpc.core.jar
com.ibm.bpc.runtime.jar
com.ibm.jaxws.thinclient_7.0.0.jar
com.ibm.wps.customtable.6.2.0.jar
com.ibm.ws.runtime.jar
kxml2-2.3.0.jar
log4j-1.2.15.jar
ojdbc6.jar
package com.huawei.bo;
import oracle.sql.CLOB;
public class MsgBO implements java.io.Serializable
{
private static final long serialVersionUID = -8282392921701998281L;
private String sender;
private String recevier;
private String msgType;
private String msg;
public String getSender()
{ ...
//BusinessLog
private String businessId;
private String transactionId;
private String moduleId; //默认为SiebelCRM
private String serviceNumber;
private String operator;
private String areaId;
private String departmentId;
private String remoteHost;
private String startTime;
private ...
package com.huawei.bo;
import java.util.List;
/**
* XML报文解析入库操作,具体格式
* EsbRequest
* oid
* isLongFlow
* businessLog
* businessId
* transactionId
* moduleId
* serviceNumber
* operator
* areaId
* startTime
* endTime
* status
...
package com.huawei.esb;
import org.apache.log4j.Logger;
public class WriteLog
{
public final static String configFile = "log4j.properties";
private static Logger logger = initLog();
static Logger initLog()
{
//为防止文件监听服务没起,此处先调用一次,将服务启起来
FileManager.getESBProperty(" ...
package com.huawei.esb;
import java.util.List;
import java.io.File;
import java.util.ArrayList;
import java.util.regex.Pattern;
public class PatternEnumerateFile {
public static final String REGEX="enumerate(\\w|_\\w|-\\w)*\\.xml";
private static List<String> enumPaths=new Array ...
//加载配置文件配置信息
private Properties loadProperties()
{
Properties prop = new Properties();
try
{
if (configFile != null)
{
FileInputStream in = new FileInputStream(configFile);
prop.load(in);
in.close();
}
else
{
configFile = defaultConfigFile;
URL url = this.g ...
//注册需要监听的文件(从配置文件读取配置信息)
public void regFileListener()
{
Properties prop = loadProperties();
String num = prop.getProperty("ListenerFileNum");
String Interval = prop.getProperty("Interval");
if (("".equals(num)) || num == null || ("".equals(Interval)) ...
package com.huawei.esb;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util. ...
private void println() throws IOException
{
String line;
StringBuffer buf = new StringBuffer();
FileInputStream in = new FileInputStream(enumerateFiles.get(currentEnumFilePath).getEnumFile());
java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(in)) ...
private void loadProperties()
{
//更新时间
this.lastModified = file.lastModified();
try
{
logger.info("The properties file[" + getPath() + "] loading ...");
FileInputStream in = new FileInputStream(file);
prop.load(in);
//print all properties
Enumera ...
public void run()
{
if (isFileUpdated() && fileFlag)
{
logger.info("The properties file[" + getPath() + "] was modified.");
loadFile();
}else if(isFileUpdated() && !fileFlag){
StringBuffer sb=new StringBuffer();
for(String s : enumera ...
package com.huawei.esb;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util ...
/**
* 校验用户、密码、TenantID正确性
*
* @param userID
* @param Password
* @param TenantID
* @return Boolean
*/
public static Boolean checkPassword(String userID, String Password,
String TenantID) {
log.info("check Password begin...");
String sql = FileManager.getESBProperty(&q ...