Sure, I will. I've just verified again that a constructor is hit twice in my 
mainline/trunk snapshot...

Thanks, Sergey

----- Original Message ----- From: "Daniel Kulp" <[EMAIL PROTECTED]>
To: "Sergey Beryozkin" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Monday, October 15, 2007 6:29 PM
Subject: Re: Destination factory problem



Hmm... must already be fixed in my working copy with all the changed I've made. I put a breakpoint in the CXFBusImpl constructor and only a single Bus is created when I run the test. Can you retry once I commit later today?

Dan

On Monday 15 October 2007, Sergey Beryozkin wrote:
Hi Dan

I was messing with systemtests/http_jetty/EngineLifecycleTest, by
modifying the existing configuration so that a single configuration
file is used, but debugging the existing test (testServerUpDownUp)
shows that two buses are created with only a single endpoint being
configured in the config file

Cheers, Sergey

----- Original Message -----
From: "Daniel Kulp" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Sergey Beryozkin" <[EMAIL PROTECTED]>
Sent: Monday, October 15, 2007 6:08 PM
Subject: Re: Destination factory problem

> Sergey,
>
> Can you send me a simple testcase?   I'm digging into some spring
> stuff now (actually fixing CXF-922) so I could dig into that as
> well.
>
> Dan
>
> On Monday 15 October 2007, Sergey Beryozkin wrote:
>> Hi Dan
>>
>> It made the trick, endpoints are registered all right now. The only
>> problem is that they're registered twice, per every bus created not
>> sure how it works, probably the runtime recognizes that a given
>> endpoint has already been registered and ignores the second
>> registration attempt.
>>
>> Actually, I've just left a single endpoint there and I still see
>> two buses created, with DestinationFactoryManager being created
>> twice two, once per bus, created every time.
>>
>> Thanks, Sergey
>>
>>
>> ----- Original Message -----
>> From: "Daniel Kulp" <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Cc: "Sergey Beryozkin" <[EMAIL PROTECTED]>
>> Sent: Monday, October 15, 2007 5:25 PM
>> Subject: Re: Destination factory problem
>>
>> > Sergey,
>> >
>> > Not sure on the two bus thing, but in your case, you aren't
>> > importing an extension that has a destination.  The
>> > cxf-extension-http doesn't define a destination, just a conduit.
>> > Add the cxf-extension-http-jetty to get the jetty based http
>> > destination.
>> >
>> > <import resource="classpath:META-INF/cxf/cxf-extension-http.xml"
>> > /> <import
>> > resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
>> >
>> > Dan
>> >
>> > On Monday 15 October 2007, Sergey Beryozkin wrote:
>> >> Hi
>> >>
>> >> I have this "Np DestinationFactory found" problem when running a
>> >> system test. I've checked archives, the suggested solutions are
>> >> all about doing some programmatic bus setup, etc...
>> >> Unfortunately it's not something I can do in my scenario.
>> >>
>> >> Here's my configuration :
>> >>
>> >> <beans xmlns:web="http://java.sun.com/xml/ns/j2ee";
>> >> xmlns:sunjaxws="http://java.sun.com/xml/ns/jax-ws/ri/runtime";
>> >> xmlns:xalan="http://xml.apache.org/xslt";
>> >> xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configu
>> >>rat ion " xmlns:soap="http://cxf.apache.org/bindings/soap";
>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> >> xmlns:jaxws="http://cxf.apache.org/jaxws";
>> >> xmlns="http://www.springframework.org/schema/beans";
>> >> xsi:schemaLocation="http://www.springframework.org/schema/beans
>> >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>> >> http://cxf.apache.org/jaxws
>> >> http://cxf.apache.org/schemas/jaxws.xsd>
>> >>
>> >> <import resource="classpath:META-INF/cxf/cxf.xml" />
>> >>
>> >> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"
>> >> />
>> >>
>> >> <import resource="classpath:META-INF/cxf/cxf-extension-http.xml"
>> >> />
>> >>
>> >> <jaxws:endpoint id="1"...other attributes omiited for brevity/ >
>> >>
>> >> <jaxws:endpoint id="2"...other attributes omiited for brevity>
>> >>
>> >> </beans>
>> >>
>> >> In debug mode I'm seeing *two* buses created, one bus has a
>> >> DestinationFactoryManagerImpl initialized properly,
>> >>
>> >> for the second bus, no DestinationFactoryManagerImpl is
>> >> initilized (no register() method is called on it) and hence at
>> >> the service init time an exception is thrown....
>> >>
>> >> Can someone please show how one can configure two endpoints such
>> >> that a single bus is created...
>> >>
>> >> Thanks, Sergey
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> ----------------------------
>> >> IONA Technologies PLC (registered in Ireland)
>> >> Registered Number: 171387
>> >> Registered Address: The IONA Building, Shelbourne Road, Dublin
>> >> 4, Ireland
>> >
>> > --
>> > J. Daniel Kulp
>> > Principal Engineer
>> > IONA
>> > P: 781-902-8727    C: 508-380-7194
>> > [EMAIL PROTECTED]
>> > http://www.dankulp.com/blog
>>
>> ----------------------------
>> IONA Technologies PLC (registered in Ireland)
>> Registered Number: 171387
>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
>> Ireland
>
> --
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727    C: 508-380-7194
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
Ireland



--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to