You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Daniel Cunha <da...@apache.org> on 2019/02/28 15:29:58 UTC

LocalInitialContextFactory instead of InitContextFactory

Hi folks,

I saw that we are using
org.apache.openejb.core.ivm.naming.InitContextFactory in some places.
Shouldn't we move the code to use definitely
org.apache.openejb.core.LocalInitialContextFactory instead of
org.apache.openejb.core.ivm.naming.InitContextFactory?


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_

Re: LocalInitialContextFactory instead of InitContextFactory

Posted by Daniel Cunha <da...@gmail.com>.
I see it in a lot of sample.
By the way, we also have it in org.apache.openejb.core.LocalInitialContext
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/core/LocalInitialContext.java#L54
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/client/LocalInitialContext.java#L29

Just worrying if we need to consider this:
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/openejb/client/LocalInitialContextFactory.java#L24
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/core/LocalInitialContextFactory.java#L37
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/client/LocalInitialContextFactory.java#L23

and it is probably deprecated as well:
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/osgi/client/LocalInitialContextFactory.java#L29

Em qui, 28 de fev de 2019 às 13:19, Jonathan Gallimore <
jonathan.gallimore@gmail.com> escreveu:

> Hey Dani
>
> Can you post a couple of examples?
>
> Jon
>
> On Thu, Feb 28, 2019 at 3:30 PM Daniel Cunha <da...@apache.org>
> wrote:
>
> > Hi folks,
> >
> > I saw that we are using
> > org.apache.openejb.core.ivm.naming.InitContextFactory in some places.
> > Shouldn't we move the code to use definitely
> > org.apache.openejb.core.LocalInitialContextFactory instead of
> > org.apache.openejb.core.ivm.naming.InitContextFactory?
> >
> >
> > --
> > Daniel "soro" Cunha
> > https://twitter.com/dvlc_
> >
>


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_

Re: LocalInitialContextFactory instead of InitContextFactory

Posted by Jonathan Gallimore <jo...@gmail.com>.
Hey Dani

Can you post a couple of examples?

Jon

On Thu, Feb 28, 2019 at 3:30 PM Daniel Cunha <da...@apache.org> wrote:

> Hi folks,
>
> I saw that we are using
> org.apache.openejb.core.ivm.naming.InitContextFactory in some places.
> Shouldn't we move the code to use definitely
> org.apache.openejb.core.LocalInitialContextFactory instead of
> org.apache.openejb.core.ivm.naming.InitContextFactory?
>
>
> --
> Daniel "soro" Cunha
> https://twitter.com/dvlc_
>