good reason.

and for ejb-jar.xml, is it ok to declare the EJBs like

<session>
      <ejb-name>somename1</ejb-name>
<ejb-class>com.widget.somename1</ejb-class>    </session>

and it will assume reasonable defaults for other missing values or I
have to declare other tags?



[]

Leo


On Sat, Nov 23, 2013 at 11:34 AM, Romain Manni-Bucau
<[email protected]>wrote:

> Yes....now i can't guarantee you the order is the xml one
> Le 23 nov. 2013 14:31, "Leonardo K. Shikida" <[email protected]> a écrit :
>
> > "You have to force the container for all ejbs" = I have to add all EJBs I
> > have in ejb-jar.xml, specifying a specific container for each one,
> > otherwise, the app will assign for them the first container it finds at
> > tomee.xml, right?
> >
> > If so, maybe I can just set the "default" container configuration at
> > tomee.xml as the first, and specify a second one for the specific case?
> >
> >
> >
> > []
> >
> > Leo
> >
> >
> > On Sat, Nov 23, 2013 at 11:25 AM, Romain Manni-Bucau
> > <[email protected]>wrote:
> >
> > > Hi openejbjar should be in webinf. You have to force the container for
> > all
> > > ejbs.
> > >
> > > Ensure you use the right ejbname thanks to the logs
> > > Le 23 nov. 2013 13:30, "Leonardo K. Shikida" <[email protected]> a
> > écrit :
> > >
> > > > I think I am doing something wrong.
> > > >
> > > > From tomee logs, it seems it just applies the
> > > >
> > > > <Container id="Foo1" type="STATELESS">
> > > >
> > > > PoolSize = 10</Container>
> > > >
> > > > for all EJBs and
> > > >
> > > >
> > > > <Container id="Foo2" type="STATELESS">
> > > > PoolSize = 20
> > > > </Container>
> > > >
> > > > seems to be ignored, although tomee logs says it has been recognized
> > > >
> > > > it seems that tomee.xml just gets the first container definition it
> > > > finds and uses it
> > > >
> > > > openejb-jar.xml and ejb-jar.xml seem to be ignored too. They must be
> > > > located at WEB-INF or at META-INF?
> > > >
> > > >
> > > > what should I do if I want to define PoolSize = 20 for a specific EJB
> > > > and PoolSize for all the others?
> > > >
> > > >
> > > > []
> > > >
> > > > Leo
> > > >
> > > >
> > > > On Sat, Nov 23, 2013 at 5:50 AM, Romain Manni-Bucau
> > > > <[email protected]>wrote:
> > > >
> > > > > Ejb name are logged so you can just reuse defaults. But if you
> > already
> > > > use
> > > > > ejbjar all is fine
> > > > > Le 22 nov. 2013 23:53, "Leonardo K. Shikida" <[email protected]> a
> > > > écrit :
> > > > >
> > > > > > sorry, ejb-jar is useless if I use default what?????? :-D
> > > > > >
> > > > > > TIA
> > > > > >
> > > > > > []
> > > > > >
> > > > > > Leo
> > > > > >
> > > > > >
> > > > > > On Fri, Nov 22, 2013 at 7:39 PM, Romain Manni-Bucau
> > > > > > <[email protected]>wrote:
> > > > > >
> > > > > > > Ejb jr us useless is you usr default .ames but yes
> > > > > > > Le 22 nov. 2013 20:21, "Leonardo K. Shikida" <
> [email protected]>
> > a
> > > > > > écrit :
> > > > > > >
> > > > > > > > you mean
> > > > > > > >
> > > > > > > > in tomee.xml I define
> > > > > > > >
> > > > > > > > <Container id="Foo1" type="STATELESS">
> > > > > > > > PoolSize = 10
> > > > > > > > </Container>
> > > > > > > >
> > > > > > > > <Container id="Foo2" type="STATELESS">
> > > > > > > > PoolSize = 20
> > > > > > > > </Container>
> > > > > > > >
> > > > > > > > and then in my webapp, in WEB-INF/openejb-jar.xml
> > > > > > > >
> > > > > > > >
> > > > > > > > <?xml version="1.0"?><openejb-jar
> > > > > > > > xmlns="http://www.openejb.org/openejb-jar/1.1";>
> > > > > > > >
> > > > > > > >  <ejb-deployment  ejb-name="somename1"
> > > > > > > >          deployment-id="Foo1"
> > > > > > > >          container-id="Foo1"/>
> > > > > > > >
> > > > > > > >     <ejb-deployment  ejb-name="somename2"
> > > > > > > >          deployment-id="Foo2"
> > > > > > > >          container-id="Foo2"/>
> > > > > > > > </openejb-jar>
> > > > > > > >
> > > > > > > > and then in WEB-INF/ejb-jar.xml
> > > > > > > >
> > > > > > > > <ejb-jar>
> > > > > > > >   <enterprise-beans>
> > > > > > > >     <session>
> > > > > > > >       <ejb-name>somename2</ejb-name>
> > > > > > > > <ejb-class>com.widget.somename2</ejb-class>    </session>
> > > > > > > >
> > > > > > > >     <session>
> > > > > > > >       <ejb-name>somename1</ejb-name>
> > > > > > > > <ejb-class>com.widget.somename1</ejb-class>    </session>
> > > > > > > > </enterprise-beans></ejb-jar>
> > > > > > > >
> > > > > > > > like this?
> > > > > > > >
> > > > > > > >
> > > > > > > > []
> > > > > > > >
> > > > > > > > Leo
> > > > > > > >
> > > > > > > >
> > > > > > > > On Fri, Nov 22, 2013 at 4:30 PM, Romain Manni-Bucau
> > > > > > > > <[email protected]>wrote:
> > > > > > > >
> > > > > > > > > Just define multiple containers and set the container id by
> > > bean
> > > > > > > > > http://tomee.apache.org/details-on-openejb-jar.html
> > > > > > > > > Le 22 nov. 2013 18:31, "Leonardo K. Shikida" <
> > > [email protected]>
> > > > a
> > > > > > > > écrit :
> > > > > > > > >
> > > > > > > > > > Hi
> > > > > > > > > >
> > > > > > > > > > can anyone send me an example of how should I configure
> > files
> > > > to
> > > > > > have
> > > > > > > > two
> > > > > > > > > > types of stateless beans with different max pool sizes
> and
> > > how
> > > > to
> > > > > > > > relate
> > > > > > > > > > each one with specific classes?
> > > > > > > > > >
> > > > > > > > > > TIA
> > > > > > > > > >
> > > > > > > > > > Leo
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to