[jboss-dev] On demand JCA and JTA for the web-profile

Carlo de Wolf cdewolf at redhat.com
Tue May 5 07:07:00 EDT 2009


Ales Justin wrote:
> I'll have a crack at this.
>
> Adrian, what did you mean under:
>
> > * The abilitiy to make the object bound into jndi
> > aop remoteable
That path leads to the AOPDispatcher singleton and we don't want to have 
singletons in MC.

I would rather see the usage of ejb3-remoting2. Which can basically make 
anything remotable.
And bind not the remotable ref by itself, but rather a ref via 
ObjectFactory and make the remotable ref reference that one. Then you've 
solved the bind remotable MC into JNDI problem.
If you want to see a lazy MC bound into JNDI in action, see 
ejb3-nointerface.

The most important thing and change is that you must have an interface 
to make stuff remotable, which flies against the MC POJO model.

Carlo
>
> > * The on-demand processing I described.
>
> You mean that the default ObjectFactory
> takes OnDemand into an account?
>
> Adrian Brock wrote:
>> On Fri, 2008-11-14 at 15:20 +0100, Ales Justin wrote:
>>>> I want to provide an @JNDI annotation similar to the @JMX
>>>> lifecycle to make this easier for developers.
>>>>
>>>> This will be important if we ever get around to
>>>> changing our naming contexts to read-only since we
>>>> can just change the @JNDI aspect to use the new
>>>> mechansim for binding to jndi.
>>> How does this compare with what we already have:
>>>   - 
>>> http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/aop-mc-int/src/main/java/org/jboss/aop/microcontainer/aspects/jndi/ 
>>>
>>
>> I didn't know it existed. :-)
>>
>> The obvious things that are missing is are:
>>
>> * The on-demand processing I described.
>>
>> * whether the object should be bound using the
>> NonSerializableObjectFactory or can be bound directly.
>>
>> * What custom ObjectFactory should be used if the binding
>> implements Referenceable
>>
>> * The abilitiy to make the object bound into jndi
>> aop remoteable
>>
>>> _______________________________________________
>>> jboss-development mailing list
>>> jboss-development at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-development
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development




More information about the jboss-development mailing list