Beginner Question (JNDI related)

Hi,
I got a EJB-Server called JONAS and a standalone Tomcat running. Now I want to use a EJB
from a tomcat-servlet. I know that the EJB is already registred in the JNDI-registry implementation
of JONAS. But when I try to look up the EJB with the servlet, Tomcat says "Bean is not bound to that context".
My question is, how does Tomcat know, which JNDI registry is the JONAS registry. What if there
are multiple registries running and I want to use EJB from all that registries in my programm (what is actually not the case).
I am really new to that topic - I just want to grip the mechanism. (Maybe I got to tell Tomcat which
JNDI it should use or smth like that?)
Thanx for any help,
Mischka

Zdrafsvuite,
I am really new to that topic - I just want to grip
the mechanism. (Maybe I got to tell Tomcat which
JNDI it should use or smth like that?)Relatively speaking. You tell InitialContext about the registry needed for the lookup. The following illustrates:
Hashtable reg = new Hashtable();
reg.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory" );
reg.put( Context.PROVIDER_URL, "iiop://registry.host.com:1050" );
Context jndi = new InitialContext( reg );The above instructs InitialContext on which context handler factory class to use for accessing the desired registry, and the URL location of the registry. Any number of lookup "handlers" to distributed registries (EJB or otherwise, since the above is relative to JNDI and not EJB ;) can be created and used this way. NOTE: the above, however, is specific to the RI and, possibly, other COS-based namespaces. Consult the documentation for your app server for the correct values for the above (as well as any additional information that may be required...).
I hope this helps.
Thanx for any help,
MischkaDa Sveedanya,
Tony "Vee Schade" Cook

Similar Messages

  • Total beginner question about relative cell references

    It seems like this ought to be easy, but I cannot get it right.
    I have 2 columns in a table.
    The first contains dollar amounts in each row.
    I would like the second column to sum the dollar amounts up to that row, and I'm trying to construct a formula.
    e.g:
    1 1
    3 4
    2 6
    7 13
    I cannot figure out how to refer to the current cell as an absolute but the others as an relative range.
    Any help gratefully received. (Why is there no function for "this cell"??)

    Hello
    It seems that you don't know the usage of the search function.
    Using it with the keyword "absolute" upon the Numbers User guide (PDF) brings to page 91 where one may read:
    +To paste a copy of a formula in a different cell and use the same cell references in both+
    +formulas, place a dollar sign ($) in front of column and row identifiers (=$A$1). This+
    +technique creates what’s called an absolute cell reference.+
    +For example, if the formula =A1 appears in cell D1 and you want to paste a copy of the+
    +formula in cell E1, change the formula to =$A$1, select D1, copy it, and paste the copy+
    +into E1. The formula $A$1 is copied into cell E1. If you didn’t change the formula to use+
    +an absolute cell reference the formula in E1 would be =B1.+
    Yvan KOENIG (from FRANCE vendredi 21 septembre 2007 13:47:50)

  • Questions in relation to iPod nano

    Hi,
    I have a few questions in relation the 5th generation iPod nano and I was hoping to find answers to them here.
    *Voice Memo*
    1. Are there any limitations imposed on the nano's voice memo functionality?
    For instance, does the nano record up to a predetermined number of minutes (say 30 minutes) or until the recording's file size reaches a particular threshold (say 100 MB)?
    Is this the case or are you only limited by how much free space you have on the device?
    2. Have people found the built-in mic to be a decent one or have they found themselves needing to purchase an external accessory to enhance the recording's audio quality.
    Radio
    This might be a silly questions, but Apple's website states that the latest nano has a built-in FM antenna. Does that mean you cannot get AM radio stations on the device?
    Thanks,
    Message was edited by: Infinite Lupe

    Hello Infinite Lupe,
    1. Are there any limitations imposed on the nano's voice memo functionality?
    Yes. Once the recording has reached the two mark the iPod automatically starts a new recording that again will go for two hours. However, this is limited as well to the amount of space remaining on your iPod as well. For more information see pages 74 - 76 of the iPod's *User Guide* which I provided below.
    2. Have people found the built-in mic to be a decent one or have they found themselves needing to purchase an external accessory to enhance the recording's audio quality.
    From my experiences the built-in microphone does just fine whether its being used for recording voice memos or videos.
    This might be a silly questions, but Apple's website states that the latest nano has a built-in FM antenna. Does that mean you cannot get AM radio stations on the device?
    Correct.
    For more information, see the iPod's User Guide.
    [iPod Nano 5th Generation User Guide|http://manuals.info.apple.com/enUS/iPod_nano_5th_genUserGuide.pdf]
    B-rock

  • HT5557 hello...my questions is related to objective C...Is it possible to display name of the person who is calling me whose number is saved in my local database but not in iphone contacts ?.

    hello...my questions is related to objective C..
    Is it possible to display name of the person who is calling me whose number is saved in my local database but not in iphone contacts ?.

    ashish35,
    No one from Apple here - we're just users like you. All I can tell you is that electronic fail and with MacBook Pros (and most notebooks) the components are so integrated as to make a repair to the logic board practically impossible, hence the high prices charged for repairs.
    Only you can decide if you want to have your computer repaired or put the money towards the purchase of a new computer. If you do decide to purchase a new unit I would suggest that you also purchase the AppleCare Protection Plan which increases your warranty from one year to three years.
    Sorry and good luck,
    Clinton

  • Beginner Question

    Hello all, hopefully I have posted this to the correct LiveCycle board!
    I'm new to Acrobat and LiveCycle in general. I'm working out of windows LiveCycle Designer 8.x  and my question is as follows....
    I'm working off of the "Quote" Form Template and what I am looking for is a way to make the rows of the Table expand as needed.  I will be converting this Template into a "Purchase Order" form, and there will be many occassions where I will need to increase the table rows - perhaps onto a second or even third page - due to the volume of different items I will be seeking prices on at a given time.
    Long story short I would like to take this "QUOTE" form template and make it such that if needed, I can expand the table size one row at a time, pushing the content beneath (Comments, subtotal, etc) onto the next page....
    Hoping I have explained my query well enough,  Could anyone provide me a solution or point me in the correct direction?
    Many thanks!

    As a followup, so as not to clog the board with numerous threads I have another beginner question
    For the sake of hypotheticals I am creating a dynamic PDF form.  This pdf is a Purchase Order Form, with a table in the Body that will expand/contract as the form user needs.  (EXA-  Default table size is 5 items, however user is creating an order for 12 items, he/she can increase the table rows to desired capactiy.) It will be a very simple layout. All data for the form will come from manual entry, no XML data binding going on.
    My new question is as follows:    Is there a way I can have this user's Adobe reader or Adobe acrobat software remember previous data entries, so that if 4 weeks after ordering widget X he/she needs to place another order for widget X, the software will autofill the table as he/she types into the table cell?
    This would be similar to how Excel will start to autofill if it recognizes a previously entered value from some other cell in the worksheet (workbook?)
    EXA-
    [NAME]   [MODEL]   [QTY]   [PRICE]
    Widget           A            433        $30.00
    Would it be possible for the software to notice that I'm typing the word "widget" somewhere after typing "wid" ???
    Many thanks for any and all followups, I'm a teenager trying to help out in my father's small business. They are in the darkages here and I'm doing my best to self teach.
    Thanks.

  • Beginner question: Can I apply one formula to all cells in a column?

    Hi,
    I'm new to spreadsheets, so apologies for asking what is probably a very simple question.
    I want to apply a formula that divides the values in one column (W) by values in another (AX) for a table containing 3000 rows, and outputs the result for each row into the appropriate cell in the new column I've created.
    Numbers 09 'help' hasn't helped to this point.
    Thanks in advance for any assistance.

    GeoBrett wrote:
    Numbers 09 'help' hasn't helped to this point.
    Besides Numbers '09 Help there are two other useful resources available in the Help menu: the Numbers '09 User Guide and iWork Formulas and Functions Help.
    For "Beginner questions," my first choice would be the User Guide. For the specific question you asked, a quick scan of the chapter on "Using Formulas and Functions" (pp 83-96) will provide some useful information. Start in the neighborhood of page 93.
    Regards,
    Barry

  • Beginner question regarding 32-bit mixing and mixdown workflow

    Hello
    I have a beginner question regarding 32-bit mixing and mixdown.
    If I edit some 16Bit, 44.1kHz Stereo WAV Files and put them into multi-track view to do crossfades, how should I do the mixdown?
    Audition shows me in multi-track view, that it is doing 32-Bit mixing.
    Can I just mixdown to 16Bit, 44.1kHz Stereo without any dithering (as the files are 16Bit, 44.1kHz Stereo to begin with), or will I lose quality that way?
    I will be performing a normalization to 96% to the mixdown and then split to tracks in Audition, as in the end I want to to have an audio CD.
    I guess I could mixdown to 32Bit, then normalize and in the end save back to 16Bit, 44.1kHz Stereo WAV (with dithering, I suppose?), but I want to avoid any unnecessary converting steps.
    Greetings

    Any time you do any processing on a 16bit file in 16 bit only it will degrade the audio slightly due to rounding of the calculations. Working in 32 bit floating point (Audition's default) takes account of all bits generated due to processing.
    So it is always best to work in 32 bit, even if your originals were 16, all the way through until the last stage of saving the files for CD burning. Any losses due to conversion will be insignificant against those due to working 16 bit.

  • Beginner question - how to efficiently check if a photo is part of the selection

    Dear all,
    Sorry for this beginner question, however I don't know how to solve it and I'm sure that there is a quick and easy answer to this:
    My target is to get all the "heads of stack" (photos with Position 1 in stacks) of the selection ("photos" below).
    for i, photo in ipairs( photos ) do
      local photoName = photo:getFormattedMetadata('fileName')
       if photo:getRawMetadata( 'isInStackInFolder' ) then
       --Photo is in a stack
            local photoHeadOfStack = photo:getRawMetadata('topOfStackInFolderContainingPhoto')
            local stackPos = photo:getRawMetadata( 'stackPositionInFolder' ) -- get the position in the stack
            local photoHeadName = photoHeadOfStack:getFormattedMetadata('fileName')
            app:logVerbose("Photo nb ^1, name ^2 is in a stack with the position ^3", i, photoName, stackPos)
            if stackPos == 1 then
            -- photo is master of the stack
                 stackTop[#stackTop+1]=photo
                 app:logVerbose("Photo ^1 is top of the stack ^2", photoName, #stackTop)
                 -- check if couple if correct
            elseif photos.photoHeadOfStack then
                 app:logVerbose("Photo ^1 is in a stack, but not on top. Top of the stack already selected", photoName)
            else
                 stackTop[#stackTop+1]=photoHeadOfStack
                 app:logVerbose("Photo ^1 is in a stack, but not on top. Top of the stack ^2 - ^3 ", photoName, #stackTop, photoHeadName)
            end
      end
    end
    In the if structure in the middle checking the Position in the stack, if the Position is not 1, I would like to check if the photo heading the stack ('photoHeadOfStack') is part of 'photos'. I tried 'elseif photos.photoHeadOfStack then' and 'elseif photos[photoHeadOfStack] then' but it doesn't work ->this elseif is never true even if 'photoHeadOfStack' is part of 'photos'.
    Is there anyway to have this check done without checking "manually" photos ?(via for example a for Loop)
    I'm sure that Lua proposes this, but I don't know how...
    I thank you for your Support!

        --[[ This code creates "stackTops", an array of LrPhotos that are the
        tops of all the stacks containing photos in the array
        "photos". ]]
    stackTopSet = {}
    for _, photo in ipairs (photos) do
        local stackTop = photo:getRawMetadata ("topOfStackInFolderContainingPhoto")
        if stackTop ~= nil then stackTopSet [stackTop] = true end
        end
    stackTops = {}
    for photo, _ in pairs (stackTopSet) do table.insert (stackTops, photo) end

  • Beginner Question: SA520 Admin access through WAN port

    Dear all,
    I've a beginner question regarding my brand new SA520: How can I configure the box so that I'm able to access the admin GUI not only through the LAN ports but also from the WAN ports?
    I tried already to allow inbound traffic to the firewall's internal IP address (not sure if done right, so) and granted the admin user access profile from WAN and LAN: I can access the box from the LAN but not from the WAN. Any ideas?
    Thanks,
    Eric
    PS: Yupp, I know that it's not a good idea to expose a FW admin GUI to the WAN - but this is only a lab environment

    Go to Administration -> Users.
    click on the 'Edit User Policies' 'Login' button.  It's there you can enable WAN access.

  • Beginner question - using pre for flexibility in text?

    Hi,
    Apologies for the beginner question, but I am struggling to work out whether it is more sensible to use <pre> in all my texts, as it seems more flexible.
    It seems that when I use <p> - paragraph - I can't use multiple space bars to align certain bits of text, but more disruptively I have gaps between text when I press Enter (I guess this defines the paragraph, but isn't always wanted).
    Well, basically, <pre> seems more flexible, but it behaves strangely sometimes. What do other people use?
    Many thanks!
    Ivan Reshetilov
    http://www.ivanreshetilov.co.uk

    Hi Ireshe, just a beginner like you.  Have never heard of <pre> tags, use <p> tags.  If you hit SHIFT enter after a sentence this puts in a <br> tag or line break which basically leaves a blank line between text.
    If you add     &nsbp;    or lots of them between words this gives you an extra space between letters.  How all your paragraphs sit on the page is defined by CSS.  E.g.
    p {
         margin:0;
         padding: 5px 0 0 10px;}
    This would place all text within <p> tags on your page, with a 5px gap at the top, no space to the right or bottom and 10px space to the left.  Hope this helps, good luck!
    Amanda
    www.kimberleywebdesign.com.au

  • Beginner question: Configure Tomcat for JAAS?

    Hi,
    This is a beginner question :-(. I'm trying to get JAAS to work on my Tomcat (6.0.12) installation. I used code from a Javaworld article (http://www.javaworld.com/javaworld/jw-09-2002/jw-0913-jaas.html)
    Of course I had to configure my Tomcat to work together with JAAS. The document I used is: http://tomcat.apache.org/tomcat-6.0-doc/printer/realm-howto.html
    According to the Tomcat doc I have to do the following steps before I can use JAAS to authenticate a user:
    1. Develop your code. Place the compiled classes in Tomcat's classpath
    2. Setup a login.config file for Java, and tell Tomcat where to find it (set JAVA_OPTS)
    3. Configure the JAASRealm in your server.xml
    1 Develop code: I use the following classes:
    PassiveCallbackHandler.java
    RdbmsCredential.java
    RdbmsLoginModule.java
    RdbmsPrincipal.java
    These classes I put in the package rdbmsjaas.
    In the %CATALINA_HOME%/webapps/Javaworld_Jaas/WEB-INF/lib directory I created the rdbmsjaas.jar file.
    The jsp is called jaas.jsp, and is stored in %CATALINA_HOME%/webapps/Javaworld_Jaas
    2. Setup login.config
    In %CATALINA_HOME%\conf I saved the file Javaworld_all_that_Jaas.config, containing:
    Example {
       RdbmsLoginModule required
       debug="true"
       url="jdbc:mysql://localhost/jaasdb?user=javauser&password=javadude"
       driver="com.mysql.jdbc.Driver";
    };I created an XP Environment Variable JAVA_OPTS with the value <-DJAVA_OPTS=-Djava.security.auth.login.config==C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/JavaWorld_All_That_Jaas.config> (excluding < and >)
    I used the fully qualified address, instead of $CATALINA_HOME/conf/JavaWorld_All_That_Jaas.config. I think XP balks when it sees $CATALINA_HOME).
    3 Configure JAASRealm in server.xml
    In %CATALINA_HOME%\conf\ I changed web.xml. I added the following lines:
          <Realm className="org.apache.catalina.realm.JAASRealm"
                 appName="jaas"
                 userClassName="rdbmsjaas.RdbmsPrincipal"
                 debug="99"
           />If I run the jsp from http://localhost:8080/JavaWorld_Jaas/jaas.jsp, I can enter my username/password, but when I click the Submit button, I get:
    Caught Exception: java.lang.SecurityException: Unable to locate a login configurationWhere did my configuration go wrong?
    Abel

    You will need a JSP/servlet engine such as Tomcat - Apache alone won't do it.
    I haven't seen any tutorials on set-up but the Tomcat documentation includes info on how to link to Apache. There are also books you can buy - check out the online book stores such as Amazon.
    There's also a lot of info on this forum.

  • Beginner question: creating my own virtual instruments from samples

    Hi, I have a beginner question. I'd like to make a click-track, but I want to use my own sounds, either recorded or from the internet. Can I do this with Logic Express 7, or do I need Logic Pro 7 and the EXS24?
    Thanks,
    Ryan

    I think you can do it, but it might be a pain.
    You could import a sample of a single click and just paste it into every beat on the Arrange Page.
    Other than that, you might need the sampler included with Logic Pro

  • Absolute beginner: shirt design related questions

    hi all. i thought i'd be as detailed as possible to give you an idea of what my questions are:
    i have some hand-drawn art/design for a t-shirt. so i took some pictures, and my daughter opened them up in photoshop elements 6. she was able to easily trace over my pencil lines, BUT the lines were not smooth at all. say i drew a circle. it is not so much that it is not a perfect circle, especially if free-handed, but that the edges of the line of that circle are not smooth.
    turns out elements can't do that, after i called adobe. they suggested illustrator, which i am currently demo'ing. when i had my daughter (she's 17, been playing with elements rather well) try to do it illustrator, it wasn't as intuitive as both of us thought. it's gotten her stumped.
    for the most part, that's all i want to do. pull up a picture of a hand-drawn sketch, and draw it in illustrator with some smooth lines. i would very much appreciate some guidance on what to do!
    stumped!
    THANKS IN ADVANCE.
    jack

    Jack,
    When you start from scratch in this kind of program, you just have to read the instructions. Otherwise, you'll be floundering about forever being confused. Vector drawing programs like Illustrator are not immediately intuitive to someone who is accustomed only to working in raster image programs (i.e.; Photoshop, etc.).
    Vector graphics is the "other half" of the computer graphics world. In a program like Illustrator, you're not recoloring pixels; you're creating and manipulating objects, most of which are mathematically-defined shapes called paths. You draw paths, give them strokes and/or fills, move them about, stack them, scale them, arrange them so that together they comprise a piece of artwork.
    Go to the help files, start at the beginning, read through it like a book, perform the operations described. You'll then get the conceptual principles down and start using the thing with much less frustration. It will take time. This isn't the kind of graphics program you just dive into blind, have someone tell you a few command sequences, and start doing productive work in. You have to read the instructions.
    JET

  • Question about relative sizing on JPanels

    Hi,
    My question is about relative sizing on components that are not drawn yet. For example I want to draw a JLabel on the 3rd quarter height of a JPanel. But JPanel's height is 0 as long as it is not drawn on the screen. Here is a sample code:
    JPanel activityPnl = new JPanel();
    private void buildActivityPnl(){
            //setting JPanel's look and feel
            activityPnl.setLayout(null);
            activityPnl.setBackground(Color.WHITE);
            int someValue = 30;  // I use this value to decide the width of my JPanel
            activityPnl.setPreferredSize(new Dimension(someValue, 80));
            //The JLabel's height is 1 pixel and its width is equal to the JPanel's width. I want to draw it on the 3/4 of the JPanel's height
            JLabel timeline = new JLabel();
            timeline.setOpaque(true);
            timeline.setBackground(Color.RED);
            timeline.setBounds(0, (activityPnl.getSize().height * 75) / 100 , someValue , 1);
            activityPnl.add(timeline);
        }Thanks a lot for your help
    SD
    Edited by: swingDeveloper on Feb 24, 2010 11:41 PM

    And use a layout manager. It can adjust automatically for a change in the frame size.
    Read the Swing tutorial on Using Layout Managers for examples of the different layout managers.

  • DW Beginner Question

    Hi there
    Ive been developing BI solutions using SSRS reports ontop of Relational database for years now, ive also had a limited amount of exposure to SSAS and SSIS but this has been more of a maintenance role of altering the SSRS dashboards.
    Im moving to a new position to implement a BI strategy in a company that has a few OLTP database. My question is
    Q) Should I/can I build the reporting solutions in a similar way to my past experience (i.e ontop of a replicated DB (DW) of the current OLTP database) or would it be better to jump feet first into building DW (star schema) that feeds into a SSAS cube which
    i can then build the reports ontop off?
    im confident both are within my capabilities but find myself at a cross roads and not sure what the best path would be.
    thanks

    I do too agree with what Nigel said. Plus, by using a star schema as your dimensional model, for example, you would reduce the number of joins and thus speed up the reading speed for your reports.  
    If I may, I can recommend you three books which can guide you:
    - Smart Business Intelligence Solutions with Microsoft® SQL Server® 2008 (PRO-Developer)
    - The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling
    - MCTS Self-Paced Training Kit (Exam 70-448): Microsoft® SQL Server® 2008 Business Intelligence Development and Maintenance
    Although the first and the third books are a bit outdated, they contain valuable information about building a datawarehouse solution.
    Best regards,
    Razvan
    Per aspera ad astra!
    journeyintobi.com

Maybe you are looking for