On 4/25/13 10:20 AM, Subash Chaturanga wrote:
Please note: the tricky part is I need to do both my stuff(inserting to uddi registry and inserting to X ) during the particular juddi call. (relevant JAXWS call for service insertion).

** So consider as when adding a service to uddi, my service insertion to X should happen before insertion to uddi registry. Appreciate any one possible solution for me to achieve this.
1. Before you go down the Interceptor path I guess the question is why you can't call into system X before calling into jUDDI from your client code.

2. If you really need to call into system X from a JPA interceptor, then you should try find an example program demonstrating interceptors to learn about how an interceptor works. Are you planning on using hibernate or openjpa? Maybe you start here: http://docs.jboss.org/hibernate/entitymanager/3.5/reference/en/html/listeners.html, and look into the @PrePersist annotation ( which I think you can also set in the persistence.xml) Once you got that to work we can help you with which classes you would want to add interceptor to.

3. If you make a good case for why you need this interception business, then we might also be able to add hooks right into the service layer; i.e. you'd be able to configure an endpoint and receive a call with the serialized XML on every SaveService call.

--Kurt


Reply via email to