You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Sergey Beryozkin <sb...@gmail.com> on 2010/08/03 10:48:59 UTC

JMS transport strongly depends on Spring

Hi

I'm looking at the issue to do with the JMS transport strongly depending on
Spring.
As it happens, JMSConfiguration implements (Spring) InitializingBean for the
only purpose of verifying that
a connectionFactory has been set.

This causes problems when doing non-Spring CXF deployments.
Generally, we should really try to keep the Spring related code in .spring
subpackages as it will make it simpler for CXF be integrated with other
similar frameworks or deployed in containers providing the optional Spring
support only.

I'm planning just remove this dependency from the JMSConfiguration so that
the JMS transport can be deployed without Spring with 2.2.10.
This is really the main property but if it's not been set for some reason in
the Spring case then it will be caught anyway. That said, I'll add another
check
in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the way
attempts to get the connectionFactory from JNDI if it's currently null) to
ensure it's been initialized.

cheers, Sergey

Re: JMS transport strongly depends on Spring

Posted by Glen Mazza <gl...@gmail.com>.

Sergey Beryozkin-5 wrote:
> 
> Don't really get it... Or is it the case of someone missing the point that
> some users of CXF just do not want to use Spring ?
> 

I don't know, I just think it would be nice if there was a separate Apache
Banana project that consists of Spring but with its JARs renamed and
packages renamed from org.springframework.* to org.bananaframework.*.  That
way our code would be based on an established framework that's easy for
developers to understand while at the same time truthfully allowing us to
say that there's no Spring in our source code.  Keeps the developers happy,
keeps the pointy-haired bosses happy.

What do you do at work if you're using Spring's InitializingBean but your
boss says not to use Spring?  OK, Spring's Apache licensed, so you take the
class, rename it to org.whatever.InitializingBean, and copy it in your code
(keeping the copyright header, of course) and you're done.  Apache Banana
would serve as a one-stop formalization of that effort that all developers
can quickly use.

Glen

-- 
View this message in context: http://cxf.547215.n5.nabble.com/JMS-transport-strongly-depends-on-Spring-tp2262704p2264656.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Re: JMS transport strongly depends on Spring

Posted by Glen Mazza <gl...@gmail.com>.

Sergey Beryozkin-5 wrote:
> 
> Let me put it the other way. I haven't started this thread to complain
> about
> Spring, or start any debate about the use of Spring. What I'd like to
> convey
> is that IMHO it is in the interests of CXF to ensure that those
> integrators
> who prefer to provide non-Spring deployments can do it as easily as
> possible. 
> 

Yes, but be careful.  When you say "non-Spring deployment", you are really
saying "non-standardized framework deployment", because to generalize your
concern, you are trying to satisfy a user who does not want *any* external
framework libraries to be used within CXF.  As I was trying to imply with
Banana, once you switch to that framework the user is going to want us to
get rid of that as well, so I think it would be better to generalize your
scenario to that of a user who wants us to roll our own framework (i.e.,
like Metro) rather than rely on one that well tested and understood by a
multitude of developers.

I would certainly agree with disconnecting from Spring (indeed any external
library) where the JDK already offers equivalent OOTB functionality, or
where it just takes a few lines of code to separate from the third party
library.  But I would careful about reinventing the wheel and duplicating
significant amounts of code internally just so we can say that we're
Spring-free.  A strong case can be made for code reuse and relying on
frameworks rather than having each project invent and maintain its own--and
for everyone happy that we've moved from org.springframework.* to org.cxf.*,
several more would be concerned about our move to a lesser-used and -tested
internal framework.

Glen

-- 
View this message in context: http://cxf.547215.n5.nabble.com/JMS-transport-strongly-depends-on-Spring-tp2262704p2264830.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Re: JMS transport strongly depends on Spring

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi,

On Wed, Aug 4, 2010 at 6:53 PM, Sergey Beryozkin <sb...@gmail.com>wrote:

>
>
> On Wed, Aug 4, 2010 at 6:30 PM, Glen Mazza <gl...@gmail.com> wrote:
>
>>
>>
>> Sergey Beryozkin-5 wrote:
>> >
>> > This causes problems when doing non-Spring CXF deployments.
>> > Generally, we should really try to keep the Spring related code in
>> .spring
>> > subpackages as it will make it simpler for CXF be integrated with other
>> > similar frameworks or deployed in containers providing the optional
>> Spring
>> > support only.
>> >
>>
>> I wonder if we could just rename Spring to Banana and use Banana's JARs
>> instead.  Such a wrapping would allow us to use Spring to our heart's
>> content while at the same time truthfully saying we're 100% Spring-free.
>> (Or would we then need to worry about supporting non-Banana deployments?
>>  :)
>>
>>
> Don't really get it... Or is it the case of someone missing the point that
> some users of CXF just do not want to use Spring ?
>

Let me put it the other way. I haven't started this thread to complain about
Spring, or start any debate about the use of Spring. What I'd like to convey
is that IMHO it is in the interests of CXF to ensure that those integrators
who prefer to provide non-Spring deployments can do it as easily as
possible. For example, you all know there's some 'tension' out there between
say Java EE & Spring ways of configuring and deploying web applications and
thus it should not be a surprise that some CXF users, individual & large
alike, may want to avoid depending on Spring or at least having an option
not to use Spring for simple deployments.

CXF JMS transport is powerful and it is good. But the fact simple WSDL-first
deployments depending on JMS strictly require Spring is a bit unexpected...

Glen - my apologies for over-reacting (as usual :-))

Sergey

>
>
>>  --
>>
>> View this message in context:
>> http://cxf.547215.n5.nabble.com/JMS-transport-strongly-depends-on-Spring-tp2262704p2264402.html
>> Sent from the cxf-dev mailing list archive at Nabble.com.
>>
>
>

Re: JMS transport strongly depends on Spring

Posted by Sergey Beryozkin <sb...@gmail.com>.
On Wed, Aug 4, 2010 at 6:30 PM, Glen Mazza <gl...@gmail.com> wrote:

>
>
> Sergey Beryozkin-5 wrote:
> >
> > This causes problems when doing non-Spring CXF deployments.
> > Generally, we should really try to keep the Spring related code in
> .spring
> > subpackages as it will make it simpler for CXF be integrated with other
> > similar frameworks or deployed in containers providing the optional
> Spring
> > support only.
> >
>
> I wonder if we could just rename Spring to Banana and use Banana's JARs
> instead.  Such a wrapping would allow us to use Spring to our heart's
> content while at the same time truthfully saying we're 100% Spring-free.
> (Or would we then need to worry about supporting non-Banana deployments?
>  :)
>
>
Don't really get it... Or is it the case of someone missing the point that
some users of CXF just do not want to use Spring ?


> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/JMS-transport-strongly-depends-on-Spring-tp2262704p2264402.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
>

Re: JMS transport strongly depends on Spring

Posted by Sergey Beryozkin <sb...@gmail.com>.
Don't really get it, care to explain ?

On Wed, Aug 4, 2010 at 6:30 PM, Glen Mazza <gl...@gmail.com> wrote:

>
>
> Sergey Beryozkin-5 wrote:
> >
> > This causes problems when doing non-Spring CXF deployments.
> > Generally, we should really try to keep the Spring related code in
> .spring
> > subpackages as it will make it simpler for CXF be integrated with other
> > similar frameworks or deployed in containers providing the optional
> Spring
> > support only.
> >
>
> I wonder if we could just rename Spring to Banana and use Banana's JARs
> instead.  Such a wrapping would allow us to use Spring to our heart's
> content while at the same time truthfully saying we're 100% Spring-free.
> (Or would we then need to worry about supporting non-Banana deployments?
>  :)
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/JMS-transport-strongly-depends-on-Spring-tp2262704p2264402.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
>

Re: JMS transport strongly depends on Spring

Posted by Glen Mazza <gl...@gmail.com>.

Sergey Beryozkin-5 wrote:
> 
> This causes problems when doing non-Spring CXF deployments.
> Generally, we should really try to keep the Spring related code in .spring
> subpackages as it will make it simpler for CXF be integrated with other
> similar frameworks or deployed in containers providing the optional Spring
> support only.
> 

I wonder if we could just rename Spring to Banana and use Banana's JARs
instead.  Such a wrapping would allow us to use Spring to our heart's
content while at the same time truthfully saying we're 100% Spring-free. 
(Or would we then need to worry about supporting non-Banana deployments?  :)

-- 
View this message in context: http://cxf.547215.n5.nabble.com/JMS-transport-strongly-depends-on-Spring-tp2262704p2264402.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Re: JMS transport strongly depends on Spring

Posted by Christian Schneider <ch...@die-schneider.net>.
  Using the Spring JmsTemplate and Messagelistener really improved the 
jms transport code. I was able to remove much infrastructure code where 
we simply reinvented the wheel. So I think it was a good idea to use it 
versus doing it all from scratch.

There is one problem with these spring classes though. They bring in a 
big part of the spring stack into each module that uses them. I think it 
is the same as with Spring JdbcTemplate.
So people who do not want to use spring dependency injection still are 
forced to have the code for it in their apps. While this is only some 
jars that do not hurt that much I still understand that this is not exactly
what people would like to have.

So I think the best solution is that we ask the springsource team to 
offer the template stuff for jms and jdbc as separate jars that don´t 
need the rest of spring. I am sure this would benefit cxf as well as 
camel. I will dig into the spring code a bit to check if this is 
possible at all. I don´t know how much spring api they use in the 
template stuff.

Greetings

Christian

Am 05.08.2010 08:25, schrieb Daniel Kulp:
> Just a little history on this...
>
> Originally, the JMS transport only used the JMS API's directly.   I think the
> version on the 2.0 branch still is that way.   You may want to look at that as
> a starting point if you need a custom version.
>
> Around Aug/Sept 2008, Christian did a lot of work to refactor the entire thing
> to use the Spring JMS stuff.   There were a lot of deficiencies in the JMS
> transport that were solved by doing that.   We actually talked to the JMS
> "experts" over on ActiveMQ and they all pretty much unanimously (James, Hiram,
> etc....) agreed that to do JMS correctly, you use the Spring JMS stuff.
> Never try to do good JMS without it.  Thus, it was refactored to use Spring.
> One of the JIRA's:
>
> https://issues.apache.org/jira/browse/CXF-1832
>
> If you scroll back to the Aug/Sep 2008 time frame in the email logs, there may
> be more information.  Unfortunately, my internet access/email access is almost
> non-existent this week so I cannot really dig through right now.
>
> Dan
>
>
>
> On Tuesday 03 August 2010 4:48:59 am Sergey Beryozkin wrote:
>> Hi
>>
>> I'm looking at the issue to do with the JMS transport strongly depending on
>> Spring.
>> As it happens, JMSConfiguration implements (Spring) InitializingBean for
>> the only purpose of verifying that
>> a connectionFactory has been set.
>>
>> This causes problems when doing non-Spring CXF deployments.
>> Generally, we should really try to keep the Spring related code in .spring
>> subpackages as it will make it simpler for CXF be integrated with other
>> similar frameworks or deployed in containers providing the optional Spring
>> support only.
>>
>> I'm planning just remove this dependency from the JMSConfiguration so that
>> the JMS transport can be deployed without Spring with 2.2.10.
>> This is really the main property but if it's not been set for some reason
>> in the Spring case then it will be caught anyway. That said, I'll add
>> another check
>> in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the way
>> attempts to get the connectionFactory from JNDI if it's currently null) to
>> ensure it's been initialized.
>>
>> cheers, Sergey

-- 
----
http://www.liquid-reality.de


Re: JMS transport strongly depends on Spring

Posted by Daniel Kulp <dk...@apache.org>.
Just a little history on this...

Originally, the JMS transport only used the JMS API's directly.   I think the 
version on the 2.0 branch still is that way.   You may want to look at that as 
a starting point if you need a custom version.

Around Aug/Sept 2008, Christian did a lot of work to refactor the entire thing 
to use the Spring JMS stuff.   There were a lot of deficiencies in the JMS 
transport that were solved by doing that.   We actually talked to the JMS 
"experts" over on ActiveMQ and they all pretty much unanimously (James, Hiram, 
etc....) agreed that to do JMS correctly, you use the Spring JMS stuff.   
Never try to do good JMS without it.  Thus, it was refactored to use Spring.   
One of the JIRA's:

https://issues.apache.org/jira/browse/CXF-1832

If you scroll back to the Aug/Sep 2008 time frame in the email logs, there may 
be more information.  Unfortunately, my internet access/email access is almost 
non-existent this week so I cannot really dig through right now.

Dan



On Tuesday 03 August 2010 4:48:59 am Sergey Beryozkin wrote:
> Hi
> 
> I'm looking at the issue to do with the JMS transport strongly depending on
> Spring.
> As it happens, JMSConfiguration implements (Spring) InitializingBean for
> the only purpose of verifying that
> a connectionFactory has been set.
> 
> This causes problems when doing non-Spring CXF deployments.
> Generally, we should really try to keep the Spring related code in .spring
> subpackages as it will make it simpler for CXF be integrated with other
> similar frameworks or deployed in containers providing the optional Spring
> support only.
> 
> I'm planning just remove this dependency from the JMSConfiguration so that
> the JMS transport can be deployed without Spring with 2.2.10.
> This is really the main property but if it's not been set for some reason
> in the Spring case then it will be caught anyway. That said, I'll add
> another check
> in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the way
> attempts to get the connectionFactory from JNDI if it's currently null) to
> ensure it's been initialized.
> 
> cheers, Sergey

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: Enabling reliable messaging programmatic use

Posted by Alessio Soldano <as...@redhat.com>.
  On 08/04/2010 11:42 AM, Sergey Beryozkin wrote:
> Hi Alessio
>
> On Wed, Aug 4, 2010 at 10:02 AM, Alessio Soldano<as...@redhat.com>wrote:
>
>>   Hi,
>> I'm working on a usecase requiring to enable WS-Reliable Messaging
>> programmatically. Basically I'm building up a Bus without using Spring and
>> I'd like to also have RM functionalities on.
>> That's actually possible, the only issue I'm having right now seems to be
>> that, after manually creating a RMManager instance and adding it to the bus,
>> the RM manager needs to be started/initialised. That's currently done (when
>> leaving the bus construction to the spring injection) through the void
>> initialise() and void registerListeners() methods in
>> org.apache.cxf.ws.rm.RMManager, which are @PostConstruct annotated.
>> Would you mind if I update those two methods making them public instead of
>> package protected to allow for programmatic creation and use of the
>> RMManager?
>>
> It should be ok IMHO.  RMManager is not meant to be used by regular users
> and it has few other public methods affecting it
>
well yes, I see users can create (through the constructor) and shutdown 
a RMManager instance if they want; that makes me think the 
initialization methods should also be allowed.

Regarding having multiple @PostConstruct annotated methods, as we said 
privately, the EE5 spec would require just one annotated method per 
class, however it seems Spring supports invoking multilple postconstruct 
methods. Not a real problem for me, I was just wondering...


Alessio

Re: Enabling reliable messaging programmatic use

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Alessio

On Wed, Aug 4, 2010 at 10:02 AM, Alessio Soldano <as...@redhat.com>wrote:

>  Hi,
> I'm working on a usecase requiring to enable WS-Reliable Messaging
> programmatically. Basically I'm building up a Bus without using Spring and
> I'd like to also have RM functionalities on.
> That's actually possible, the only issue I'm having right now seems to be
> that, after manually creating a RMManager instance and adding it to the bus,
> the RM manager needs to be started/initialised. That's currently done (when
> leaving the bus construction to the spring injection) through the void
> initialise() and void registerListeners() methods in
> org.apache.cxf.ws.rm.RMManager, which are @PostConstruct annotated.
> Would you mind if I update those two methods making them public instead of
> package protected to allow for programmatic creation and use of the
> RMManager?
>

It should be ok IMHO.  RMManager is not meant to be used by regular users
and it has few other public methods affecting it

cheers, Sergey


> Btw, shouldn't be disallowed to have 2 @PostConstruct annotated method in
> the same class?
> Cheers
> Alessio
>
> --
> Alessio Soldano
> Web Service Lead, JBoss
>
>

Enabling reliable messaging programmatic use

Posted by Alessio Soldano <as...@redhat.com>.
  Hi,
I'm working on a usecase requiring to enable WS-Reliable Messaging 
programmatically. Basically I'm building up a Bus without using Spring 
and I'd like to also have RM functionalities on.
That's actually possible, the only issue I'm having right now seems to 
be that, after manually creating a RMManager instance and adding it to 
the bus, the RM manager needs to be started/initialised. That's 
currently done (when leaving the bus construction to the spring 
injection) through the void initialise() and void registerListeners() 
methods in org.apache.cxf.ws.rm.RMManager, which are @PostConstruct 
annotated.
Would you mind if I update those two methods making them public instead 
of package protected to allow for programmatic creation and use of the 
RMManager?
Btw, shouldn't be disallowed to have 2 @PostConstruct annotated method 
in the same class?
Cheers
Alessio

-- 
Alessio Soldano
Web Service Lead, JBoss


Re: JMS transport strongly depends on Spring

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Christian

Indeed, I can see JMSDestination & JMSFactory importing a lot of Spring
classes, so my last commit was futile, I started working yesterday on the
test which I did not finish, but that work will need to be parked for now...

In fact, I was definitely blind yesterday, removed InitializingBean from
JMSConfiguration which still imports a bunch of other Spring classes. That
did fix the deployment issue per se to the container instance with no Spring
available but as Willem mentioned it did not make any sense in the end...

So I guess given that CXF JMS transport can not be used in non-Spring
deployments then a custom JMS transport would need to be created instead...

cheers, Sergey

On Tue, Aug 3, 2010 at 9:35 PM, Christian Schneider <chris@die-schneider.net
> wrote:

>  Hi Sergey,
>
> this does not really work as JmsTemplate and also MessageListener are used
> independently of the way you configure the jms endpoint.
> Sadly spring does not offer JmsTemplate and MessageListener in a packaging
> that is independent of the rest of spring. Still these classes really
> simplify
> jms handling so I think they are worth the dependency.
>
> Greetings
>
> Christian
>
>
> Am 03.08.2010 12:20, schrieb Sergey Beryozkin:
>
>  Hi Willem
>>
>> On Tue, Aug 3, 2010 at 11:15 AM, Willem Jiang<willem.jiang@gmail.com
>> >wrote:
>>
>>  Hi Sergey,
>>>
>>> CXF JMS transport is base on Spring JMS template now, so even you remove
>>> the spring dependency of JMSConfiguration. You can't let the
>>> cxf-jms-transport work without Spring :(.
>>>
>>> What's your plan about it ?
>>>
>>> My understanding that Spring JMS template is not strictly required for
>>> the
>>>
>> JMS transport to function ? In other words, a WSDL-first case with the
>> (old)
>> JMS configuration specified in the service/port should just work ?
>>
>> cheers, SErgey
>>
>>
>>  Willem
>>>
>>>
>>> Sergey Beryozkin wrote:
>>>
>>>  Hi
>>>>
>>>> I'm looking at the issue to do with the JMS transport strongly depending
>>>> on
>>>> Spring.
>>>> As it happens, JMSConfiguration implements (Spring) InitializingBean for
>>>> the
>>>> only purpose of verifying that
>>>> a connectionFactory has been set.
>>>>
>>>> This causes problems when doing non-Spring CXF deployments.
>>>> Generally, we should really try to keep the Spring related code in
>>>> .spring
>>>> subpackages as it will make it simpler for CXF be integrated with other
>>>> similar frameworks or deployed in containers providing the optional
>>>> Spring
>>>> support only.
>>>>
>>>> I'm planning just remove this dependency from the JMSConfiguration so
>>>> that
>>>> the JMS transport can be deployed without Spring with 2.2.10.
>>>> This is really the main property but if it's not been set for some
>>>> reason
>>>> in
>>>> the Spring case then it will be caught anyway. That said, I'll add
>>>> another
>>>> check
>>>> in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the
>>>> way
>>>> attempts to get the connectionFactory from JNDI if it's currently null)
>>>> to
>>>> ensure it's been initialized.
>>>>
>>>> cheers, Sergey
>>>>
>>>>
>>>>
> --
> ----
> http://www.liquid-reality.de
>
>

Re: JMS transport strongly depends on Spring

Posted by Christian Schneider <ch...@die-schneider.net>.
  Hi Sergey,

this does not really work as JmsTemplate and also MessageListener are 
used independently of the way you configure the jms endpoint.
Sadly spring does not offer JmsTemplate and MessageListener in a 
packaging that is independent of the rest of spring. Still these classes 
really simplify
jms handling so I think they are worth the dependency.

Greetings

Christian


Am 03.08.2010 12:20, schrieb Sergey Beryozkin:
> Hi Willem
>
> On Tue, Aug 3, 2010 at 11:15 AM, Willem Jiang<wi...@gmail.com>wrote:
>
>> Hi Sergey,
>>
>> CXF JMS transport is base on Spring JMS template now, so even you remove
>> the spring dependency of JMSConfiguration. You can't let the
>> cxf-jms-transport work without Spring :(.
>>
>> What's your plan about it ?
>>
>> My understanding that Spring JMS template is not strictly required for the
> JMS transport to function ? In other words, a WSDL-first case with the (old)
> JMS configuration specified in the service/port should just work ?
>
> cheers, SErgey
>
>
>> Willem
>>
>>
>> Sergey Beryozkin wrote:
>>
>>> Hi
>>>
>>> I'm looking at the issue to do with the JMS transport strongly depending
>>> on
>>> Spring.
>>> As it happens, JMSConfiguration implements (Spring) InitializingBean for
>>> the
>>> only purpose of verifying that
>>> a connectionFactory has been set.
>>>
>>> This causes problems when doing non-Spring CXF deployments.
>>> Generally, we should really try to keep the Spring related code in .spring
>>> subpackages as it will make it simpler for CXF be integrated with other
>>> similar frameworks or deployed in containers providing the optional Spring
>>> support only.
>>>
>>> I'm planning just remove this dependency from the JMSConfiguration so that
>>> the JMS transport can be deployed without Spring with 2.2.10.
>>> This is really the main property but if it's not been set for some reason
>>> in
>>> the Spring case then it will be caught anyway. That said, I'll add another
>>> check
>>> in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the way
>>> attempts to get the connectionFactory from JNDI if it's currently null) to
>>> ensure it's been initialized.
>>>
>>> cheers, Sergey
>>>
>>>

-- 
----
http://www.liquid-reality.de


Re: JMS transport strongly depends on Spring

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Willem

On Tue, Aug 3, 2010 at 11:15 AM, Willem Jiang <wi...@gmail.com>wrote:

> Hi Sergey,
>
> CXF JMS transport is base on Spring JMS template now, so even you remove
> the spring dependency of JMSConfiguration. You can't let the
> cxf-jms-transport work without Spring :(.
>
> What's your plan about it ?
>
> My understanding that Spring JMS template is not strictly required for the
JMS transport to function ? In other words, a WSDL-first case with the (old)
JMS configuration specified in the service/port should just work ?

cheers, SErgey


> Willem
>
>
> Sergey Beryozkin wrote:
>
>> Hi
>>
>> I'm looking at the issue to do with the JMS transport strongly depending
>> on
>> Spring.
>> As it happens, JMSConfiguration implements (Spring) InitializingBean for
>> the
>> only purpose of verifying that
>> a connectionFactory has been set.
>>
>> This causes problems when doing non-Spring CXF deployments.
>> Generally, we should really try to keep the Spring related code in .spring
>> subpackages as it will make it simpler for CXF be integrated with other
>> similar frameworks or deployed in containers providing the optional Spring
>> support only.
>>
>> I'm planning just remove this dependency from the JMSConfiguration so that
>> the JMS transport can be deployed without Spring with 2.2.10.
>> This is really the main property but if it's not been set for some reason
>> in
>> the Spring case then it will be caught anyway. That said, I'll add another
>> check
>> in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the way
>> attempts to get the connectionFactory from JNDI if it's currently null) to
>> ensure it's been initialized.
>>
>> cheers, Sergey
>>
>>
>

Re: JMS transport strongly depends on Spring

Posted by Willem Jiang <wi...@gmail.com>.
Hi Sergey,

CXF JMS transport is base on Spring JMS template now, so even you remove 
the spring dependency of JMSConfiguration. You can't let the 
cxf-jms-transport work without Spring :(.

What's your plan about it ?

Willem

Sergey Beryozkin wrote:
> Hi
> 
> I'm looking at the issue to do with the JMS transport strongly depending on
> Spring.
> As it happens, JMSConfiguration implements (Spring) InitializingBean for the
> only purpose of verifying that
> a connectionFactory has been set.
> 
> This causes problems when doing non-Spring CXF deployments.
> Generally, we should really try to keep the Spring related code in .spring
> subpackages as it will make it simpler for CXF be integrated with other
> similar frameworks or deployed in containers providing the optional Spring
> support only.
> 
> I'm planning just remove this dependency from the JMSConfiguration so that
> the JMS transport can be deployed without Spring with 2.2.10.
> This is really the main property but if it's not been set for some reason in
> the Spring case then it will be caught anyway. That said, I'll add another
> check
> in JMSConfiguration.getOrCreateWrappedConnectionFactory (which by the way
> attempts to get the connectionFactory from JNDI if it's currently null) to
> ensure it's been initialized.
> 
> cheers, Sergey
>