Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: [swordfish-dev] Apache CXF

Title: Re: AW: [swordfish-dev] Apache CXF
Hi Chris,

In your version it seems like you have two instances of com.mm_karton.locationupdater.LocationUpdaterImpl:
  • one in the jax-ws endpoint ( id= locationUpdater)
  • one as separate bean (id = locationUpdaterServiceBean)

But only the last one will get the connection injected.

I think you have to reference the locationUpdaterServiceBean inside your JAX-WS endpoint:
...
    <jaxws:endpoint id="locationUpdater"
                    implementor="
#locationUpdaterServiceBean"
                    address="nmr:LocationUpdater">
    </jaxws:endpoint>
...

    <bean id="locationUpdaterServiceBean" class="com.mm_karton.locationupdater.LocationUpdaterImpl">
         <property name="connection" ref="connectionServiceHelper"/>
    </bean>
    
    <osgi:reference id="connectionServiceHelper" interface="com.mmkarton.mui.connection.IConnection"/>
...

Personally, I would recommend to stay with the current 0.9.1. unless you have severe problems.
We are currently facing networking problems when getting the PDE build through, but as we want to contribute to the Helios
build we want to provide a new (tagged) version soon.
For experimenting with your own builds I would recommend to install into a subfolder of the dropins folder of a separate Eclipse installation, because then cleanup is very simple: just delete the your swordfish subfolder and your Eclipse is clean again.

Hope it helps
  Jürgen


On 12/3/09 10:52, "Voller Christian" <Christian.Voller@xxxxxxxxxxxxx> wrote:

Jürgen,

Thank you for your quick answer! Yes, the LocationUpdater is the generated Swordfish provider!

I have tried your suggestion, but it does not work! When starting the framwork connection is injected, but not when invoking the service??!!
I have attached the source ;-)! Maybe you can find some time to do a short check??

 
I am using the 0.9.1 Version from september. Is it possible to already use the new tooling pluings? Are there any special bundles required? I have already compiled the new tooling plugins, but when copying it into eclipse the whole swordfish support is not available any more??!!

Jürgen, thanks a lot for your help !!!!!!
chris

 


Von: swordfish-dev-bounces@xxxxxxxxxxx [mailto:swordfish-dev-bounces@xxxxxxxxxxx] Im Auftrag von Jürgen Kindler
Gesendet: Do, 03.12.2009 09:08
An: Swordfish Developer Discussions
Betreff: Re: [swordfish-dev] Apache CXF

Hi Christian,

>From the code snippets you posted I am not sure if I fully understand what you are trying to do.
Is the LocationUpdater the generated Swordfish provider?

I would expect that you have to modify the META-INF/cxf-endpoint.xml in a way that adds the connection property to the generated service.
That could finally look similar to this:
      
  <osgi:reference id="connectionServiceHelper" interface="com.mmkarton.mui.dbconnection.IConnection"/>

 <spring:bean id="locationUpdaterServiceBean" class="com.mm_karton.locationupdater.LocationUpdaterImpl">
         <spring:property name="connection" ref="connectionServiceHelper"/>
    </spring:bean>  

I would propose that you set a breakpoint in the setConnection method of your service to see if & when a connection is injected.
Could it be that the osgi:reference
connectionServiceHelper is null???

Kind regards
  Jürgen

--
Jürgen Kindler
Senior Quality Engineer
Tel.:    +49 228-182 190-55
Fax:    +49 228-182 191 93
Juegen.kindler@xxxxxxxxxx

Wussten Sie schon? SOPERA <http://www.sopera.de/services-support/trainingsangebote/>  hat den Open Source Business Award 2009 <http://www.osbf.de/en/node/1466>  verliehen bekommen!  

SOPERA GmbH - Open Source SOA
Subscription Services, Support & Maintenance, Training,
Technical SOA Consulting & Customized Development
www.sopera.de <http://www.sopera.de/>
 
SOPERA GmbH · Geschäftsführer: Dr. Ricco Deutscher, Harald Weimer, Peter Spiegel
Sträßchensweg 10 · 53113 Bonn · Handelsregister: Bonn HRB 15336
Hohenlindnerstraße 11b · 85622 München
 

Vertraulichkeitshinweis: Diese Nachricht und jeder übermittelte Anhang beinhaltet vertrauliche Informationen und ist nur für die Personen oder das Unternehmen bestimmt, an welche sie tatsächlich gerichtet ist. Sollten Sie nicht der Bestimmungsempfänger sein, weisen wir Sie darauf hin, dass die Verbreitung, das (auch teilweise) Kopieren sowie der Gebrauch der empfangenen E-Mail und der darin enthaltenen Informationen gesetzlich verboten ist und gegebenenfalls Schadensersatzpflichten auslösen kann. Sollten Sie diese Nachricht aufgrund eines Übermittlungsfehlers erhalten haben, bitten wir Sie, den Sender unverzüglich hiervon in Kenntnis zu setzen.


Back to the top