JBoss Community

Re: SLSB pool size is always one in jboss 6.0 CR1 using ejb 3.1

created by aravind kopparthi in EJB3 - View the full discussion

thanks for this quick response. in the above process method i implemented a long running logic. just to test if the second timeout event in Startup bean calls second instance of slsb. but it did not.

 

File tmpdir = new File("/tmp");
File tmpfile = new File(tmpdir, "security.rar");
InputStream in = new java.io.FileInputStream(tmpfile);
BufferedInputStream fin = new BufferedInputStream(in);
File ofile = new File(tmpdir, "security.rar_"+new Date().getTime());
OutputStream o = new java.io.FileOutputStream(ofile);
BufferedOutputStream fout = new BufferedOutputStream(o);
   int i;
   do {
     i = fin.read();
     if (i != -1)
       fout.write(i);
   } while (i != -1);
   fin.close();
   fout.close();

                       File tmpdir = new File("/tmp");

File tmpfile = new File(tmpdir, "security.rar");

InputStream in = new java.io.FileInputStream(tmpfile);

BufferedInputStream fin = new BufferedInputStream(in);

 

File ofile = new File(tmpdir, "security.rar_"+new Date().getTime());

OutputStream o = new java.io.FileOutputStream(ofile);

BufferedOutputStream fout = new BufferedOutputStream(o);

    int i;

    do {

      i = fin.read();

      if (i != -1)

        fout.write(i);

    } while (i != -1);

    fin.close();

    fout.close();

Reply to this message by going to Community

Start a new discussion in EJB3 at Community