Adding security info in DD using EJBGen

Hi,
I need to insert security information like security-role, method permission, etc.
in ejb-jar.xml and weblogic-ejb-jar.xml for the EJBs created using EJBGen. I tried
searching on bea newsgroups and googling but couldn't find anything on that. Does
EJBGen supports this or any new release of EJBGen is expected to do this ?
As a work around, I keep the copy of the DDs which have this info and after EJBGen
is finished, these DDs are copied over and the rest of the build process continues.
This is very restrictive approach as any change in EJB apart from bug fixing requires
some manual effort on these DDs.
Is there any other solution possible?
thx
-deepak

Oops.. I lied Deepak. I thought there wasn't
a way to do this but I was wrong. I should've
double checked before I replied
@ejbgen:method-permission-pattern
Where:Class
Applicable on:All
have a look at the docs for this tag. This will allow
you to do what you're looking to do.
-Michael
Michael Kovacs wrote:
deepak,
There's no way to do wildcard method permission mapping with ejbgen
currently. You have to explicitly map each method to a role.
Michael Kovacs
Senior Software Engineer
BEA Systems
"deepak" <[email protected]> wrote in message
news:3f93b041$[email protected]..
Falk <[email protected]> wrote:
EJBGen supports this.
Look into the tag reference.
FalkI have already searched that but couldn't find anything useful.
To be more precise I want to insert something like following inweblogic-ejb-jar.xml
<security-role-assignment>
<role-name>testRole</role-name>
<principal-name>testUser</principal-name>
</security-role-assignment>
and following things in ejb-jar.xml
<security-role>
<role-name>testRole</role-name>
</security-role>
<method-permission>
<role-name>testRole</role-name>
<method>
<ejb-name>myEJB</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
thx
-deepak

Similar Messages

  • WCF WSDL has no security info, but service uses SSL

    We need urgent help.
    Basically I am developing a Web Service client app. The service is written in .Net and uses SSL, but the WSDL does not contain any security info. We got one .pfx file and three .cer files. I followed [Importing PFX files into Java keystores|http://i-proving.ca/space/Technologies/JCE/Importing+PFX+files+into+Java+keystores] to convert the certificates to X509 format. Then I imported the PFX certificate into the keystore of my glassfish v3 (alias is s1as), the other three into the truststore. After passing the handshaking, our application gets "javax.xml.ws.soap.SOAPFaultException: No credentials found by which to authorize the user Missing authentication credentials [cert]". The serer side log shows that they received our HTTP requests and the HTTP header was good, however the SOAP envelope was not decrypted. How can I manually modify the WSDL file so that the NetBeans IDE will guide me to configure the security issue? I use NetBeans 6.8 and Glassfish v3.
    Thank you for your help in advance.
    Daniel

    have you try going into iTunes store on your computer and try download app there?
    it may say something.
    i got the same "Security Info Required" too but on iphone4S, so , now i cannot download any app too
    https://discussions.apple.com/thread/3922351

  • My children both have a ipod touch,  we just recently added a itunes card, and now when we go to purchase a app a screen pops up and says "security info"  but only has the option to click "submit" or recovery email address, which i do but no luck??

    everything was working fine until we added a new itunes card,  also, we are able to watch youtube, internet,  but just not able to download anything from the app store due to this "security info" page..  someone please help my children want to use their new itunes cards.. thank's

    Honesty just send it to Apple or take it into a Apple store, it may seem like a pain but its worth it plus you wouldnt want to damage it farther.

  • I've had this iPad computer thing for a few months now. I used to just put in my password when I downloaded an app or such like. Now it wants me to set up 4 further questions and answers "for added security". How can I return to the old system?

    I've had this iPad thing for a few months. It used to just ask me for my password, but now it is demanding I set up four questions and answers for
    "added security". I don't want to do that, I just want to carry on as I was but the machine is preventing any app downloads etc.
    Seems the stupid machine is in control.
    How do I get it to listen when I threaten it with a good thrashing and a one way trip to the garbage unless it does what I say?
    Thanks

    Chick3597 wrote:
    Regardless of apple updating something or another. I have no need for the additional questions and really don't want to allow them to bully me into compliance.
    You may have no need for additional but Apple does. They don't want your iTunes account to be hacked and then go complaining to them that their security procedures are not up to standards.
    Chick3597 wrote:
    So how can I continue in the good old fashioned way?
    Its really absurd to even ask this in light of the information that you have been given already. The "old fashioned" way is gone. It's Apple's store, Apples's rules and IMO - its a wise decision on Apple's part.
    You do not have to comply at all, but you will not be able to purchase from iTunes anymore, but nobody is going to force you to do something that you do not want to do.

  • Issue with updating Security Info on my Microsoft ID

    I am stuck in a vicious circle trying to sort an issue with my Microsoft account.
    I need to remove an old, defunct, email address and add a load of new security info however, depending on whether the date format on the page I keep being directed to is UK or US, either the updates haven’t happened or they won’t
    be happening until next month – which seems ridiculous!
    I’m trying to sign up for a Windows Store developer account to publish a Windows 8 app. I’m using my MSDN subscription to register for this (for free) but there is a step I can’t get past because it insists on sending a code to
    my old email address – to which I have no access. It is picking up this address from my Microsoft Account Security info – however, I updated this info weeks ago. This is the screen I see (I’ve blurred out some of it as it seemed foolish to publish all my security
    info J
    It says my old address will be removed on 03/04/2013 and my new info added on that same date. Does anyone know if this is UK date format 3<sup>rd</sup> April – in which case it’s a long wait or a US date 4<sup>th</sup>
    March in which case it didn’t happen? I’ve tried phoning 5000 and the Microsoft Customer support lines but neither of them have a clue where to start. They just keep asking me if I’ve forgotten my password – which I haven’t.
    Does anyone know how I can resolve this? My only option at the moment is to wait until 3<sup>rd</sup> of April and see if anything changes – which is not ideal.
    Cheers,
    Rob

    Hello,
    The Microsoft account forum has been retired and all account related questions must now be asked online
    here.
    Select the issue you need help with and fill out the requested details on the next page.
    You need to be signed in with a Microsoft account to access the form. If you are unable to access your primary account, you can use an alternate account (if you have one) or create a new one at
    https://signup.live.com
    You can read further information about blocked accounts
    here.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Added custom screen in PO using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Hi All,
    I have added custom screen with two z fields at item level using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST i can see my screen in tcodes ME21N , ME22N , ME23N but I am not able to save data.
    and also screen is coming in change mode even in ME23N .
    thanks.

    Hi,
    I have added two xfields at item level.
    This is the code i have added in zimplementation ZME_GUI_PO_CUST .
    IN Zimplementation ME_PROCESS_PO_CUST I have added code only in method FIELDSELECTION_ITEM . after doing this I can see only screens in ME21N, ME22N, ME23N but when enter data in zfields and trying to save it is giving me message no data has changed.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = subscreen1.
    the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    the program where the dynpro can be found
      ls_subscriber-program = 'SAPLYMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    a label can be defined
      ls_subscriber-label = text-001.
    the position within the tabstrib can be defined
      ls_subscriber-position = 4.
    the height of the screen can be defined here. Currently we suport two screen sizes:
    value <= 7 a sevel line subscreen
    value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
      ENDIF.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_MODEL.
      DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    system asks to transport data from the business logic into the view
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
    transport standard fields
          ls_mepoitem = l_item->get_data( ).
    transport customer fields
          CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
            EXPORTING
              im_ebeln = ls_mepoitem-ebeln
              im_ebelp = ls_mepoitem-ebelp
            IMPORTING
              ex_data  = ls_customer.
    store info for later use
          MOVE-CORRESPONDING ls_mepoitem TO dynp_data_pbo.
          MOVE ls_customer-badi_bsgru TO dynp_data_pbo-badi_bsgru.
          MOVE ls_customer-badi_afnam TO dynp_data_pbo-badi_afnam.
        WHEN OTHERS.
      ENDCASE.
    endif.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
    something has changed therefor we have to notify the framework
    to transport data to the model
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_MODEL.
    DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    data have to be transported to business logic
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
          ls_mepoitem = l_item->get_data( ).
    standard fields changed?
         IF dynp_data_pbo-matkl NE dynp_data_pai-matkl OR
            dynp_data_pbo-plifz NE dynp_data_pai-plifz OR
            dynp_data_pbo-webaz NE dynp_data_pai-webaz.
    update standard fields
           ls_mepoitem-matkl = dynp_data_pai-matkl.
           ls_mepoitem-plifz = dynp_data_pai-plifz.
           ls_mepoitem-webaz = dynp_data_pai-webaz.
            CALL METHOD l_item->set_data( ls_mepoitem ).
         ENDIF.
            CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
              EXPORTING
                im_ebeln = ls_mepoitem-ebeln
                im_ebelp = ls_mepoitem-ebelp
              IMPORTING
                ex_data  = ls_customer.
            ls_customer-badi_bsgru = dynp_data_pai-badi_bsgru.
            ls_customer-badi_afnam = dynp_data_pai-badi_afnam.
            CALL FUNCTION 'YMEPOBADIEX_SET_DATA'
              EXPORTING
                im_data = ls_customer.
         ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
    DATA: l_persistent TYPE mmpur_bool.
    CONSTANTS:
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    l_persistent = im_item->is_persistent( ).
    *IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_NUM."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_DES."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    *ENDIF.
    ENDIF.
    endmethod.

  • Hello, i have been sent the following email from apple: - You've taken the added security step and provided a rescue email address. Now all you need to do is verify that it belongs to you... and asks for apple login details, is this a genuine request?

    Hello, i have been sent the following email from apple, see below and asks for apple login details, is this a genuine request?
    Thank you.
    You’ve taken the added security step and provided a rescue email address. Now all you need to do is verify that it belongs to you.
    The rescue email address that you gave us is [email protected]
    Just click the link below to verify, sign in using your Apple ID and password, then follow the prompts.
    Verify Now >
    The rescue email address is dedicated to your security and allows Apple to get in touch if any account questions come up, such as the need to reset your password or change your security questions. As promised, Apple will never send any announcements or marketing messages to this address.
    When using Apple products and services, you’ll still sign in with your primary email address as your Apple ID.
    It’s about protecting your identity.
    Just so you know, Apple sends out an email whenever someone adds or changes a rescue email address associated with an existing Apple ID. If you received this email in error, don’t worry. It’s likely someone just mistyped their own email address when creating a new Apple ID.
    If you have questions or need help, visit the Apple ID Support site.
    Thanks again,
    Apple Support

    In that case, someone is trying to hi-jack your Apple ID.
    You should change your password immediately.

  • HT6170 I have forgotten the answers of security questions and the line of "forgot your answers? send reset security info email to ......."

    I have forgotten the answers of security questions and the line of "forgot your answers? send reset security info email to ......."
    how can i reset them?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.

  • Adding security to a web service then generating a proxy [SOLVED]

    Hi
    I generated a web service based on a very simple java program. I have deployed it to a local oc4j install and successfully called it from a proxy generated from jdev. I am using 10.1.3.3.0.
    I added security to the web service and regenerated the proxy. I wanted to see the difference in the SOAP messages sent to the web service. However the proxy does not seem to have changed to take account of the new security settings on the web service.
    The security options I set were:
    On main security dialog: Ticked the port and "Text Password"
    On Authentication: Ticked "Expect Username ti Authenticate"
    "Password Required"
    Password Type = "Plain Text"
    "Nonce Required in Token"
    "Creation Time Required in Token"
    I have 2 questions:
    1. How do I get the proxy to send SOAP messages that contain the security headers required to run the web service. Here is the main method from my proxy. I thought adding setUsername and setPassword would be the solution
        public static void main(String[] args) {
            try {
                gpn3.Getphonenum3SoapHttpPortClient myPort = new gpn3.Getphonenum3SoapHttpPortClient();
                System.out.println("calling " + myPort.getEndpoint());
                // Add your own code here
                myPort.setUsername("oc4jadmin");
                myPort.setPassword("welcome");           
                myPort.getNum("Lisa");
            } catch (Exception ex) {
                ex.printStackTrace();
    2. When the web service receives a user name and password what does it check them against? I assume the oc4jadmin user will be allowed access but how do I set up other users?
    many thanks
    paul schweiger
    Message was edited by:
    [email protected]

    I have figured this out now
    1. I needed to set the same security settings in my proxy as I did for my web service. I had assumed that the proxy would generate the necessary security settings from the web service.
    2. For some reason my web service application is using the system level jazn-data xml file
    oc4j_extended_101330/j2ee/home/config/system-jazn-data.xml
    This does include the oc4jadmin user and I am now able to use that account to call the web service. I also managed to add another user and use that account to call the web service successfully.
    Thanks for the help
    paul

  • I am trying to reset my security questions, however the reset security info to email address is not available to me

    I am trying to reset my security questions, however the send reset security info to email option is not available to me.
    Anyone know how I can fix this please.

    The option to send reset info only shows if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account. As you aren't getting the option then that implies that you don't have a rescue email address, and you won't be able to add one until you can answer 2 of your questions - so you will need to contact iTunes Support or Apple to get the questions reset : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • Forgot your answers? Send reset security info email ..... this link not see in my apple accound pls help

    Forgot your answers? Send reset security info email.  this link not see in my apple accound pls  help i am used another id is alredy located

    The send reset link will only show on your account if you already have a rescue email address (which is not the same thing as an alternate email address) set up on your account. If you haven't checked whether you have the link then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account, then click on 'Password and Security' on the left-hand side of that page and on the right-hand side of the screen (similar to the screenshot in the second post on this thread) you might see an option below the questions to send reset info to a rescue email address.
    If you don't get the link (you won't be able to add a rescue email address until you can answer 2 of your questions) then you will need to contact iTunes Support or Apple to get the questions reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • Which Security version is Safari using for a secure connection

    Now that SSL 3.0 can be compromised, how can I determine which security version Safari is using:
    TLS 1.2, TLS 1.1 or TLS 1.0.  Is there a way to force Safari to use at least TLS 1.0?

    Thanks for the enormous amount of information.
    Unlike Firefox, I do not see how to force Safari NOT to use SSL 3.0.
    If that info was in your response, I must have missed it.
    So once again: Is there a way to force Safari (using preferences) to use TLS 1.0 or higher?

  • How do I change the email that my security info is sent to

    How do I change the email that my security info is sent to

    Hi Hayleyallenxox,
    Thanks for using Apple Support Communities.  This article has instructions for changing your rescue email:
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Cheers,
    - Ari

  • I Forgot my answers and forget security info email

    Dear  Apple
    I Forgot my answers and forget security info email to r•••••@yahoo.com
    I forget what email i am used of my security answers  please help me for this problem 
    Best Regard
    Apple ID:[email protected]

    Try here > Rescue email address and how to reset Apple ID security questions
    If that doesn't work for you, contact Apple for assistance with your security questions > Contacting Apple for support and service

  • HT5312 I forgot the security questions and also the password for security info email of my apple id. Now I want to change the security info email with another. What Should I do?

    I forgot the security questions and also the password (and even account id, sequrity questions,... becouse I didn't use for a long time) for security info email of my apple id. Now I want to change the security info email with another. What Should I do?

    Even if I'm not despertate, creating a new Id is good Idia. But I think I must create another email address also since I can't use the first email adress as an apple id for the new one. That means I should check everyday the new email address also, that is making life complex. Better to try the 1st solution. Thank you very much.

Maybe you are looking for

  • Acrobat Pro XI not working at all in Windows7 64bit - tried everything

    I am using Acrobat Pro XI not working at all in Windows7 64bit - tried everything. About a month ago I built new computer. Acrobat worked fine. In last week it started not producing PDFs using Save As and would crash when processing scanned document.

  • Unable to connect netgear DG834G wireless to macbook

    Hi I am unable to connect the Netgear Router DG834G wireless to my Macbook. It works fine through the ethernet cable but when i try and connect wireless it says invalid password?

  • Spool request settings

    HI, I am executing one transaction in Background and that generates one spool report. however, the report rows and columns are cutoff  after so many lines and we end up not getting a full report. on the spool request attributes , SAP limits it is 65

  • G/L account problem in rebates

    Dear All, My billing docs are not getting posted in FI. When i go for analysis it says- for rebate condition type BO02- the second G/L ACCOUNT IS MISSING. Plz do the needful. Regards, Pankaj Jain

  • Academic Photoshop CS Extended download languages (Japan)

    Why is Adobe Japan's Academic Photoshop CS Extended only available in the Japanese language? Adobe is an international company with Photoshop available in almost 2 dozen languages. There should be a choice of language for Academic versions no matter