How to access LoginModule from EJB?

Hello,
I have developed a custom login module and deploying my EJB by defining to use this custom login module.
Here is what I defined in orion-application.xml
   <jazn-loginconfig>
      <application>
         <name>CVTApplication</name>
            <login-modules>
               <login-module>
                  <class>cvt.security.SampleLoginModule</class>
                  <control-flag>required</control-flag>
                  <options>
                     <option>
                        <name>debug</name>
                        <value>true</value>
                     </option>
                  </options>
               </login-module>
            </login-modules>
      </application>
   </jazn-loginconfig>
...How can I call any of the methods that are defined in the custom login module within my EJB? How can I access to the custom login module class from EJB?
Thanks,
Mustafa

Simon McQueen <[email protected]> writes:
Then presumably to use SSL you would do
NameService=iioploc://localhost:7002/NameService (assuming default ports) ?Since we don't support CSIv2 as yet I don't think SSL will work with a
C++ orb client. I forget how we specify SSL in a java client for IIOP,
but yes I think its through the connection rather than some iiops URL.
The INS stuff isn't supported by the 1.3 Sun SDK CosNaming stuff tho'. Only IOR,
iiop and iiopname as PROVIDER_URL values can be used with
com.sun.jndi.cosnaming.CNCtxFactory for bootstrapping the Sun ORB as far as IRight, and even those generate an old-style INIT bootstrap
request. The 1.3 stuff is very old and incorrect, I haven't checked
whether 1.4 supports corbaloc, it certainly supports GIOP 1.2.
But even so we still support those kind of requests, they key is that
they are interoperable - you can use the same URL between restarts of
the server, with host2ior you cannot.
know. I think the WLS RMI/iiop docs and examples still recommend using this forUnfortunately the RMI-IIOP doc rewrite hasn't happened as yet. We
continue to support the JDK context (because supporting a pure JDK
client is a worthy goal for customers who want thin clients) but you
will get superior results using WLInitialContextFactory and an
appropriate IIOP URL (including corbaloc support and security in
SP1). In addition you should never use the Sun context factory on a
server, that will case the JDK Orb to be used instead of our RMI-IIOP
runtime.
client access (?). Clients will still have to use host2iior to get the two IOR s
if they want to do SSL I suppose. Or is it possible to do iiop://localhost:7002
?I will check.
andy

Similar Messages

  • From my iPad I can print wirelessly in my office, but how do I print remotely via the web through my HP ePrint printer.  It is set up with an email address but i don't know how to access it from my iPad.

    I can print wirelessly in my office from my iPad, but how do I print remotely via the web to my HP ePrint printer.  The printer is set up with an email access address but I don't know how to access it from my iPad.

    Read through this for some information on how to do this:
    http://www8.hp.com/us/en/support-topics/mobile-printing/how-to-print-mobile-devi ces-ipad-iphone.html

  • How to access symbol from different stage

    Hi everyone,
    I'm really new at Edge, so I still have a lot to learn and I need your help with something..
    I want to know how to access a symbol from another stage, here's what I've and what I want to do..
    I've the main index page with symbol named "content", in content I load other composition (page). called "page2".
    all I want to do is when I click a symbol "XX" inside "page2". The "content" symbol loads other composition called "page3".
    I don't know how to access "Content" from "page2", so I could load "page3" ..  that's it
    I feel like it's simple, but I just couldn't know how to do it, I',m sorry for bothering you for such a question, but I've searched a lot and I got nothing.
    Thanks
    I thought I could use something like this
    var comp = Edge.getComposition("EDGE-638329");  
    var stage = comp.getStage(); 
    var symp= comp.stage.getSymbol("content");
    EC.loadComposition("assets/units/stage1/s1_3/s1_3.html",symp);
    but it's still not working, could someone please tell me what I'm doing wrong?

    I have multiple compositions, where I need to go from one to another.
    I use click scripts in an element to do this, using identical pages with different animations on each page.:
    Click script:
    AdobeEdge.goLoc(url); //url is the URL of an identical new html page with a different animation
    Then I have a custom .js page that I use that has the function:
    AdobeEdge.goLoc = function(url) {
    location=url;
    Peter Small

  • I created a folder from my camera roll and shared with my icloud acct, can't figure out how to access it from my computer?

    I created a folder from my camera roll and shared with my icloud acct, can't figure out how to access it from my computer? I log onto icloud and can't find anywhere where "shared" photos are..

    You need Mountain Lion (10.8.2 or higher) and iPhoto '11 (9.4 or higher) or Aperture 3.4 to get shared photo streams on Mac.
    Another option to transfer them is to either import them to iPhoto using your usb cable, as explained here:http://support.apple.com/kb/HT4083, or to us an app like PhotoSync to transfer them to your Mac over your wifi.  (PhotoSync will also transfer albums, not just photos from the camera roll.)

  • Problem in accessing IWDPDFObject from EJB(Webservice)

    Hi All,
    I want to use "<b>IWDPDFObject</b>" api for creating pdfs dynamically, this has to be used in a EJB module project which is converted in webservice. In the EJBModule project i have added the reference locally in the build path but how do I give the runtime reference?.
    In the "<b>application-j2ee-engine.xml</b>" of the Enterprise application project i have added the reference of "<b>tc/wd/webdynpro</b>" which has that <b>"_webdynpro_pdfobject.jar</b>". Still it doesn't work.
    Is there any limitation on accessing webdynpro jar from EJB(webservice)?.
    Kindly help.
    Regards,
    Vishal

    Dear LN,
    I did which you said.But i met this error:
    javax.ejb.EJBException: Exception raised from invocation of public boolean com.yh0571.ejb.PDFObjectBean.createPdf(java.lang.String,java.lang.String,java.lang.String,java.lang.String) method on bean instance com.yh0571.ejb.PDFObjectBean@62843ed2 for bean sap.com/PDF_EJB_EARannotation|PDF_EJB.jarannotation|PDFObjectBean; nested exception is: javax.ejb.EJBException
    I used EJB3 in  SAP NetWeaver CE 7.1
    Regards
    Jiandong

  • How can i Migrate from EJB Application to Hibernate

    Hi ,
    i have developed web services using EJBs. can i create web services for my hybernate application. can anybody please help me for that??
    please advice me how can i Migrate from my EJB Apps to Hibernate.
    thanks & Regards,
    nagalaxmi

    Hi
    Check this link
    http://www.devx.com/Java/Article/27954
    Sameer

  • How to pull data from EJB and present them using Swing ?

    Hi all,
    I've written stateful session bean which connect to Oracle database, and now I must write stand alone client application using Swing.
    The client app must present the data and then let users add,delete and edit data and it must be flexible enough to iterate through the records.
    The swing components can be JTextField,JTable etc.
    How to pull the data from EJB and present them to users with the most efficient network trip ?
    Thanks in advance
    Setya

    Thanks,
    Since the whole app originally was client-server app and I want to make it more scalable, so I decide to separate business logic in the EJB but I also want to keep the performance and the userfriendliness of the original user interface, and I want to continue using Swing as the original user interface does.
    I've read about using Rowset and I need some opinions about this from you guys who already have some experience with it.
    Any suggestions would be greatly appreciated.
    Thanks
    Setya

  • OWSM Policy - how to access subject from within protected service

    I am setting up a new instance of SOA Suite 11g for integration purposes at my organization. I am planning to use predefined WSM policies to protect the services (see http://download.oracle.com/docs/cd/E12839_01/web.1111/b32511/policies.htm).
    Most communication is server-to-server (e.g. HR sending data to CRM), so it would make sense to use something like X.509 (i.e. oracle/wss11_x509_token_with_message_protection_service_policy). However, I have a requirement that the underlying services (BPEL processes, for example), must know the subject (i.e. the server) that sent the message. For example, did this incoming message come from the HR system or the CRM system. This is used internally by the BPEL process for audit logs and other things.
    We also use OAM, so I will likely eventually use the oracle/wss_oam_token_service_policy to verify ObssoCookie values. In those cases, the underlying Java service or BPEL process will need to have access to the username of the authenticated user.
    I've searched and searched the documentation, and I cannot find any instructions about how to access details about the authenticated subject (such as username, roles, or X.509 properties) from within the protected service, whether it be a Java-based service, a BPEL process, or anything else.
    I did find some information about how to read SOAP header values from within Oracle BPEL processes (see http://chintanblog.blogspot.com/2007/12/insertextract-soap-headers-in-bpel-it.html). However, this looks like it will only work if I use the WSS UsernameToken policy (e.g. oracle/wss_username_token_service_policy), since that is the only policy where the actual subject identifier (username) is specified in a SOAP header.
    Do the other policies (X.509, SAML, and OAM) provide a mechanism to convey properties of the authenticated subject to the underlying service? If so, where is this documented? Thanks much!
    Sincerely,
    Nathan Kopp

    Is it wrong question or wrong thing to do?
    Let's make it a little bit easier/better/worse:
    How can I change policy permissions at runtime?

  • How to access data from node of other view into node of diff view?

    Hi all,
                  My requirement is that I have account defined in 'CLEAR_HEAD' component , view is 'CLEAR_HEAD/ClearAccountsEF'
    context node is 'TARGETVALUE' and attribute is 'ACCOUNT1'. I need to access this account information in the same component but in another view 'CLEAR_HEAD/ClearAddressEL' and the context node is 'DEPLIST' and attribute is 'RADIO1'. I have one custom controller 'CLEAR_HEAD/CuCoHead'  already defined in this component. I checked the above 'TARGETVALUE' node but it is not bind to any Custom controller. And I also checked the above pre-defined custom controller  'CLEAR_HEAD/CuCoHead'  and the context node in this Custom controller is different from those of the above context nodes and the only one context node defined in this custom controller  'CLEAR_HEAD/CuCoHead' is 'LISTNODE'.
    My quesitons are
    1. How to bind the above context node(TARGETVALUE) to the custom controller. Can I bind it to the above existing custom controller  'CLEAR_HEAD/CuCoHead'  , if so then how can I do since the above custom controller doesn't contain this context node(TARGETVALUE) and it contains only  the context node 'LISTNODE'. If I can use the above existing Custom Controller then can I directly do binding by right clicking the context node(TARGETVALUE) -> Create binding. Then what should be the value in Target Contex Node?
    2. Do I need to create another custom controller If so then can I directly follow the steps defined in this link '/people/vikash.krishna/blog/2009/12/28/crm-70-how-to--5d-custom-controller-and-binding-of-context-nodes' ? If so then what should be the Model node and Bol Entity name?
    I appreciate your help..
    Thanks,
    Chinnu.

    HI Chinnu, <br />
    <br />
    Approach 1: <br />
    Bind the context node view1  TARGETVALUE with Component controller.<br />
    and in View2 <br />
    data lr_comp_controller type ref to X----component controller<br />
    lr_entity TYPE REF TO cl_crm_bol_entity.<br />
    lr_comp_controller ?= me-&gt;comp_controller.<br />
    <br />
    lr_entity ?= lr_comp_controller-&gt;typed_context-&gt;Y-&gt;collection_wrapper-&gt;get_current( ). Y---CONTExt node in view1.<br />
    <br />
    Approach 2: <br />
    Declare a static attribute in the View controller of first view.<br />
    Read the attribute D1 value from DO_PREPARE_OUTPUT of first View and pass it to the Static sttribute.<br />
    In your 2nd view u can read this Static Atribute and use it.<br />
    Static Attribute u need to call as follows . Z********IMPL(Implemantation Class)=&gt;ATTR1<br />
    <br />
    Approach 3: <br />
    Creae a custom controller with the same context node used in view 1. <br />
    Bound the custom controller context node to view 1 context node.<br />
    <br />
    Now in view 2, get the custome controller and read data from it.<br />
    <p />
    <br />
    View1 context node: BTADMINH<br />
    <p />
    Custom controller: BT115QH_SLSQ/AdminH   context node: BTADMINH_CUCO<br />
    <p />
    In view 1 context class (CTXT class), go to CREATE_BTADMINH method and append the below code to bind both the context nodes,<br />
    <pre class="jive-pre"><code class="jive-code jive-java">* bind to custom controller
       owner-&gt;do_context_node_binding(
                iv_controller_type = CL_BSP_WD_CONTROLLER=&gt;CO_TYPE_CUSTOM
                iv_name =
                <font color="navy">'BT115QH_SLSQ/AdminH'</font>                         <font color="red">&quot;#EC NOTEXT</font>
                iv_target_node_name = <font color="navy">'BTADMINH_CUCO'</font>
                iv_node_2_bind = BTADMINH ).
    Now in view 2 get the custom controller using the below code,
    Data: lr_cuco type ref to &lt;custom controller class&gt;.
    lr_cuco   ?= me-&gt;get_custom_controller( controller_id = <font color="navy">'BT115QH_SLSQ/AdminH'</font> ).
    lr_entity     = lr_cuco-&gt;typed_context-&gt;BTADMINHCUCO-&gt;collection_wrapper-&gt;get_current( ).
    </code></pre> <br />
    <p />
    If you are just reading a attribute value  from view1, then approach 2 shud b easy one. <br />
    Approach 1 & 3, more or less the same, except we are using component controller vs custom controller. These approaches holds good when the data required to be accessed/updated from either views. <br />
    <br />
    Coming to your specific scenario, I think there is already a context node available in the compoenent controller TARGETBP, which can have the required data for you. Please look into that. <br />
    <br />
    Cheers, Satish<br />
    Edited by: Satish Reddy Palyam on Aug 13, 2011 12:50 PM

  • Can't remember how to access voicemail from a landline or phone outside the verizon network?

    Can't remember how to access voice mail from a land line or a mobile phone outside the Verizon network?

    Dial your full 10-digit number, then hit the * key whenyour voicemail answers.  It will ask for your password and you will be connected to your voicemail as if you were on your phone.

  • How to access server from TOAD

    i have a doubt as to how to access a Database server from TOAD. If, we have to access from SQLplus command prompt, we define the entry in tnsnames.ora file. But, how to access a Database server from TOAD. I hope, my question is clear. Please, help in solving the doubt.
    regards.

    thanks, for your answer. Does it mean that I need to install oracle to get tnsnames.ora?
    Also, my scenario is that I need to connect using TOAD to oracle which is there on a system over a remote LAN. My entry in tnsnames.ora has to match the local LAN IP which is specified in the listener.ora but If I put the local LAN IP of the remote LAN in my tnsnames.ora, it will not make much sense. The entry in
    tnsnames.ora is
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.26)(PORT = 1521))
    But, I have access to the system like public IP 192.29.212.156.

  • How to access icloud from outside computer

    I want to access my icloud mail from devices NOT my own such as work computer, travel in hotel, other persons computer.  I keep getting this message that tells me to LEARN more and gives all sorts of DOWNLOADING instructions to that computer. ENDLESS loop.   I am not downloading or configuring a public or work computer nor is it my device.   I JUST WANT TO ACCESS MY EMAIL REMOTELY LIKE I DID FOR YEARS ON MAC.MAIL AND CAN DO FROM ANYWHERE ANYTIME WITH OTHER WEB MAILS.  THIS IS SO FRUSTRATING.

    Thanks Roger,   Today I signed up to the apple support communities specifically so I could thank you.   And to publically complain about what Apple did and did not do when then terminated "mobile me" in June 2012.   My short story.... prior to June 2012 I had access to my personal MAC G4 computer, a family member's old IPAD and my work PC.  I tired to migrate to I-Cloud but that was not possible without buying a new home computer.  So next best option would be to use a browser on either my G4, or the IPAD or the PC at work to access this new  "icloud" server, or whatever it is.  I've been a mac user since the very first macs came to the market so I'm not a novice.  I spent many hours googling and searching Mac support to find out how to access my email after they turned off mobile me.  I did not find a way, so I recently bought a mac mini to hopefully get all my new and historical email back and working again.   Yes, I did get back on email again using the  mac mini I had to buy, so apple did OK there. 
    But I find it negelent, perhaps deceptive, that Apple did not provide simple instructions like you did to the mobile me users that Apple effectively kicked off their email service, which I paid  for, for many years.  That's very much like stealing in my opinion....Apple couldn't send me an email to the Icloud link like you provided, with instruction on how to get to my email?  Rather they kept insisting that I migrate to icloud, and insisting that I had to meet computer operating system requirements that my old G4 could not meet.  In my opinion they were not honest.  They effectively created the preception that anyone using an older mac had to buy a new one and I think they knew what they were doing.  I heard someone say that ethics cannot be taught, I agree.  Thanks again Roger, I can now access my Mac Mail from alternative locations.

  • How to access playlist from pc that died

    I can't access the hard drive on my old pc to pull my playlist. My ipod has my playlist, but i don't want to hook it up to my new pc because i fear it will wipe all my songs off my ipod. Best Buy was able to pull all my files off my hard drive, but i can't find any itunes files.
    Any ideas how to use my ipod to import my playlist to itunes on my new pc? Is there a way to back up my ipod first to make sure i don't lose all my music?
    Thank you.

    Copy from iPod to PC
    It is important not to allow your iPod to sync with an empty library. If it is set to synchronise automatically you will get a message saying your iPod is linked to a different library and asking if you want to sync – it is important to press cancel as syncing with an empty library erases all music from your iPod.
    You can also prevent auto sync by holding down shift & ctrl as you plug in your iPod and keeping the keys held down until the iPod appears in iTunes.
    Once you are connected, you need to set your iPod to manage music manually.
    http://support.apple.com/kb/HT1535
    If you have an iPod with iTunes Store purchases on it, you can use it to copy your purchases to other authorized computers.
    http://support.apple.com/kb/HT1848
    However this is not allowed for other music.
    This MacMuse tip tells you how to copy music from your iPod using Windows Explorer, but it is a bit fiddly:
    http://discussions.apple.com/messageview.jspa?messageID=797432
    Otherwise you can use third party software to manage the transfer, there are a variety of programs out there, some free and some that will copy ratings and counts as well as the music files. Here is a selection, check them out and see what suits you.
    http://www.yamipod.com/main/modules/home/
    http://www.floola.com/modules/wiwimod/index.php?page=WiwiHome
    http://www.ipodsoft.com/site/pmwiki.php?n=igadget.Homepage
    http://www.copytrans.net/
    For a more complete list see:
    http://en.wikipedia.org/wiki/Comparisonof_iPodmanagers
    There is a useful background article on copying from your iPod here:
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/

  • How to access variables from other class

        public boolean inIn(Person p)
            if  (name == p.name && natInsceNo == p.natInsceNo && dateOfBirth == p.dateOfBirth)
                 return true;
            else
                 return false;
        }//returns true if Person with same name/natInsceNo/dateOfBirth as phello,
    here am trying to compare the existing object with another object.
    could you please tell me how to access the variables of other class because i meet this error?
    name cannot be resolved!
    thank you!

    public class Person
        protected String name; 
        protected char gender;      //protected attributes are visible in the subclass
        protected int dateOfBirth;
        protected String address;
        protected String natInsceNo;
        protected String phoneNo;
        protected static int counter;//class variable
    //Constractor Starts, (returns a new object, may set an object's initial state)
    public Person(String nme,String addr, char sex, int howOld, String ins,String phone)
        dateOfBirth = howOld;
        gender = sex;
        name = nme;
        address = addr;
        natInsceNo = ins;
        phoneNo = phone;
        counter++;
    public class Store
        //Declaration of variables
        private Person[] list;
        private int count;
        private int maxSize;
    //constructor starts
        public Store(int max)
             list = new Person[max];//size array with parameters
             maxSize = max;
             count = 0;
        }//end of store
    //constructor ends
    //accessor starts  
        public boolean inIn(Person p)
           return (name == p.name && address == p.address && natInsceNo == p.natInsceNo);
        }//returns true if Person with same name/natInsceNo/dateOfBirth as phope it helps now!

  • How to access function from Top Class to Function of class that contain the the member variable of TopClass

    Dear All,
    is there any way that i can access function or member variable of aggregate class.
    i am working in Visual Studio 2010 
    and making win32 dll with mfc Support. i am new in dll system. just learning and doing.
    previously all in exe and i am working this like
    CTestDoc*pDoc = (CTestDoc*)GetTestDocument();
    somevar = pDoc->xDoc.mVar.GetValue (); 
    now i am trying to put all in dll. so getting problem 
    will i get help on this. thanks in advance.
    below code is just an example.
    for example
    // dll 1
    class aaa : public BaseClass
    public:
    int Index;
    char *cName;
    void doSometing()
    if (GetCurBColor() == 125) // how to access GetCurBColor function of the
    color = GetCurBColor();
    long color;
    // dll 2
    class bbb :public BaseClass
    public:
    int Index;
    long lSize;
    long color;
    void doSometing();
    // dll 3
    class DDD
    public:
    vector <aaa> va;
    vector <bbb> vb;
    int cura;
    int curb;
    long GetCurBColor ()
    return vb[curb].color;
    };// MFC doc/view support
    /// in exe in document
    class inExe
    public:
    DDD d;
    void addB()
    { bbb bb;
    bb.color = 152;
    d.vb.push_back(bb);
    bb.color = 122;
    d.vb.push_back(bb);
    bb.color = 1232;
    d.vb.push_back(bb);
    d.curb = 1;
    void addA()
    { aaa aa;
    aa.color = 152;
    d.va.push_back(aa);
    aa.color = 1232;
    d.va.push_back(aa);
    aa.color = 1542;
    d.va.push_back(aa);
    aa.color = 15;
    d.va.push_back(aa);
    d.cura = 2;
    d.va [1].doSometing ();

    Dear All,
    is there any way that i can access function or member variable of aggregate class.
    i am working in Visual Studio 2010
    and making win32 dll with mfc Support. i am new in dll system. just learning and doing.
    previously all in exe and i am working this like
    CTestDoc*pDoc = (CTestDoc*)GetTestDocument();
    somevar = pDoc->xDoc.mVar.GetValue ();
    now i am trying to put all in dll. so getting problem
    What problem?
    The rules of C++ do not change because some of the code ins in a DLL. But the classes in a DLL need to be exported. See for example
    https://msdn.microsoft.com/en-us/library/81h27t8c.aspx
    You should also supply a macro so that the class header can be used in both the DLL and the client. See for example
    http://stackoverflow.com/questions/14980649/macro-for-dllexport-dllimport-switch
    If  you exchange memory between the DLL and the client (as your example will do, because of the std::vector content), you should also be sure to use the same version of the compiler for each module, and to dynamically link to the CRT.
    I would also advise you to start with a less complicated scenario, with just one DLL.
    David Wilkinson | Visual C++ MVP

Maybe you are looking for