是否可以拥有两台xlloop服务器?

时间:2015-12-03 09:14:46

标签: java excel

我有两个xlloop服务器,它们在单独运行时(在端口5454上)

但是当我在端口5454上运行其中一个而在端口3030上运行另一个时,我只能访问端口5454上的那个暴露的功能。

\xlloop\bin Excel插件文件所在的xlloop.xll文件夹中,我创建了一个xlloop.ini文件,其中包含以下代码:

providers=Java

[Java]
server=localhost,localhost:5353,localhost:5454,localhost:5252

在我的服务器类中,我指定端口: FunctionServer fs = new FunctionServer(5353);

不幸的是只有5454上的那个被选中,看起来像ini文件被忽略了

1 个答案:

答案 0 :(得分:0)

看起来如果你像我一样列出服务器,你应该列出提供相同功能的服务器。

我用这个ini设置解决了我的问题:

package com.GDP.test.model;

import java.sql.Blob;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "papers")
public class Paper {


@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "paperid")
private int paperID;

@Column(name = "papertitle")
private String paperTitle;

@Column(name = "paperdatafile")
private Blob paperDataFile;

@Column(name = "abstractofthepaper")
private String abstractOfThePaper;  

@Column(name = "status")
private String status;

@Column(name = "paperdownloadname")
private String paperDownloadName;

@Column(name = "reviewerfeedback")
private String reviewerFeedback;

@Column(name = "reviewerid")
private String reviewerID;

public Paper(String paperTitle, Blob paperDataFile, String abstractOfThePaper, String status,
        String paperDownloadName) {
    super();
    this.paperTitle = paperTitle;
    this.paperDataFile = paperDataFile;
    this.abstractOfThePaper = abstractOfThePaper;
    this.status = status;
    this.paperDownloadName = paperDownloadName;
}



public Paper() {
    super();
}

public int getPaperID() {
    return paperID;
}

public void setPaperID(int paperID) {
    this.paperID = paperID;
}

public String getPaperTitle() {
    return paperTitle;
}

public void setPaperTitle(String paperTitle) {
    this.paperTitle = paperTitle;
}

public Blob getPaperDataFile() {
    return paperDataFile;
}

public void setPaperDataFile(Blob paperDataFile) {
    this.paperDataFile = paperDataFile;
}

public String getAbstractOfThePaper() {
    return abstractOfThePaper;
}

public void setAbstractOfThePaper(String abstractOfThePaper) {
    this.abstractOfThePaper = abstractOfThePaper;
}


public String getStatus() {
    return status;
}

public void setStatus(String status) {
    this.status = status;
}

public String getPaperDownloadName() {
    return paperDownloadName;
}

public void setPaperDownloadName(String paperDownloadName) {
    this.paperDownloadName = paperDownloadName;
}

public String getReviewerFeedback() {
    return reviewerFeedback;
}

public void setReviewerFeedback(String reviewerFeedback) {
    this.reviewerFeedback = reviewerFeedback;
}

public String getReviewerID() {
    return reviewerID;
}

public void setReviewerID(String reviewerID) {
    this.reviewerID = reviewerID;
}