java - 如何在 WebSphere Application Server 7.0 中池化 Java 对象?

标签 java websphere websphere-7 pool

我有一个简单的类对象,我想将其合并到 WebSphere Application Server 7.0 中。

我的 Java 类如下所示:

SimpleBean
{
    String str1;
    String str2;

    SimpleBean()
    {str1="This is str1";}

    public void setStr1(String str1)
    {this.str1 = str1;}

    public void setStr2(String str2)
    {this.str2 = str2;}

    public String getStr1()
    {return str1;}

    public String getStr2()
    {return str2;}
}

如何在 WAS 7.0 中池化 SimpleBean?我看到 WAS 中有一个对象池管理器,但我不知道是否应该在那里设置池。我也不知道怎么用。

最佳答案

请参阅Object pools有关开发和配置的更多信息,请参阅 WebSphere Application Server 7.0 InfoCenter 中的主题。

关于java - 如何在 WebSphere Application Server 7.0 中池化 Java 对象?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16666273/

相关文章:

WebSphere 7.0 不会运行根 URL 过滤器

java - SOAPFaultException 详细信息为 null

java - Spring序列化时如何忽略临时对象属性

java - 无法创建请求的服务 [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

java - 为什么我的 JPQL 不工作?

websphere - 启动 Websphere Application Server 时出现 TCP channel 初始化失败错误

java - 在继承中重写方法

javascript - 无法在新选项卡中打开 pdf 文件

IBM JVM 1.4.2 (WebSphere 6.0.2) 的 Java 分析器

java - 我们如何在 Tomcat 和 Websphere 之间做出妥协?