[jboss-user] [Microcontainer] - Re: simple: bean name of ejb local in inject tag

2009-08-18 Thread jjfraney
Alesj,
Thanks.  That is much simpler (and less ribald) compared to Doing two 
models... 

Now that the jndi registry is 'regsitered', does every bean lookup now use it?  
even those by beans other than my own?  Or is the jndi registry used only on 
bean name lookups that originate from my local bean?

Thanks again.

John

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250169#4250169

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250169
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: simple: bean name of ejb local in inject tag

2009-08-18 Thread alesj
Yup, a good question.

Unfortunately it is asked for every lookup.
But I guess you can implement some short circle check.
e.g. if (name.startsWith(jndi) == false) return null;
Or something similar.

Then the performance wouldn't be a huge issue.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250178#4250178

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250178
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: simple: bean name of ejb local in inject tag

2009-08-17 Thread jaikiran
inspect bean=GooGooEngine/local/
  | 

inspect? Or is that a typo for inject?

EJBs are not deployed as Microcontainer Beans (MC beans). So they are not 
available for injection *in MC style*. However, Andrew recently has written a 
plugin where in you can inject EJB beans through annotations in MC beans. Like 
this:

  | public class MyMCBean
  | {
  | 
  |  @EJB
  |  private MyBusinessInterface ejb;
  | 
  | }

For further reference, see this 
http://exitcondition.alrubinger.com/2008/12/20/doing-two-models-at-the-same-time/

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4249965#4249965

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249965
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: simple: bean name of ejb local in inject tag

2009-08-17 Thread jjfraney
Thanks.

yes, sorry, I meant to enter 'inject' not 'inspect'.  Typo in the morning.

I found Doing Two Models but on first read, I wasn't sure it applied to 
my question.  Will re-read.  In any case, it looks more complex than simply 
doing a jndi lookup explicitly from my mc pojo.

Thanks again.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250005#4250005

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250005
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: simple: bean name of ejb local in inject tag

2009-08-17 Thread alesj
There is a JndiKernelRegistryPlugin which can help you with and MC+Jndi simple 
integration.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250014#4250014

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250014
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user