You can mix annotations and deployment descriptor elements.
If you define the exact same annotation/element, the deployment
descriptor value will overwrite the annotations, but that doesn't mean
it's either or as a whole.
I don't believe there are any annotations to configure the instance pool.
Actually, the annotations are standardized by the various JSR's. The
bean pool is not. So for such settings in sun-xxx.xml there are
generally no equivalent annotations.
On 9/02/2010 14:14, glassfish_at_javadesktop.org wrote:
>> You mention 'dynamically' in the title but then 'annotation' (which
>> I'd call static) in your question so I'm a bit confused, but you
>> can specify the max bean instance pool size in sun-ejb.xml for each
>> MDB separately.
>
>
> Good point. I changed the dynamic.
>
>
> I know you can set it in te sun-ejb-jar.xml but we are using
> annotations and I was under the impression that you couldn't use both
> annotations and the sun-ejb-jar.xml, that its either or.
>
> If this is true, there has to be a way to set it as an annotation,
> right? [Message sent by forum member 'rhjr1687'
> (rhjr1687_at_gmail.com)]