Narrowing always required?

If I have already narrowed an EJB interface, for example:
Object ref = jndiContext.lookup("CabinHome");
CabinHome cabinHome = (CabinHome)PortableRemoteObject.narrow (ref, CabinHome.class);
Can I subsequently always, safely do Java casts on it? For example, if I later add "cabinHome" to a Map:
myMap.put("cabinHomeKey", cabinHome);
<and later retrieve it...>
// can I do this java cast?
CabinHome cabinHome = (CabinHome)myMap.get("cabinHomeKey");
// or must I always do a "narrow" on a remote interface?
CabinHome cabinHome = (CabinHome)PortableRemoteObject.narrow (myMap.get("cabinHomeKey"), CabinHome.class);
Thanks in advance for your help.

You do not need to narrow the reference again.
-- Rob
Richard Beauchamp wrote:
>
If I have already narrowed an EJB interface, for example:
Object ref = jndiContext.lookup("CabinHome");
CabinHome cabinHome = (CabinHome)PortableRemoteObject.narrow (ref, CabinHome.class);
Can I subsequently always, safely do Java casts on it? For example, if I later add "cabinHome" to a Map:
myMap.put("cabinHomeKey", cabinHome);
<and later retrieve it...>
// can I do this java cast?
CabinHome cabinHome = (CabinHome)myMap.get("cabinHomeKey");
// or must I always do a "narrow" on a remote interface?
CabinHome cabinHome = (CabinHome)PortableRemoteObject.narrow (myMap.get("cabinHomeKey"), CabinHome.class);
Thanks in advance for your help.

Similar Messages

  • After upgrading to Mavericks on my Mac Pro, mail always requires that I type in my password when launching. How do I change that?

    After upgrading to Mavericks on my Mac Pro, mail always requires that I type in my password when launching. How do I change that?

    If your password is accepted, and Mail connects to the account, but you're prompted for the password repeatedly, take each of the following steps that you haven't already tried. Note: these steps don't apply if the server rejects the password. That's a different problem.
    Step 1
    When prompted for the password, check the box marked Remember this password in my keychain.
    Step 2
    Check that the keychain is working.
    Step 3
    Check that the default keychain is unlocked.

  • Premiere CS4 - Multiple tracks always require rendering regardless

    It used to be if you had for instance mutiple tracks and the top track was a DV-AVI file with 100% opacity and no filters, no rendering was required. Now it seems that if you have anything on the lower tracks, even if completely hidden by the top layer, rendering is always required and transcoding takes longer - sometimes considerably depending on what's on the lower layers though not seen. I actually have to completely remove sections of clips on the lower tracks to speed up transcoding. Just more unnecessary work and time.
    Forgive me if this has been discussed before, but I can not seem to find this precise issue among the slow rendering discussions.
    Bruce B

    I hope you've found the answer already, but it sound exactly what I've run into.
    My problem was that I upgraded from CS2 and then removed the suite once CS4 was running.
    If you have done the same thing, simply reinstall Premiere CS4 and it will work as it did for me.
    If not, I don't know what to tell you.
    Good luck,
    Dan

  • Can location services get disabled automatically? Or does it always require a user to disable it?

    Can location services get disabled automatically? Or does it always require a user to disable it?
    I was repeatedly trying to Find my iPhone  when it came up with "Location Services Disabled".
    Later I was able to find my iPhone again.  This has happend severally times lately?
    Cold this happen automatically, like a "time out" function?

    Can location services get disabled automatically? Or does it always require a user to disable it?
    I was repeatedly trying to Find my iPhone  when it came up with "Location Services Disabled".
    Later I was able to find my iPhone again.  This has happend severally times lately?
    Cold this happen automatically, like a "time out" function?

  • Planning/Budget Profile always required for Project Profile?

    Hi,
    Are planning and budget profiles always required fields for Project Profile?
    Thanks!
    Regards,
    Vivian

    Hi,
    Thanks for your reply.  May I know if you could advise relevance of the planning and budget profile?  what if I do not specify them in my Project Profile? What will be the impact or default values if they are not specified in the project profile.
    Thanks!
    Regards,
    Vivian

  • My sister has been charged $400 for an app games she never accepted how does this matter get Investigated further as apple always requires a password on Purchases ?

    Can some one please tell me where do I complain or start an Investigation on an app that has be wrongly charging a credit card for gems and coins with. Authorization or password ? iTunes is giving me the run around and won't Rectify this problem this is wrong if apple won't take Responsibility for an app that they have approved to download on their smart phones. I have been a developer for the past year and know very well how apple needs to Approve anything that goes to the public for downloading under the App Store?

    First, to prevent this from happening again, she should turn off "In App purchases" in the Restrictions settings on her iPad so that she can't make a purchase inadvertently. Not all games make it clear that coins, gems and such cost real money. She may also want to turn off the ability to install apps, and set the password to be required immediately. For more information, see:
    http://support.apple.com/kb/HT4213
    As to a refund, that's not automatic since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store as AnaMusic suggested, explain the reason for your request, and ask, though. They're usually pretty lenient in the case of inadvertent purchases.
    Good luck.

  • Help! Federal W4 form always requires Japanese font pack

    Hi! I've been tasked with automating the new hire process and the client would like to include the Federal W4 form in with a collection of other forms required for their internal new hire paperwork. So I download the form from http://www.irs.gov/pub/irs-pdf/fw4.pdf, opened it in LiveCycle Designer 7.1 (on Windows XP), then saved the resulting LiveCycle form as a PDF. Now any time I try to open the form in Acrobat Reader 7.0.8 it goes to the web and requires that the Japanese font pack be installed. If I don't install it the form behaves very strangely, such as form field text disappearing anytime to tab off of them.
    Now if I reopen the the newly created W4 LiveCycle PDF in LiveCycle Designer and save it as an XPD file I can see that the font "Kozuka Mincho Pro-VI R" has been inserted into the document. I have confirmed that this font is not present in the original Federal W4 from. My question is why is this font being added and how can I get rid of it? This has to be a bug.
    Can anyone else reproduce this problem?

    Thanks for the follow-up! Yes, that makes sense. However since I didn't have the Japanese font pack or any Japanese fonts installed on the development workstation then LiveCycle must have used it as a "fallback" font for unknown glyphs. Specifically somewhere in the LiveCycle code must have been detection for what it thinks might be Japanese fonts. I would bet that you are right, if we had the right font loaded on the system then it wouldn't have been an issue.
    The performance issues are all with the Designer. There are quite a few objects in my 24 page PDF document. Since many of these PDF pages came from federal forms I imported them into Designer "perserving appearence" so the object count on each page in pretty high. Acrobat reader performs fine with the 24 page form, it's just the Designer that gets pretty slow on some operations.
    By the way, do you know if Designer will have better support for adding/removing pages from a document. When I first attempted to assemble the new hire packet 24 page document I opened each federal form individually in Designer and simply copied and pasted the document objects into a new page in a single LiveCycle document to assemble the completed document. I discovered that this didn't work well (objects would paste without the correct fonts) so I went into Acrobat Professional and completely assembled the individual documents into a single 24 page new hire packet before importing this into LiveCycle. This worked very well, but now that I have a LiveCycle document I cannot use Acrobat Professional any more for these types of operations.
    I guess my point is that assembing forms from separate documents in a one single LiveCycle document didn't work well just using the LiveCycle development tool. So my question is: are there going to be improvements to LiveCycle so that assembling documents is easier (much like what Acrobat Professional allows) and without flaw. Now that I have a 24 page LiveCycle document I cannot add any more pages onto the document from within Acrobat Professional. So another similar question is: will Acrobat Professional be enhanced to be more "LiveCycle aware" so that it can correctly add/delete pages even in LiveCycle documents. The current limitations with both products as it relates to assembling LiveCycle documents leaves something to be desired. I hope there are plans to correct this.

  • Can Flash Builder actually make native mobile apps as advertised?  Or does it always require AIR?

    I'm developing mobile applications on AIR with FlashDevelop.  It's a very nice platform to develop on, but AIR is a whopping huge download for mobile, especially over an expensive 3G connection.  I'm worried about driving away potential customers with that and I'd love to find something that builds native apps instead.  So I was very excited when I went to the Flash Builder page and read:
    "Build uncompromised native applications for iOS, Android, and Blackberry Tablet OS..."
    However, when I started looking at the documentation, everything always seems to still be based on AIR.  And AIR apps are definitively not native.
    Does anyone know if I've just missed something and Flash Builder really is able to build native apps?  Or is Adobe just blowing smoke and redefining words?
    Thanks! 

    I don't see what the problem with running on a virtual machine would be. Most Android apps run on a virtual machine. Or isn't Dalvik a virtual machine?
    However, this is true for Android and not for iOS. On Android, your application is compiled to bytecode and then run on a virtual machine. This has the advantage of allowing you app size to be smaller, since users can download the AIR runtime separately and share it among different apps.
    On iOS, it is compiled to machine language. Otherwise, Apple would not allow its distribution on the app store.
    Some features are tailored for a specific environment (for example, text input controls). Some features are available on some environments and not on others, and the runtime provides functions to determine whether they are available or not.

  • DC authentication always require for domain PC

    Hi Team,
    i wanted to know how to apply the computer in the domain to be unlocked only after they are connected to domain
    so even if the PC is locked which is in domain and if the network cable is removed from the pc then it should not be able to login to the pc
    i think this can be done via GPO but i have forgot where it can be enabled.
    i want at any time the domain pc should never check the cache credential but always check one of the DC to login or unlock the domain pc
    Thank you
    Viraj
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Yes, very much possible. 
    Using cached logon, here you go : https://social.technet.microsoft.com/Forums/windowsserver/en-US/6f9389ab-0f93-4837-aea7-3224ab806396/cached-logon-count-via-group-policy?forum=winserverGP
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How to make private subscribed-to calendars ALWAYS require password?

    Hi,
    I've published a private calendar to my idisk, and i subscribed to it from a different computer with my idisk username and password and all is fine, EXCEPT :
    It appears that once you subscribe to a private ical calender you only need to enter your password info once, when subscribing. After that, whenever i open iCal, it seems to display my calendar without ever prompting me for my password again.
    I found that a keychain item had been created for the subscribed calendar (even tho i never even asked it to save my password), so I set the keychain to "always confirm before allowing access", with the "ask for keychain password" option checked. So now it does prompt me for my keychain password, but if i then click the "deny" button on the prompt, iCal still displays the subscribed calendar! So i'm not sure what the point of the keychain was! If I delete the keychain item entirely, then there's no authentication at all. The calendar just shows up.
    Since i share the computer i'm subscribing from, i would like ical to request my idisk password (not my keychain password) every time i open it before displaying my private calendar. Is this possible?
    thanks in advance for any ideas!
    d

    berbae wrote:Does the option '--no-user-interaction' prevent the authentication dialog from appearing in your case?
    I tried that and got this error:
    Error unmounting /dev/sdc1: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
    berbae wrote:Do you mount external or internal block device file systems?
    External.  This is all for USB flash memory drives.

  • "static synchronized" always required?

    let's say i am writing a Class . and i want this Class to be bullet-proof.
    one that will never cause users of the Class to fail.
    would not i be required to define all static methods as synchronized ?
    consider this method:
    public static void smoothData(Map<Date, Float> data) {
    }i can have an object happily using this method. then, another object starts using the
    same method. at some point in the future, if the timing is just wrong, is not there a chance that
    both unfortunate invokers of that method blow-up?
    synchronizing instance methods are certainly different. create that object, and its yours to
    manage. but static methods break encapsulation .
    i, clearly, am just getting started with programming.
    so, please be patient.

    kappa9h wrote:
    let's say i am writing a Class . and i want this Class to be bullet-proof.That's a tall order! ;-)
    one that will never cause users of the Class to fail.
    would not i be required to define all static methods as synchronized ?
    consider this method:of course not
    >
    public static void smoothData(Map<Date, Float> data) {
    }i can have an object happily using this method. then, another object starts using the
    same method. at some point in the future, if the timing is just wrong, is not there a chance that
    both unfortunate invokers of that method blow-up?may not blow up, but you could certainly get dirty/phantom reads depending on what you're doing. but a static method might just get the time of day or something and doesn't need to be synchronized...

  • Attribute 'content' is always requires

    Hi for all,
    I have a view that returns some information. I tried removing the attribute 'Content' from view, but the SES requires that this column on the result. I wish that my return had a specific attribute, such as: fruits and vegetables. Today the view returns values of attribute 'fruit' in attribute 'content' and the values of 'vegetables' in the attribute 'vegetables'. I would like to do this to create a custom css in 'Configure Search Result List' for this attribute.
    In this context, I would have to replicate the data from my view?
    KEY, URL, TITLE, CONTENT, FRUITS, VEGETABLES
    ...  ...  ...    Orange   Orange ...What should I do to resolve this?
    Kind regards,

    Generally template should be like this
    <xsl:template name="ListingItem" match="Row[@Style='ListingItem']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
    <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
    <xsl:with-param name="Title" select="''"/>
    <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="Location">
    <xsl:value-of select="@Location" disable-output-escaping="yes"/>
    </xsl:variable>
    <div class="newsItemContainer">
    <div class="txt">
    <div class="title">
    <h2>
    <a href="{$SafeLinkUrl}" Title="{$DisplayTitle}">
    <xsl:value-of select="substring($DisplayTitle, 0, 15)" disable-output-escaping="yes" />
    <xsl:if test="string-length($Title) &gt;= 15">...</xsl:if>
    </a>
    </h2>
    <span class="Location">
    <xsl:value-of select="$Location" disable-output-escaping="yes"/>
    </span>
    </div>
    </div>
    </div>
    </xsl:template>

  • Two attempts always required to sync new music to phone

    After adding new music to my iTunes library, when I sync my iPhone to add the music, the music files are never copied to the phone on the first attempt.
    Immediately after the 1st sync completes, I sync a second time and the songs are copied onto the phone.
    It always takes two sync's to get the music copied onto my iPhone.
    This is consistent behavior, happening every time I add new music and try to sync.
    I also see this issue if I modify a playlist in iTunes. It will take two syncs to see the modifications in the music app on the iPhone.
    I am not seeing any error messages during the sync..
    I have no answer for this behavior and was curious if anyone else has this problem.
    iOS 7.0.4
    Mac OS 10.9.1
    iTunes 11.1.4
    Thank you for your courage.

    You can only sync one iTunes Library from Mac to iPhone.
    And just so are you aware, Apple ID accounts cannot be merged, thus merging content > Frequently asked questions about Apple ID

  • Network not always requires password sign on

    I'm using a tipowerbook running os10.4.2 w/ 802.11b card and connecting to the internet via an base station & extreme base station (at another location). This problem is occurring at both locations and has not been a problem until I upgraded to tiger.
    Basically, sometimes when I turn on my airport card and connect to the base station it asks for a password to connect, other times it doesn't. I thought I had it set up so that it would ask for a password everytime - so I'm a little perplexed.
    My concern is whether or not it's possible for others to connect to my base station without a password.
    Just for the record its not configured to remember any passwords. I checked that first right away.
    - thanks

    Well I was way off. After trouble shooting to find out how I suppossedly corrected the issue I come to find out that both base stations are continuing to allow me to sign into them without a password. My previous post that my (APEBS) AirPort Extreme BaseStation had finally been configured turns out to be incorrect. What I've found out is that both my APEBS & my APBS (AirPort BaseStation) both require a password to sign on after the other has been accessed. But if i access the same BS twice in a row a password is not required. I have 2 base stations at 2 different locations using 2 different internet conections.
    As it stands this problem remains open. I've thrown my arms in the air out of complete confusion. I would think this would be a simple pref button to check or uncheck but can't find it.
    If i ever figure this out I'll post again to this thread. Until then . . . .
    - Thanks

  • "Command Delete" a file always requires password

    How to fix the permission?? It's so annoying that always ask me the password to delete a file.

    EDIT: Forget the last... if it just happens with Trash do this...
    Choose your Home folder "Get Info" (command-i) and be sure you have "read & write" in the Sharing & Permissions section. Check under "General" section to be sure it isn't locked. If that is correct, launch Applications/Utilities/Terminal and at the prompt copy & paste this command…
    mkdir ~/.Trash
    Press return.
    If you get a message that the folder already exists, copy & paste these commands...
    sudo chown $UID ~/ .Trash
    Press return.
    Enter your admin password (it will be invisible)
    Press return.Then enter
    chmod u+rwx ~/.Trash
    Press return. Log out and back in, or restart.

Maybe you are looking for

  • HT1727 iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone

    why is itunes saying "iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone"

  • New iTunes update wont run in the background

    When the last update for iTunes came out I was pretty excited to see the new layout. When I was done installing I was really impressed with the new setup. I do however have this one problem. I used to run iTunes in the background when I was playing g

  • CS4 Motion Menus

    I don't know if anyone else has experienced this, but in CS4 (Vista 64bit) it take around an hour to render 7 motion menus that run for 53secs.  If I make the exact same project in CS3 (XP Pro 32bit) they take 3 minutes! (Not direct from timeline - b

  • No Range proble for J_1IINTPR2

    hi When trying to maintain number range for J_1IINTPR2 through J1I9 i am not finding my Series group in the dropdown. i checked all my confic. its perfect. can any one suggest where could me the mistake Jai

  • Validate method on EoImpl

    hi jdev groups using 11.1.1..5.0-adfbc i had a validate method in particulalr xxxeoimpl class. Reason: while perform tab out in ui the function will fires. well it performs it's work correclty. code in Eoimpl class     public boolean validatexxxSubTe