You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Ron Smits <ro...@gmail.com> on 2012/12/24 21:15:20 UTC

naming conventions

Evening

Been playing with tomee and wicket. I had quite a hard time getting wicket
to play nice with EJB's because it could not use the right naming strategy.
Apparently tomee publishes EJB's with two names:
 --
HelloEJB!ejb.HelloEJB
org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
HelloEJB org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference

they are available from "java:global/tomee" context where tomee is the name
of the project I am working on. there is an easy solution for with the
wicket javaee-inject module. but what would be the best jndi name to use?
My 'guess' would be the first one as it is likely to be more unique.

comments?

Ron
I Haven't Lost My Mind - It's Backed Up On Disk Somewhere

Re: naming conventions

Posted by Romain Manni-Bucau <rm...@gmail.com>.
IIRC wicket application can be seens as a kind of page factory so with
deltaspike that s easy to integrate both (a bit like pax did for blueprint)
Le 25 déc. 2012 01:28, "Ron Smits" <ro...@gmail.com> a écrit :

> That will be the next part currently I am using
> http://jeff-schwartz.blogspot.nl/2011/03/java-ee6-wicket.html just to see
> how much change I have to make to make it work.
> Also wicket-cdi is weld based......
>
> I Haven't Lost My Mind - It's Backed Up On Disk Somewhere
>
>
> On Tue, Dec 25, 2012 at 1:26 AM, Romain Manni-Bucau
> <rm...@gmail.com>wrote:
>
> > +1
> >
> > That said i'd use wicket cdi instead of an ejb integration
> >
> > Wdyt?
> > Le 24 déc. 2012 22:22, "John D. Ament" <jo...@gmail.com> a écrit
> :
> >
> > > EJB 3.1 introduced standardized naming conventions.  The best one to
> use
> > is
> > > the one that matches:
> > >
> > >
> >
> java:global[/<application-name>]/<module-name>/<bean-name>#<interface-name>
> > >
> > >
> > > On Mon, Dec 24, 2012 at 3:15 PM, Ron Smits <ro...@gmail.com>
> wrote:
> > >
> > > > Evening
> > > >
> > > > Been playing with tomee and wicket. I had quite a hard time getting
> > > wicket
> > > > to play nice with EJB's because it could not use the right naming
> > > strategy.
> > > > Apparently tomee publishes EJB's with two names:
> > > >  --
> > > > HelloEJB!ejb.HelloEJB
> > > > org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> > > > HelloEJB
> org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> > > >
> > > > they are available from "java:global/tomee" context where tomee is
> the
> > > name
> > > > of the project I am working on. there is an easy solution for with
> the
> > > > wicket javaee-inject module. but what would be the best jndi name to
> > use?
> > > > My 'guess' would be the first one as it is likely to be more unique.
> > > >
> > > > comments?
> > > >
> > > > Ron
> > > > I Haven't Lost My Mind - It's Backed Up On Disk Somewhere
> > > >
> > >
> >
>

Re: naming conventions

Posted by Ron Smits <ro...@gmail.com>.
That will be the next part currently I am using
http://jeff-schwartz.blogspot.nl/2011/03/java-ee6-wicket.html just to see
how much change I have to make to make it work.
Also wicket-cdi is weld based......

I Haven't Lost My Mind - It's Backed Up On Disk Somewhere


On Tue, Dec 25, 2012 at 1:26 AM, Romain Manni-Bucau
<rm...@gmail.com>wrote:

> +1
>
> That said i'd use wicket cdi instead of an ejb integration
>
> Wdyt?
> Le 24 déc. 2012 22:22, "John D. Ament" <jo...@gmail.com> a écrit :
>
> > EJB 3.1 introduced standardized naming conventions.  The best one to use
> is
> > the one that matches:
> >
> >
> java:global[/<application-name>]/<module-name>/<bean-name>#<interface-name>
> >
> >
> > On Mon, Dec 24, 2012 at 3:15 PM, Ron Smits <ro...@gmail.com> wrote:
> >
> > > Evening
> > >
> > > Been playing with tomee and wicket. I had quite a hard time getting
> > wicket
> > > to play nice with EJB's because it could not use the right naming
> > strategy.
> > > Apparently tomee publishes EJB's with two names:
> > >  --
> > > HelloEJB!ejb.HelloEJB
> > > org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> > > HelloEJB org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> > >
> > > they are available from "java:global/tomee" context where tomee is the
> > name
> > > of the project I am working on. there is an easy solution for with the
> > > wicket javaee-inject module. but what would be the best jndi name to
> use?
> > > My 'guess' would be the first one as it is likely to be more unique.
> > >
> > > comments?
> > >
> > > Ron
> > > I Haven't Lost My Mind - It's Backed Up On Disk Somewhere
> > >
> >
>

Re: naming conventions

Posted by Romain Manni-Bucau <rm...@gmail.com>.
+1

That said i'd use wicket cdi instead of an ejb integration

Wdyt?
Le 24 déc. 2012 22:22, "John D. Ament" <jo...@gmail.com> a écrit :

> EJB 3.1 introduced standardized naming conventions.  The best one to use is
> the one that matches:
>
> java:global[/<application-name>]/<module-name>/<bean-name>#<interface-name>
>
>
> On Mon, Dec 24, 2012 at 3:15 PM, Ron Smits <ro...@gmail.com> wrote:
>
> > Evening
> >
> > Been playing with tomee and wicket. I had quite a hard time getting
> wicket
> > to play nice with EJB's because it could not use the right naming
> strategy.
> > Apparently tomee publishes EJB's with two names:
> >  --
> > HelloEJB!ejb.HelloEJB
> > org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> > HelloEJB org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> >
> > they are available from "java:global/tomee" context where tomee is the
> name
> > of the project I am working on. there is an easy solution for with the
> > wicket javaee-inject module. but what would be the best jndi name to use?
> > My 'guess' would be the first one as it is likely to be more unique.
> >
> > comments?
> >
> > Ron
> > I Haven't Lost My Mind - It's Backed Up On Disk Somewhere
> >
>

Re: naming conventions

Posted by "John D. Ament" <jo...@gmail.com>.
EJB 3.1 introduced standardized naming conventions.  The best one to use is
the one that matches:

java:global[/<application-name>]/<module-name>/<bean-name>#<interface-name>


On Mon, Dec 24, 2012 at 3:15 PM, Ron Smits <ro...@gmail.com> wrote:

> Evening
>
> Been playing with tomee and wicket. I had quite a hard time getting wicket
> to play nice with EJB's because it could not use the right naming strategy.
> Apparently tomee publishes EJB's with two names:
>  --
> HelloEJB!ejb.HelloEJB
> org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
> HelloEJB org.apache.openejb.core.ivm.naming.BusinessLocalBeanReference
>
> they are available from "java:global/tomee" context where tomee is the name
> of the project I am working on. there is an easy solution for with the
> wicket javaee-inject module. but what would be the best jndi name to use?
> My 'guess' would be the first one as it is likely to be more unique.
>
> comments?
>
> Ron
> I Haven't Lost My Mind - It's Backed Up On Disk Somewhere
>