users@jax-ws.java.net

Re: how to annotate a Java SE based endpoint with MemberSubmissionAddressing?

From: Andreas Loew <Andreas.Loew_at_oracle.com>
Date: Sun, 26 Feb 2012 13:38:37 +0100

Hi Owen,

Am 25.02.2012 01:26, schrieb owen.hall_at_oracle.com:
> I'm want to use MemberSubmissionAddressing for a Java SE based
> endpoint. The annotation is in this Java SE package --
> com.sun.xml.internal.ws.developer. There is no way to import this
> package with Java 6 SE because it is implementation private. How are
> you supposed to use this annotation then? I thought there might be a
> builder in javax.xml.ws.wsaddressing but there isn't. I'm completely
> stumped as to how to use this type of addressing.

hmm - it looks to me like you are fooled by your IDE of choice (which
one is that? just tested and have no issues accessing this annotation
from NetBeans 7.1...) here and are running into an IDE-based restriction
which tries to lock you away from using so-called "internal" APIs.

I think you have two choices:

* Add a recent Metro version to your runtime environment and use Metro's
official class com.sun.xml.ws.developer.MemberSubmissionAddressing (note
that you can still use a Java SE-style "standalone" endpoint when doing so)
* Reconfigure your IDE somehow to make it allow you to access classes
from "internal" packages.

HTH & best regards,

Andreas

-- 
Andreas Loew | Senior Java Architect
ACS Principal Service Delivery Engineer
ORACLE Deutschland B.V. & Co. KG