[Users] abstractcomponent=null!!!

lolo [via Petals ESB] ml-node+3206011-1675091745-385891 at n3.nabble.com
Thu Jul 28 09:47:55 CEST 2011



Bonjour,
voici le code de mon external listeners:

public class RestfulExternalListener extends AbstractExternalListener {		

@Context
	UriInfo uriInfo;
	@POST
	@Path("/1")
	public Response create(StreamSource streamSource)throws
TransformerException, IOException,
	ParserConfigurationException, SAXException, MessagingException,
PEtALSCDKException {

		RestfulBindingComponent restfulBindingComponent = ComponentController
		.getRestfulBindingComponent(*this.getComponent()*);
		URI u = uriInfo.getAbsolutePathBuilder().build();
		Marshaller marshaller = restfulBindingComponent.getMarshaller();
		.
                .
                .
	}
}


et voici la classe du Componentcontroller:

public class ComponentController {

	public final static RestfulBindingComponent getRestfulBindingComponent(
			AbstractComponent abstractComponent) {
		RestfulBindingComponent restfulBindingComponent = null;
		if (abstractComponent instanceof RestfulBindingComponent) {
			restfulBindingComponent = (RestfulBindingComponent) abstractComponent;
		}
		return restfulBindingComponent;
	}
}

En fait je veux récupérer le "restfulBindingComponent" pour pouvoir accéder
au Marshaller (j'ai définit la méthode getMarshaller dans le
"RestfulBindingComponent " )

_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/abstractcomponent-null-tp3203747p3206011.html
To start a new topic under Users (get help, provide help), email ml-node+2681628-1333396262-385891 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110728/96c7ca52/attachment.htm>


More information about the Users mailing list