[EJB3] - Re: SLSB pool size is always one in jboss 6.0 CR1 using ejb 3.1
by aravind kopparthi
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/572502#572502
--------------------------------------------------------------
Not that i am trying to compare two appservers. same two classes(Singleton,SLSBean) ran perfectly asynchronously as expected pooling multiple slsbs calling slsbs' methods from one singletonBean when i deployed it to glassfish 6.9.1. i am sure i can get some answers or resolutions from Jboss. as i am big fan of Jboss.
09:06:01,234 INFO [STDOUT] TIMEOUT METHOD CALLED
09:06:13,578 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:06:13,593 INFO [STDOUT] TIMEOUT METHOD CALLED
09:06:26,062 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:06:26,062 INFO [STDOUT] TIMEOUT METHOD CALLED
09:06:37,953 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:06:37,968 INFO [STDOUT] TIMEOUT METHOD CALLED
09:06:50,437 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:06:50,437 INFO [STDOUT] TIMEOUT METHOD CALLED
09:06:59,968 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:06:59,984 INFO [STDOUT] TIMEOUT METHOD CALLED
09:07:12,656 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:07:12,656 INFO [STDOUT] TIMEOUT METHOD CALLED
09:07:26,593 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:07:26,609 INFO [STDOUT] TIMEOUT METHOD CALLED
09:07:39,125 INFO [STDOUT] MetavanteProcess MetavanteProcess
09:07:39,125 INFO [STDOUT] TIMEOUT METHOD CALLED
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/572502#572502]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[EJB3] - Re: SLSB pool size is always one in jboss 6.0 CR1 using ejb 3.1
by jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] 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/572486#572486
--------------------------------------------------------------
> aravind kopparthi wrote:
>
> Jai: 1) Using java.io.* in EJBs isn't recommended.
>
> is this true for Ejb 3.1 as well?( how about Singleton EJB reading file and transforming and then calling SLSBS for persitence is this recommended?)
> i was thinking of using SLSB to read file content and tranform into Entities for persirence. what is the recommend if Ejbs can not read files?
It applies for EJB3.1 as well. Check section 21.2.2 "Programming Restrictions" in EJB3.1 spec for the entire set of restrictions.
As for java.io.* restriction, here's a quote from that section.
> An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.
>
> The file system APIs are not well-suited for business components to access data. Business components should use a resource manager API, such as JDBC, to store data.
You don't have to do the file reading part in the EJBs. Just let the EJBs persist your entities.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/572486#572486]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months