Question

I have simple class object which I want to pool in WebSphere Application Server 7.0.

My Java class looks like this:

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;}
}

How do I pool SimpleBean in WAS 7.0? I saw that there's an Object pool managers in WAS but I don't know if the pooling should be setup up there. Also I don't know how to use it.

Was it helpful?

Solution

See the Object pools topic in the WebSphere Application Server 7.0 InfoCenter for more information on developing and configuring.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top