Hi

do you need to start/stop by test? If you add to properties "
openejb.ejbcontainer.close=single-jvm"


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-04-17 11:25 GMT+02:00 amber <[email protected]>:

> Hello,
>
> since we upgrade to 4.7.x ours tests are very slow. It's because we
> start/stop properly OpenEJB (not the cas before ^^) :
>
> @BeforeClass
> public static void start() {
>     Properties p = new Properties();
>
> ...
>     // some hsqldb settings
> ...
>     container = EJBContainer.createEJBContainer();
> }
>
> @Before
> public void inject() throws NamingException {
>     container.getContext().bind("inject", this);
> }
>
> @AfterClass
> public static void stop() {
>     container.close();
> }
>
> works nice , but...too slow with many junit class (each class doing this
> sequence start/stop with its own parameters)
>
> Is there a way to improve perfs ?
>
> thx
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/openEJB-perfs-tp4674462.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to