Eclipse Multiple Projects and Missing persistence.xml
I have a project I am working on and we have separated our business model from our business logic by placing them into different projects in eclipse. These projects are both jars that are placed in our ear file. When I try to run a test on one of our session beans in the EJB project I keep getting errors that it is missing the persistence.xml file that is in our BusinessLogic project. The code is compiling properly, but the tests will not run until I copy the persistence.xml into the EJB project. Does anyone know if having separate jars for the SessionBeans and entities is supported? Thanks, -- Chad
Re: EJB Container Settings
Umm those apply to only CMP and BMP. Regarding entities I am not sure. Probably Dain or David Blevins can throw more light here. Regards Manu On Sun, Mar 30, 2008 at 11:49 PM, the666pack <[EMAIL PROTECTED]> wrote: > > thanks for your reply, > > so i am using EJB 3.0 with standard annotations, are these now CMP or BMP? i > thought this diversification does just apply to EJB 2.1.. > > more: so this means that if EJB 3.0 are Container Managed Beans, i cannot > set the pool size of the entity pool manually? because in the link there is > just mentioned one property " CmpEngineFactory". > > or am i wrong? > > greetings, > > mario. > > > > > manucet wrote: > > > > Hi Mario, > > Feel free to ask as much questions as you want thats what > > this list is for :). > > The properties need to be set in the corresponding EjbContainer > > GBeans. The properties that are exposed by OpenEJB are actually given > > in the link below > > http://openejb.apache.org/example-generated-documentation.html. > > You need to set the properties in the corresponding Container GBeans > > or as system properties. > > > > 1) Setting system property > > If you set it as a system property then you will need to use the format > > .. > > An example of setting the system property is given in one of my > > previous mails to you > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg09381.html > > > > 2) Setting on the container Gbeans > > If you are setting the individual gbeans with the properties you can > > give just the property name followed by the value in the config.xml. > > eg: > > > > > > ${OpenEJBPort + PortOffset} > > ${ServerHostname} > > > > > > TimeOut=10 > > StrictPooling=false > > PoolSize=15 > > > > > > This is how we can set some properties for the stateless container. > > > > The GBean names are DefaultStatelessContainer,DefaultStatefulContainer > > ,DefaultBMPContainer and DefaultCMPContainer. There is no Gbean > > corresponding to the MdbContainer but you can set values on the > > MdbContainer using the system property method > > > > Regards > > Manu > > > > > > > > > > > > > > > > > > On Sun, Mar 30, 2008 at 1:41 PM, the666pack <[EMAIL PROTECTED]> > > wrote: > >> > >> hello, > >> > >> sorry that i bring this topic on again, but it would be important for me > >> to > >> find out how or where to change the EJB-container settings in geronimo. > >> as > >> the ejb-container in geronimo is OpenEJB i hope that here is someone who > >> can > >> tell me this. Most important would be where to set > >> > >> -Entity Bean Pool Size (max-pool-size) > >> -Strict-Pool-Size (if available) > >> -Commit Option > >> > >> i was searching but i did not find a possibility to change these options > >> in > >> geronimo OpenEJB entity container. i hope that someone can help me out > >> with > >> this and thank you for your help. > >> > >> greetings, > >> > >> mario > >> -- > >> View this message in context: > >> http://www.nabble.com/EJB-Container-Settings-tp16379417p16379417.html > >> Sent from the OpenEJB User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/EJB-Container-Settings-tp16379417p16385216.html > > > Sent from the OpenEJB User mailing list archive at Nabble.com. > >
Re: EJB Container Settings
thanks for your reply, so i am using EJB 3.0 with standard annotations, are these now CMP or BMP? i thought this diversification does just apply to EJB 2.1.. more: so this means that if EJB 3.0 are Container Managed Beans, i cannot set the pool size of the entity pool manually? because in the link there is just mentioned one property " CmpEngineFactory". or am i wrong? greetings, mario. manucet wrote: > > Hi Mario, > Feel free to ask as much questions as you want thats what > this list is for :). > The properties need to be set in the corresponding EjbContainer > GBeans. The properties that are exposed by OpenEJB are actually given > in the link below > http://openejb.apache.org/example-generated-documentation.html. > You need to set the properties in the corresponding Container GBeans > or as system properties. > > 1) Setting system property > If you set it as a system property then you will need to use the format > .. > An example of setting the system property is given in one of my > previous mails to you > http://www.mail-archive.com/[EMAIL PROTECTED]/msg09381.html > > 2) Setting on the container Gbeans > If you are setting the individual gbeans with the properties you can > give just the property name followed by the value in the config.xml. > eg: > > > ${OpenEJBPort + PortOffset} > ${ServerHostname} > > > TimeOut=10 > StrictPooling=false > PoolSize=15 > > > This is how we can set some properties for the stateless container. > > The GBean names are DefaultStatelessContainer,DefaultStatefulContainer > ,DefaultBMPContainer and DefaultCMPContainer. There is no Gbean > corresponding to the MdbContainer but you can set values on the > MdbContainer using the system property method > > Regards > Manu > > > > > > > > > On Sun, Mar 30, 2008 at 1:41 PM, the666pack <[EMAIL PROTECTED]> > wrote: >> >> hello, >> >> sorry that i bring this topic on again, but it would be important for me >> to >> find out how or where to change the EJB-container settings in geronimo. >> as >> the ejb-container in geronimo is OpenEJB i hope that here is someone who >> can >> tell me this. Most important would be where to set >> >> -Entity Bean Pool Size (max-pool-size) >> -Strict-Pool-Size (if available) >> -Commit Option >> >> i was searching but i did not find a possibility to change these options >> in >> geronimo OpenEJB entity container. i hope that someone can help me out >> with >> this and thank you for your help. >> >> greetings, >> >> mario >> -- >> View this message in context: >> http://www.nabble.com/EJB-Container-Settings-tp16379417p16379417.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/EJB-Container-Settings-tp16379417p16385216.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Container Settings
Hi Mario, Feel free to ask as much questions as you want thats what this list is for :). The properties need to be set in the corresponding EjbContainer GBeans. The properties that are exposed by OpenEJB are actually given in the link below http://openejb.apache.org/example-generated-documentation.html. You need to set the properties in the corresponding Container GBeans or as system properties. 1) Setting system property If you set it as a system property then you will need to use the format .. An example of setting the system property is given in one of my previous mails to you http://www.mail-archive.com/[EMAIL PROTECTED]/msg09381.html 2) Setting on the container Gbeans If you are setting the individual gbeans with the properties you can give just the property name followed by the value in the config.xml. eg: ${OpenEJBPort + PortOffset} ${ServerHostname} TimeOut=10 StrictPooling=false PoolSize=15 This is how we can set some properties for the stateless container. The GBean names are DefaultStatelessContainer,DefaultStatefulContainer ,DefaultBMPContainer and DefaultCMPContainer. There is no Gbean corresponding to the MdbContainer but you can set values on the MdbContainer using the system property method Regards Manu On Sun, Mar 30, 2008 at 1:41 PM, the666pack <[EMAIL PROTECTED]> wrote: > > hello, > > sorry that i bring this topic on again, but it would be important for me to > find out how or where to change the EJB-container settings in geronimo. as > the ejb-container in geronimo is OpenEJB i hope that here is someone who can > tell me this. Most important would be where to set > > -Entity Bean Pool Size (max-pool-size) > -Strict-Pool-Size (if available) > -Commit Option > > i was searching but i did not find a possibility to change these options in > geronimo OpenEJB entity container. i hope that someone can help me out with > this and thank you for your help. > > greetings, > > mario > -- > View this message in context: > http://www.nabble.com/EJB-Container-Settings-tp16379417p16379417.html > Sent from the OpenEJB User mailing list archive at Nabble.com. > >
EJB Container Settings
hello, sorry that i bring this topic on again, but it would be important for me to find out how or where to change the EJB-container settings in geronimo. as the ejb-container in geronimo is OpenEJB i hope that here is someone who can tell me this. Most important would be where to set -Entity Bean Pool Size (max-pool-size) -Strict-Pool-Size (if available) -Commit Option i was searching but i did not find a possibility to change these options in geronimo OpenEJB entity container. i hope that someone can help me out with this and thank you for your help. greetings, mario -- View this message in context: http://www.nabble.com/EJB-Container-Settings-tp16379417p16379417.html Sent from the OpenEJB User mailing list archive at Nabble.com.