[jboss-user] [EJB3] - Re: SLSB pool size is always one in jboss 6.0 CR1 using ejb 3.1

aravind kopparthi do-not-reply at jboss.com
Tue Nov 23 00:38:01 EST 2010


aravind kopparthi [http://community.jboss.org/people/aravindsk] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/572351#572351

--------------------------------------------------------------
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
[http://community.jboss.org/message/572351#572351]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101123/2b5c0b7b/attachment-0001.html 


More information about the jboss-user mailing list