Difference between narrow() method usage and simple class cast for EJB

Hi,
I have a very simple question:
what is the difference between PortableRemoteObject.narrow(fromObj,
toClass) method usage and simple class cast for EJB.
For example,
1)
EJBObject ejbObj;
// somewhere in the code the home.create() called for bean ...
ABean a = (ABean)PortableRemoteObject.narrow(ejbObj,ABean.class);
OR
2)
EJBObject bean;
// somewhere in the code the home.create() called for bean ...
ABean a = (ABean)ejbObj;
Which one is better?
P.S. I'm working with WL 6.1 sp2
Any help would be appreciated.
Thanks in advance,
Orly

[email protected] (Orly) writes:
Hi,
I have a very simple question:
what is the difference between PortableRemoteObject.narrow(fromObj,
toClass) method usage and simple class cast for EJB.
For example,
1)
EJBObject ejbObj;
// somewhere in the code the home.create() called for bean ...
ABean a = (ABean)PortableRemoteObject.narrow(ejbObj,ABean.class);
OR
2)
EJBObject bean;
// somewhere in the code the home.create() called for bean ...
ABean a = (ABean)ejbObj;
Which one is better?(1) is mandated by the spec. It is required because CORBA systems may
not have sufficient type information available to do a simple case.
P.S. I'm working with WL 6.1 sp2 You should always use PRO.narrow()
andy

Similar Messages

  • What is the difference between base method 0002 and 0011

    Hi,
    could you please explain what is the difference between base method 0002 and 0011?
    0002: Ordinary: no automatic depreciation
    0011: Ordinary: percentage from useful life
    if we assing base method: 0002 in dep. key? what will happen in future?
    if we assing base method: 0011 in dep. key? what will happen in future?
    please clarify my doubt.?
    Thanks
    Indu

    Let me clear, I have bought WinSL 8.1 SNGL OLP NL Acdmc Legalization GetGenuine (part
    No - 4HR-00400). It means my machine has legal OS and I can use it and I dont need to buy WinPro
    8.1 SNGL Upgrd OLP NL Acdmc (Part no. - FQC-08173).
    is it?
    I believe that is correct. There should be no reason to buy both licenses for one machine. You should verify this with your reseller or MS.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Difference between SAP 4.7 and ECC 6.0   for mm

    hi sap guru ,
    Difference between SAP 4.7 and ECC 6.0   mm point of view
    4.7 already implemented  now  upgradetion  to 6.0 what is  major role  as a mm consultant,
    thanks
    biswa

    Hi,
    check the links for complete info
    vimp link
    http://erp.fmpmedia.com/Default.aspx?alias=erp.fmpmedia.com/english
    Here select source Release version as SAP R/3 and Target version as SAP ERP 6.0, solution area as "Procurement and logistics execution" then Module as "MM"
    click on "Search"
    U will get the complete info
    ECC 6 has new gl ledger concept which is different for 4.7
    version in the folloiwng manner.
    1. It enables Business area posting - Segment reporting
    made easy
    2. Profit centre accounting is through new GL
    3. Split of entry to post assets and liabilities to
    respective profit centres. (Balance sheet items)
    4. Enables commitment of FM
    http://www.allinterview.com/showanswers/71032.html
    Edited by: Mohd Uzair Hussain on Mar 11, 2010 9:58 PM

  • Difference between mobile web dynpro and simple web dynpro application

    Hi Everyone,
    Can anyone pls let me know what's the difference b/w mobile web dynpro application and an offline or simple web dynpro application.
    Thank U!!
    Ravi Aswani

    Hi ,
    Mobile WebDynpro
    The SAP Web Application Server allows direct online access to Web Dynpro applications using mobile devices. As part of the SAP Web Application Server, Web Dynpro provides a development and runtime environment with which you can quickly and simply create professional user interfaces for desktop PCs or for mobile devices. An appropriate infrastructure and renderer classes are provided for developing mobile Web Dynpro applications for Pocket PCs as well as for BlackBerry Wireless Handhelds and Nokia Series 80 devices.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/100d4113eff16fe10000000a1550b0/frameset.htm
    WebDynpro Java
    Web Dynpro is a client-independent programming model of the SAP NetWeaver technology platform for developing user interfaces for professional business applications. It is based on the model view controller paradim which ensures that the business logic is separated from the presentation logic. This architecture is visible in the Web Dynpro perspective of the SAP NetWeaver Developer Studio (NWDS).
    Web Dynpro helps you with the development of Web applications by:
    ·        Ensuring platform-independence with the meta model approach
    ·        Minimizing the implementation effort through declarative programming
    ·        Supporting a structured design process by applying the model view controller paradigm
    ·        Providing reuse and better maintainability by using components
    ·        Providing graphical support with tools in the Web Dynpro perspective
    ·        Providing the SAP NetWeaver Java Development Infrastructure (NWDI) which supports team work with different services such as source code versioning and the Central Build Service.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/100d4113eff16fe10000000a1550b0/frameset.htm
    Thanks
    Suresh
    Edited by: Suresh Mandalapu on Sep 2, 2008 11:07 AM

  • Difference between website data usage and notifications

    I check my data usage on the Verizon wireless website frequently.  Yesterday it showed 5.7 GB used with 4.3 approx remaining and one day left before rolling over. Yet the day before I received a notification I had used 75% of my plan, and this morning another one indicating 90% usage, yet the website showed something entirely different.  So why the difference?

    I check my data usage on the Verizon wireless website frequently.  Yesterday it showed 5.7 GB used with 4.3 approx remaining and one day left before rolling over. Yet the day before I received a notification I had used 75% of my plan, and this morning another one indicating 90% usage, yet the website showed something entirely different.  So why the difference?

  • What is the difference between the usb charger, and the other one for micro

    I bought the usb travel charger.:smileysurprised: What about the other one?

    A compiled class has two concealed initialisation methods, class initialization <clinit> and instance initialization <init>.
    These are created by concatenating initialisation blocks and initial value clauses associated with fields of the class in the order they appear in the source.
    Class initialisation is performed the first time a class is "actively used", which means either by accessing a static field or member or by instanciating the class. It's performed first, and the initialisation methods are syncrhonized on the class, so that the class is effectively locked until it finishes.
    The normal sequence of isntantiating the class is:
    1) Call <clinit> if it hasn't been called.
    2) Allocate the space for the instance and clear the fields to zero/null
    3) Call <init>
    4) Execute the constructor
    <init> first calls super.<init>

  • Difference between PAC reutrn "DIRECT" and Firefox' "no proxy for"?

    I'm trying to run a local IPython Notebook [1] in Firefox with a proxy-auto-config (PAC). It opens under http://localhost:8888/ I get an error message just as stated in [2] about a websocket connection failing (also when changing to http://127.0.0.1:8888/). Changing the advanced network properties to manual proxy settings with "no proxy for localhost, 127.0.0.1", the error disappears. I think that means Firefox tries to use a proxy for localhost when the PAC file is the active setting. I looked into the file and found
    function FindProxyForURL(url, host)
    if (shExpMatch(url, "http*://localhost/*")) return "DIRECT";
    if (shExpMatch(url, "http*://localhost:*/*")) return "DIRECT";
    if (shExpMatch(url, "http*://127.*.*.*/*")) return "DIRECT";
    So, if I understand this correctly, Firefox shouldn't be using a proxy for localhost, but I get a different behavior than if I use the manual setting ignoring localhost and 127.0.0.1 -- why is that? There is no other mention of localhost in the PAC file. The user of stackoverflow in [2] has noticed the same problem.
    I also tried in safe mode, no difference.
    [1] http://ipython.org/notebook.html
    [2] http://stackoverflow.com/questions/19245200/ipython-notebook-websocket-connection-failed
    Using Firefox ESR 31.5.3 with Windows 7

    Hi crunth ,
    It might be helpful to direct this to the right audience:
    If you can reproduce it, please file a bug in bugzilla.mozilla.org under ESR and talk to the mailing list listed:
    *[https://www.mozilla.org/en-US/firefox/31.3.0/releasenotes/]

  • Difference between PT 8.53 and PT 8.52 for administrators

    HI
    I am working on Upgrade project. We have not started it yet. we are planing to upgrade from PT8.52 to PT 8.53. Can anyone provide me the link where I can get what are the new features added in PT8.53 as an administrators point of view. I have tried searching it but I did not find it for administrators.
    Thanks in Advance

    If you looking for Tools 8.53 documentation please go to
    Oracle's PeopleSoft PeopleTools 8.53 Documentation Home Page (Doc ID 1494462.1)
    If you looking for more information about Tools only upgrade see the following article:
    Information Center: PeopleTools Only Upgrade, Chapter by Chapter (Doc ID 1471660.2)
    And course do not forget about the community pages

  • What is the difference between System.out.println() and System.out.print()?

    Hi everyone,
    I am only a new comer and know very little about Java. I will appreciate a lot if anyone teaches me what the difference between two method println and print is? Thank you so much.

    The PrintStream class defines a number of print() methods that ... print
    things. System.out is a commonly used PrintStream.
    The difference between the print(...) and println(...) methods is that the
    second one prints a new line at the end. What it actually prints varies
    from system to system: sometimes it will output a '\n' sometimes not.
    There is a system property called line.separator that determines
    how a new line is output.

  • What's the difference between a web site and a web application?

    I'm stumped trying to come up to a difference between a web site and a web application for myself. As I see it, a web site points to a specific page and a web application is more of some sort of 'portal' to content and information.
    But where I'm stuck is that a web application is still viewed through a browser (is it not?) and a web site can still view content dynamically, making the line between web site and application prety gray.
    For instance, does a web site using ASP.NET or AJAX (I assume ASP.NET is AJAX's proprietary sibling, if not, ignore ASP.NET AND concentrate on the AJAX), becomes a web application because it can retrieve data dynamically and asynchronously or would a website
    using PHP and a CMS be more of a web application because it forms the pages on request, based on the request of the client and its content in its databse?
    Or maybe I'm totally wrong here - what differenciates between a web application and a website?
    http://support.peopleperhour.com/entries/68630566--C-mon-lets-Watch-The-Other-Woman-2014-full-movie-online-free
    https://glossicom.zendesk.com/entries/68643806--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    https://cloudhance.zendesk.com/entries/68115098--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    This is totally personal and subjective, but I'd say that a website is defined by its content, while a webapplication is
    defined by its interaction with the user. That is, a website can plausibly consist of a static content repository that's dealt out to all visitors, while a web application depends on interaction and requires programmatic user input and data processing.
    For example, a news site would be a "website", but a spreadsheet or a collaborative calendar would be web "applications". The news site shows essentially the same information to all visitors, while the calendar processes individual data.
    Practically, most websites with quickly changing content will also rely on a sophisticated programmatic (and/or database) backend, but at least in principle they're only defined by their output. The web application on the other hand is essentially a program that
    runs remotely, and it depends fundamentally on a processing and a data storage backend.
    http://support.peopleperhour.com/entries/68125597--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    https://cloudhance.zendesk.com/entries/67541393--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    http://support.peopleperhour.com/entries/68168787--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    https://glossicom.zendesk.com/entries/68161538--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    There is no real "difference". Web site is a more anachronistic term that exists from the early days of
    the internet where the notion of a dynamic application that can respond to user input was much more limited and much less common. Commercial websites started out largely as interactive brochures (with the notable exception of hotel/airline reservation sites).
    Over time their functionality (and the supporting technologies) became more and more responsive and the line between an application that you install on your computer and one that exists in the cloud became more and more blurred.
    If you're just looking to express yourself clearly when speaking about what you're building, I would continue to describe something that is an interactive brochure or business card as a "web site" and something that actually *does something that feels
    more like an application as a web app.
    The most basic distinction would be if a website has a supporting database that stores user data and modifies what the user sees based on some user specified criteria, then it's probably an app of some sort (although I would be reluctant to describe Amazon.com
    as a web app, even though it has a lot of very user-specific functionality). If, on the other hand, it is mostly static .html files that link to one another, I would call that a web site.
    Most often, these days, a web app will have a large portion of its functionality written in something that runs on the client (doing much of the processing in either javascript or actionscript, depending on how its implemented) and reaches back through some
    http process to the server for supporting data. The user doesn't move from page to page as much and experiences whatever they're going to experience on a single "page" that creates the app experience for them.

    ...can i make as many iweb websites as i want? ...and as many blogs as i want? ...i have never made one before....
    ....although, i do have my own small business and i do have a website that i paid a guy to make and also host....(which is a waste of $$$$ in my opinion as i think i can do a better job making one myself through iweb) ....
    ...anyways, i know it is splitting hairs but what exactly is the diff b/w a blog and a website ....i am under the impression that a blog is just a personal newsletter sort of thing,...?

  • Difference between Oracle Testing Center and Prometric?

    what is the Difference between Oracle Testing Center and Prometric?

    Notes for an Oracle Testing Center are here:
    [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=51&p_org_id=1001&lang=US#4]
    The cancellation policies are possibly harder than a Standard Testing Center Vendor.
    I would suggest that Oracle Testing Centers possilbly offer exams more on an event or batch basis; (Oracle Openworld is an example; though thats not what one would think of as an Oracle Test Center).
    In general I suspect most people will find it just as easy to take the exam through a prometric(or new testing vendor) center. and there will often typically be more slots available. And the testing center will be typically be examing for other testing suppliers, perhaps mosting microsoft and cisco, but there's a mryiad of others out there as well. So the'll probably be well set up for it.
    Here in the UK (south) we have a fairly (very) dense population. I've used 4 centers myself:
    One 5 miles from me, a college, thats dual Pearson VUE/Prometric; though there only offering Pearson VUE at present until they moved to a bigger suite, with 4 stations. Nice and friendly. 5 days week.
    One 25 miles from me, a training center, that offer dual Pearson VUE/Prometric; 4/8 stations; very friendly, cup of coffe offered; I usually go by Puff Puff to this one.
    One 10 miles from me, maybe a 12 workstation suite, they offer usually prometric (but not oracle) on one a week. Felt Conveyor like compared to other two above; but very friendly and efficient.
    One 35 miles from me, Prometric only including oracle only, maybe a 12 workstation suite, CRT's, and not necessarily of the best quality. This one really felt conveyor like to me, though staff were friendly. This is effectively a drive for me. Also whereas the others I've usd sit one down to sign the forms in a room this one was done at building reception.
    The city center ones can sometimes be a little noisy and earplugs are recommended, though the one city center one I've used has provided them others don't have to.
    In general from once I used a particular center I feel more comfortable; I'll know exactly where it is; where I have have a quick cup of coffee (with sugar) beforehand going over notes. This all helps me to be a little less anxious before the exam. When I get that prepartion wrong, and I certainly did once, if probably cost me maybe 2/3/4 %.
    Getting to know your local test center and routine is one reason why I encourage people to take 1z0-007 and 1z0-051 proctored so they know the procedure and get to know a local Promteric etc Test Center before taking a more advanced and expensive exam.
    Rgds -bigdelboy.
    PS: I expect comments from some people who live 100 (+) miles from a test center and have no alternative choice. And those in some places will probably say they feel they are treated like cattle by the test center.

  • Difference between this month amount and last month amount.

    Hi experts,
    in report i am showing amount in one coloumn for one year and month wise. in another coloumn i need to show the difference between present month amount and last month.amount for the total months..how to done this..
    regards...roi

    Hi,
    You may do this using cell definition.
    If number of months and format is finite then you may do this creating seperate RKF/Selction for each month and then use the same in required CKF/Formulas for deducting. You may display the CKF/Formulas in report for your requirement and hide the rest.
    I hope it will help.
    Thanks,
    S

  • Difference between the T440s 20AR and 20AQ models

    Hi All,
    Does anyone have any information on the difference between the 20AR models and the 20AQ models for the thinkpad T440s?
    I can't seem to find the difference and it appears as though the 20AR models are always sold for significantly more in the retail stores.
    Thanks!

    Hi,
    Good question.  Digging through the tabook  http://www.lenovo.com/psref/pdf/tabook.pdf  it looks like a warranty difference.  AR models have a GMP (Global Models Plus) warranty.  I think...
    I haven't been able to dig up exactly what that means so far, but hopefully some else will join in and explain.
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Difference between a java program and a java class

    Hi there,
    What is the difference between a java program and a java class?

    HI,
    A java class is an object - described in a .class file - which has been given properties and behaviours and which can be instantiated in a program.
    A java program( application ) consists of at least one class (one of which must be declared public) and which executes its main() method ( of the public class ) when it is started.
    Every program is a class but not every class is a program.
    Examples:
    A java program
    // this simple program will print out the first command line argument you put
    // in after calling : java ScreenWriter "arguments"
    class ScreenWriter
    public static void main( String [] args )
    if( args.length > 0 )
    System.out.println( args[0] );
    A java class
    //the Math class is already defined in the java.lang package
    //and contains a constant for PI
    //So I can include the Math class with the PI constant in my simple program
    //and now I have a program that involves my ScreenWriter class and the Math class too.
    class ScreenWriter
    public static void main( String [] args )
    if( args.length > 0 )
    System.out.println( args[0] );
    System.out.println( "The value of Pi is: " + Math.PI );
    When you see package and import declarations at the start of a program they are there to ensure the compiler knows which classes are used in the program.
    Hope that helps,
    Terry

  • Differences between Synchronized methods and blocks

    Hi all,
    I would like to differences between Synchronized methods and blocks.
    - Muni

    Well, you'll get so many of right answers in next ten to thirty minutes.
    I like to yield :)
    Oooo... Ten minutes has passed.
    Synchronized block is a toilet room with a lock in a public lavatory.
    Only one person(running thread) can have the lock at a time.
    And, she/he have to receive the lock from a particular object obj like:
    synchronized(obj){.....} // one object has only one lock for this {} toilet and for any other toilets how many there are... *
    (*: In other words, while a thread is executing a synchronized(obj){} block, other threads can't enter other synchronized(obj){} blocks.)
    Synchronized method is a kind of synchronized block.
    This special block is defaulted to have lock from the object on which the method is defined.
    public class Foo{public synchronized Method(){}}
    use the lock of a Foo object.
    Message was edited by:
    hiwa
    Message was edited by:
    hiwa

Maybe you are looking for

  • Upgrading to Tiger & HP AIO printer TIP

    I just upgraded from Panther to Tiger, 10.4.3. After reading about all of the issues surrounding HP AIO printer issues and upgrading to Tiger here is what I did and my HP AIO 6110 works perfectly after the upgrade. Before upgrading I did a complete c

  • Advanced Search in Apple Mail with Logical Expressions (Attibutes)

    We need to be able to search in Apple Mail, currently version 3.6 (936), with advanced expressions such as the junk mail flag. We want to search only within mail flagged as junk with a specific domain, such as a domain.com. Users are not using Junk M

  • Overloading the Firewire Bus?

    I am having troubles with having a Canon GL2 video camera being plugged into my iMac G5 via Firewire and a LaCie 250 GB external harddrive being plugged into my iMac G5 via Firewire at the same time. If they are both plugged in via Firewire at the sa

  • How to see materials which donot comes under product cost collector

    hello every body, can any one help me in finding  materials which donot comes under product cost collector. thanks for all the people who are supporting me regards, Bh.krishna mohan

  • "CNTL_ERROR" raised , when using a Function Module

    Hi All, I am trying to reuse an existing Function module. This function module, fetches data in an internal table and creates a popup using ALV, using the Call Screen statement. I cannot modify this function module. Is there any method, how I can use