ejb@glassfish.java.net

Re: Authentication type annotation

From: Kenneth Clark <kenneth_at_rabiddog.co.za>
Date: Mon, 12 Feb 2007 15:44:24 +0200

Unfortunately no, it doesn't

Effectively what I am looking for is something that will generate this

  <ejb>
   <ejb-name>TestClass</ejb-name>
   <webservice-endpoint>
    <port-component-name>portComponent</port-component-name>
    <login-config>
     <auth-method>BASIC</auth-method>
    </login-config>
   </webservice-endpoint>
  </ejb>

I have just built an engine that does this via

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface AuthType {
    String ejbName();
    String portComponentName();
    String authMethod();
}

and then I specify the class to grab it from kinda like the wsgen

Kenneth Clark
Developer / Analyst

Rabid Dog Laboratories ™
Putting the art back into development

*tel:* +27 11 475 7409
*mobile:* +27 82 500 5090
*e-mail:* kenneth_at_rabiddog.co.za
*website:* http://www.rabiddog.co.za/


Kem Elbrader wrote:
> Kenneth,
>
> Consider the link below and see if it contains what you are looking for.
> http://java.sun.com/javaee/5/docs/tutorial/doc/Security-JavaEE2.html#wp556542
>
>
>
> On 2/12/07, Kenneth Clark <kenneth_at_rabiddog.co.za> wrote:
>>
>> Hi all
>>
>> Is there an Authentication type annotation? I am looking at my
>> sun-ejb-jar.xml file and it is getting uncontrollable. I am about to
>> write
>> my own engine, but thought I would ask first
>>
>> Thanks
>>
>> --
>> Kenneth Clark
>> Developer / Analyst
>>
>> Rabid Dog Laboratories ™
>> Putting the art back into development
>>
>> tel: +27 11 475 7409
>> mobile: +27 82 500 5090
>> e-mail: kenneth_at_rabiddog.co.za
>> website: http://www.rabiddog.co.za/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>
>
>
>