What is the right way to write portable EJB3.0 clients?

We have lots of EJBs deployed in the 2.0 format. And all these are accessible from external standalone JVM clients. And portable. We deploy the EJBs on Weblogic and WebSphere. And currently we are trying to port some of the EJBs over to 3.0 format.
Previously, a global JNDI name was set up in weblogic-ejb-jar.xml (and the same name was set in a similar file for WebSphere) and external clients could simply lookup by this name.
With EJB3, we are able to do this in WebSphere. External JVM/ejb client can lookup my new EJB3.0 from the WebSphere server (JNDI name of "EJB3Test_JNDI") simply by the standard InitialContext.lookup(). We do not have injected any names/mapped names in the code. The JNDI names are set only through the descriptor files.
But does not work in WLS 10.3.3. I am always getting a
javax.naming.NameNotFoundException: Unable to resolve 'EJB3Test_JNDI'. Resolved
'' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'EJB3Test_JNDI'. Resolved '']; remaining name 'EJB3Test_JNDI'
Unable to resolve 'EJB3Test_JNDI'. Resolved ''
How do I get a portable code here? "Portable" is the key. I do not want to write 2 versions of the client.java or have 2 separate JNDI names.
Thanks in advance

Please refer to my post.. you will get the answer
Dynamic Table -  same data repeating in all rows
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes.
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt.

Similar Messages

  • What's the right way to delete an entire backup ?

    I've had two Macs doing wireless Time Machine backups to one Time Capsule.
    Question: I got rid of one Mac, and want to delete its backup entirely (but leave the other computer's backups untouched). What's the right way to do it?

    Bob Timmons wrote:
    Jespes, welcome to the discussions!
    Open your hard drive. Your Time Capsule icon should appear under the SHARED heading.
    Click on the Time Capsule and a folder will appear to the right.
    Double click the folder and you should see a xxxxxx.sparsebundle file for each computer that has been backing up.
    Click on the xxxxx.sparsebundle file that you want to delete to highlight it and then click the gear shaped icon just above. Select Move to Trash. (Do not drag the file to the Trash as this will not work).
    Be careful, as the file will be deleted instantly and you will not be able to retrieve it.
    many thanks!

  • What is the right way to move a directory to another drive?

    When I move a directory to another location using drag and drop in the Elements 11 Organizer folder tree most, if not all, of the images become unlinked. What is the right way to move a directory and have the image paths updated in the Organizer database? Thanks.

    Bazsl wrote:
    When I move a directory to another location using drag and drop in the Elements 11 Organizer folder tree most, if not all, of the images become unlinked. What is the right way to move a directory and have the image paths updated in the Organizer database? Thanks.
    That's something I just did successfully one hour ago...
    I suppose your are in the 'folder' view with full folder tree, not in the 'My folder' view which only shows the lower subfolder level recorded in the database.
    Do you try to move a folder with its subfolders ?

  • What's the right way to add a swipe handler to a DataGrid?

    H All:
    What’s the right way to add a swipe handler to a DataGrid?
    (Target = Android, AIR using Flash IDE)
    Adding a handler to the DataGrid works; but (as expected) it only works on  the datagrid itself. Like if you swipe on the background before rows are fully  added. Adding columns over the datagrid, prevents the datagrids’ swipe handler  from firing.
    Trying to add a swipe hander to the columns themselves, results in the  below error.
    //  Below code fails with
    //  1061: Call to a possibly undefined method addEventListener through a reference with static type
    //   fl.controls.dataGridClasses:DataGridColumn.  So ... DataGridColumn doesn’t support addEventListener...
    There must be a better way(?).
    Thanks
                import fl.controls.DataGrid;
                import fl.controls.dataGridClasses.DataGridColumn;
               // Works, but only on the grid itself; as when the rows do not  fill the space tor the datagrid.
                myDataGrid.addEventListener  (TransformGestureEvent.GESTURE_SWIPE, swipeGridHandler);
                var c1:DataGridColumn = new DataGridColumn("Notes"); 
                c1.width = 90;
                c1.cellRenderer = CenterAlignCell;
                c1.addEventListener (TransformGestureEvent.GESTURE_SWIPE,  swipeGridHandler);

    Adobe list of properties and methods:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/dataGridCla sses/DataGridColumn.html

  • What is the right  way to display a table in Java web dynpro using a node.

    Hi experts,
      I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro.  In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to  show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Please refer to my post.. you will get the answer
    Dynamic Table -  same data repeating in all rows
    Special care should be taken in designing the context for table attribute.
    The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
    Now coming to final solution :
    For designing a table in adobe interactive form you have consider following
    You have to design the view context upto three level, I am explaining you the properties
    PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
    TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
    TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
    TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
    Then under TableData value node, you have to put all your table attributes.
    This Value Node name can be anything but hierarchy should be same as I have mentioned above.
    Please try out these steps and get back to me if you have any doubt.

  • What is the right way to connect the adapter to my macbook when charging?

    what is the right way to connect the adapter to my macbook when charging.
    is it connect the magsafe connector first before plugging the adapter to the outlet? or the way around? or both ways will do?
    what if i'm using a surge protection with a on/off button, can I just turn the surge protector extension on and off without disconnecting the magsafe connector and adapter plug from my laptop when i'm not using it?
    thank you very much

    If there is any arcing it may be because the adapter is dirty. It is best to plug in the wall wart then attach the magsafe to the MacBook. As GfulDedFan mentioned this reduces the chance of power surging the MacBook. I have done mine this way since he day I bought it and have never had an arc. I keep it clean to reduce the chance of this happening. The following will help in the care of your supply.
    Apple: Use and cleaning of MagSafe power connector

  • What is the right way to handle events?

    What is the right way to handle events? If I start doing stuff in the AWT event thread (particulaly things that create their own events) should I be starting a new thread?
    A link to a good book or reference source will do
    thanks in advance

    http://java.sun.com/docs/books/tutorial/uiswing/events/

  • What is the right way to change the active JInternalFrame for and MDI app?

    I am working on my own implementation of the window menu. The action that is triggered when a customer chooses a window to activate from the list in the menu is not behaving as I expected. The code I wrote (below) switches frames correctly but the caption bar never gets updated and if you restore a frame from an icon the frame is not correctly activated, there is even a restore button which if you push fixes things up and the frame then behaves normally     if (frameToActivate.isIcon ())  {
              //  Restore from icon
              desktopPane().getDesktopManager().deiconifyFrame (frameToActivate);
         desktopPane().getDesktopManager().activateFrame (frameToActivate);
         desktopPane().setSelectedFrame (frameToActivate);I did a search of the web and found a tip on JavaWorld (http://www.javaworld.com/javaworld/jw-05-2001/jw-0525-mdi.html) which led me to try doing this from a different angle - the JInternalFrame's point of view. This code works     try {
              if (frameToActivate.isIcon ())  {
                   //  Restore from icon
                   frameToActivate.setIcon (false);
              frameToActivate.moveToFront();
              frameToActivate.setSelected (true);
         } catch (PropertyVetoException error) {
              error.printStackTrace();
         }My question is why does the desktop based approach not work? If methods exist that appear to let you restore and switch between frames why are the ineffective? Am I missing something obvious that I should be doing?
    If using the JInternalFrame methods is the right way to go then I will It just seems like if the DesktopManager has methods that advertise that is supports managing the active frame then they should work. Before I ignore them I want to check with you to see if there is a right way to use them.
    Ian

    So, this is another batch of duke dollars I cannot assign - since I solved my own problem:-)
    I had an epiphany and tried setting break points to see what code was executed when you click on an inactive frame. From that I determined that DefaultDesktopManager.activateFrame, as implemented, does not activate the frame but acknowledges the activation of a frame and does a small amount of bookeeping work for the DesktopManager. So, the solution is the code I wrote to switch focus using the JInternalFrame's methods. Since I did not want to have to write those nine lines of code in the couple of places I want to programmatically switch the active frame I added a get/setActiveFrame method to my JDesktopPane derivative. In case others face this problem here is the code (warning I have not yet setup building the JavaDocs for this project so I cannot vouch for the validity of the JavaDoc, but the code does work):/**
    * Bring frameToActivate to the front (restoring from icon if neccessary) and make it the
    * selected frame.  This method does all the things required to switch the active frame for
    * an MDI application unlike: @link JDesktopPane.setSelectedFrame, which does not change the
    * focus; @link javax.swing.DefaultDesktopManager.activateFrame which does not correctly
    * handle iconified frames or switch the focus properly; and
    * @link javax.swing.JInternalFramesetSelected which also does not handle iconified frames.
    * @param frameToActivate the frame to bring to the front and become the active window
    * @throws IllegalArgumentException
    public void setActiveFrame (JInternalFrame frameToActivate) throws IllegalArgumentException  {
        if (frameToActivate == null)
            throw new IllegalArgumentException ("setActiveFrame a frame must be passed a non null valie.");
        try {
            if (frameToActivate.isIcon ())  {
                //  Restore from icon
                frameToActivate.setIcon (false);
            frameToActivate.moveToFront();
            frameToActivate.setSelected (true);
        } catch (PropertyVetoException error) {
    * This method returns the currently active frame.  This method returns the same frame
    * as <code>getSelectedFrame</code> and is provided for symetry for <code>setActiveFrame</code>. 
    * @return the currently active frame
    * @see LDesktopPane.setActiveFrame
    * @see javax.swing.JDesktopPane.getSelectedFrame
    public JInternalFrame getActiveFrame ()  {
        return getSelectedFrame ();
    }IL

  • What is the right way to set the physical path of a folder?

    I want to upload .PDF files using an Upload form on a JSP page which is located on the App Server. The .PDF files will be uploaded into the Web Server. The App Server and Web Server are on separate machines. My JSP page contains the path (eg: /apps/Server4/docs/Upload/) that should point to the physical folder on the Web Server. My problem is that I get an error stating that the folder cannot be found as the path was invalid. My question is, when I have this sort of setup, what is the right form of the physical path? Can you give me an example of a path that points from the App Server to the Web Server which sits on another machine. OR should I just install the Web Server in the same machine as
    the App Server? I was developing on a setup where both the Apps and Web Server was on the same machine
    and I didn't have this 'path problem'. The problem arise when the application was deployed onto our staging server. Why do I want to upload it onto the Web Server? This is because I need to view the .PDF files using Acrobat Reader straight from the server without downloading the .PDF file. I found out I couldn't do this if the .PDF files were uploaded into a folder which sits in the App Server.

    Well the problem is, as you have found out, is that the JVM is executing on the appserver which may or may not have access to the webserver. There no way (within your existing application) that you can tell the webserver to save the file, since the webserver isn't executing any code.
    So you have several options:
    1. You can have the application server and webserver run on the same physical machine. This obviously gives the application server access to the physical directory structure of the webserver. (Assuming that you set permissions correctly.) The disadvantage is that there are many architectural advantages (including security) that you would want to separate your webserver and appserver.
    2. You can NFS mount the webserver directory on the appsever box. This allows you to treat the webserver directory as if it was local. The downside to this is that you will have additional security concerns. (Exposing the webserver via NFS, firewall issues between the two servers etc.)
    3. Fix the MIME problem occuring when you serve PDF's from the appserver. You might have to write your own PDF serving servlet to do this.

  • What's the right way to move "all but boot drive"?

    I'm setting up a new Mac Pro with a four-drive RAID-10 set, using an Areca 1680LP RAID controller. Areca doesn't yet have 64-bit EFI support, so I'll need to continue booting off the internal drive for now.
    What can - and what can't - I move, and what's the best way to mount it? I know that Leopard now uses autofs, but I've also seen posts suggesting that it doesn't always "just work".
    Most posts on the topic seem to be about moving the home directory, or mounting network drives. I want to keep everything on the RAID drives, except for what's actually required for EFI to load the kernel.
    OS X doesn't have a separate /boot partition, so: what goes where?

    Sophie:
    Welcome to the Apple Discussions. You're only hope to recover the library as it once was is to: 1 - if you have a backup copy of your iPhoto Library or 2 - you can put everything back exactly the way it was in the Finder.
    Otherwise you'll have to start over with a new library and import the Originals folder from your current library as follows:
    Creating a new library while preserving the Events from the original library.
    Move the existing library folder to the desktop.
    Open the library package like this.
    Launch iPhoto and, when asked, select the option to create a new library.
    Drag the Originals folder from the iPhoto Library on the desktop into the open iPhoto window.
    This will create a new library with the same Events as the original library if you have the Finder checkbox unchecked in the Events preference pane.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • IWork - What's the right way to install a familiy license?

    I have bought a iWork familylicense. Now I try to install the software at the iMAc from my daughter. But I don't find the right way to do this. Who can explain the right process to install it? Thanks a lot for your ideas. RN

    Adobe list of properties and methods:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/dataGridCla sses/DataGridColumn.html

  • What's the "right" way to create a News list in CQ5.4?

    Hey folks,
    I'm a brand new CQ developer and, though I've done a lot of reading, I'm still in the dark on how to do a few things.
    I'm currently working on a corporate website, and I need to build a News page. Each article contains a title and rich text (possibly including embedded images, videos, etc...), and the News page itself should display a paginated list of recent article summaries (with "read full article" links). I also need to show the two or three most recent article summaries on the site's front page, under a News heading.
    I thought there'd be a pre-built component to cover this case, since most corporate sites include a News page of some sort, but I haven't found one. Am I missing it? I looked into the Blog page template, but I think that adapting that may be overkill.
    I think that the right way to do this would be to build a News component with a Title and Rich Text field in the edit dialog. New articles could be created by dropping these components into the parsys of the News page. I could then create both a .html and a .summary view for the components and use a customized List component to display the summary list on the front page. Am I on the right track here, or am I overcomplicating it?
    Thanks!
    - Michael

    Hi,
    The "right" way of building any list-like component is to extend the existing List component.
    That is referenced in this documentation page:
    http://dev.day.com/docs/en/cq/current/wcm/default_components.html#List
    You can find it under /libs/foundation/components/lists
    To create, for example, a 'News List' component, just create a new component under your /apps/myproject/components, setting 'foundation/components/list' as sling:resourceSuperType ans add your custom script to display each news item. see also [1]
    That way you canprovide more renderers to be used around your site(s)
    [1] - http://dev.day.com/docs/en/cq/current/developing/components.html#Developing%20a%20new%20co mponent%20by%20adapting%20an%20existing%20%20%20%20%20component
    Hope this helps,

  • What's the right way to organize podcasts?

    I have a question about the best way to keep podcasts. What I do is download podcasts from a few sources. I put them into a playlist (so that they go one after the other and don't require me to press buttons when one ends, which is what happens if I listen to the podcast category directly). I sync them to my iPod and listen on airplane trips. Now, most of them I want to delete, but say every 5th one is one I'd like to keep. So when I get back, I have to remember which one is which and delete them from iTunes. Question one: any way to mark them for deletion from the iPod itself (so that I won't have to remember which out of 50 were the good ones?).
    Further, how do I keep them? I want the good ones I've already listened to in one place (e.g., playlist "archived podcasts") and new ones that get downloaded which I haven't listened to in another place (e.g., playlist "airplane content"). I imagine I'm not the only one, so how are people doing this - what's the best way to keep an up-to-date playlist of only the new podcasts, and store the listened-to ones elsewhere?
    thanks in advance,
    Mike

    Adobe list of properties and methods:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/dataGridCla sses/DataGridColumn.html

  • What's the right way to run a consolidation in HFM from FDM?

    New to FDM. Things are working ok, but wondering what's the best way to run a consolidation in HFM after loading.

    You need to create a validation entity.
    On the validation entity, make sure you click the Consolidate check box. Then in integration settings, click Enable Consolidation. You need to also turn on the Force Calculate option. If this is a multicurrency app and you want translation to run, also enable the Force Translate option of the adaptor.

  • What is the right  way to re-format idop's Classic Hard Disk?

    Since my ipod classic 160 GB is malfunctioning, after I did a lot of restores
    trying to fix it without success,
    I've done a HDSMARTDATA test with the following results:
    Retracts: 2
    Reallocs: 9880
    Pending Sectors: 0
    PowerOn Hours: 16
    Start/Stops: 296
    Temp: Current 25c
    Temp: Min 19c
    Temp: Max 56c
    I can see that there are a lot of Reallocs .
    a) Can anybody advice, if they are really a lot enough to cause problems, e.g. not playing songs, rebooting itself e.t.c.
    b) I was thinking to reformat its HD. Can anybody tell me which is the RIGHT way to do that (steps)?
    c) Will I be able to restore its firmware (via itunes) after the re-formating ?
    The current firmware is 2.0.4.
    I use Windows XP (SP3), and the latest revision of itunes (10.1.1.4).

    Yes you can format ipod in windows just like you format any usb device, and then use restore in itunes. Check the link: http://www.methodshop.com/gadgets/ipodsupport/erase/index.shtml .

Maybe you are looking for

  • Mac Mini doesn't wake from sleep, stays black.

    I recently purchased a Mac Mini at the Apple store. I'm using an Apple bluetooth keyboard and trackpad. Problem is, when the mini goes to sleep, it won't wake back up. Nothing I can do apart from a hard restart by pressing the start button will wake

  • Can I delete unzipped font files after Font Book install?

    Can I delete the unzipped font files for one particular font after it's installed with Font Book? I will offload the zipped file for maybe future installation on another computer but I am confused whether I need to keep the unzipped font files on my

  • G4 - RAID Rebuild Failure

    Hey all Just chasing some ideas. I've got a XServe G4 which was setup with a software RAID although before my time. It is running 10.4.8 Server. We had one of the drives fail, reported failed also with SMART reporting a failure. We have now replaced

  • List of Links, opening new window on click

    Dear developers, I'm Developing a solution in which I need to show a list of links and when you click opens a new window . Every name of the list have different link. In conclusion, I want to show a list of links that when you click to open in a new

  • Good Books on EJB !`

    Hi All, I am a newbie to EJB. The only technologies I am comfortable with are JSP, SERVLETS, JRUN. Please guide me with the best/good books on EJB and any other sites that offer good tutorials on EJB and ofcourse list of EJB forums are also appreciat