jsr343-experts@jms-spec.java.net

[jsr343-experts] Re: [jms-spec users] Re: JMS 2.0 Priorities: Proposal from Julien Dubois

From: Reza Rahman <reza_rahman_at_lycos.com>
Date: Thu, 16 Jun 2011 12:00:01 -0400

Guys,

I think this is somewhat an academic discussion. If the message listener
is based on CDI @Observers (and I don't see why it wouldn't be), they
will be bootstrapped with CDI in Java SE when the CDI "container"
starts. The CDI 1.1 specification is defining Java SE bootstrap. I think
the bootstrap can either be declarative and/or programmatic as in Weld SE.

Cheers,
Reza


On 6/16/2011 8:36 AM, Adam Bien wrote:
>
> On 16.06.2011, at 14:29, Julien Dubois wrote:
>
>>>
>>> 4. Using MDB everywhere
>>> MDBs should not be reserved for application servers. We should
>>> have "message-driven POJOs" as seen in Spring JMS, by using
>>> annotations on a simple Java object.
>>
>> But you will need some kind of a container. IMHO it doesn't
>> matter whether I'm using Spring or Weld or OSGi based EJB
>> container. It won't work with Java SE...
>>
>>
>> It can work with plain Java SE, we don't need a container for that.
>> Last week, I've seen a project which has done its own implementation,
>> which is a simple thread that polls for messages every second. It
>> could be turned on and off, etc...
>> Spring JMS does exactly the same thing (it's more advanced as you
>> plug in a thread pool, etc, but it's the same idea). I've seen a lot
>> of Spring Batch, Spring Integration, and Tomcat-based projects use it.
>> A simple use case such as receiving messages should be available for
>> everyone, even if they just use plain Java SE. Of course, for more
>> complex use cases we could require Java EE.
>
> O.k. You will need some kind of infrastructure / indirection. The
> thread will have to pull the messages and invoke a POJO. The POJO will
> be managed by something. I refer to the "something" as a container.
>>
>>>
>>> 5. Clustering and failover
>>> As the theme of JEE 7 is "the cloud", there should be some
>>> clustering/failover facilities in the specification.
>>> For instance, we should be able to configure failover as in
>>> ActiveMQ from the standard configuration:
>>> http://activemq.apache.org/failover-transport-reference.html
>>
>> So far I know clustering is not specified in other
>> specifications. (except distributable in web.xml). But probably
>> we could introduce the notion of clustering in Java EE 7 in general.
>>
>>
>> I fully agree. Clustering is a wider subject, and should be adressed
>> at the Java EE 7 level. I'm a bit confused here: as far as I
>> understand, "the cloud" is a main theme of Java EE 7, but nobody
>> seems to be working on it...
>
> In Java EE 7 JSR are working on it, but not on clustering.
>>
>>
>>
>> --
>> Julien Dubois
>>
>> Twitter: @juliendubois <http://twitter.com/#%21/juliendubois>
>>
>>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 10.0.1382 / Virus Database: 1513/3707 - Release Date: 06/16/11
>