Diference between remove method of EJBhome and ejbobject

Whats the differece between remove() gven in EJBObject and remove in EJBHome and when to use which.
TIA

additional info. if you would like to ponder more.
Handles
Handles are a serialisable reference to a particular EJB or EJB Home object. As they are serialisable they can be stored for later use in a persistent store such as a file or database.
We can get a handle to an EJB's Home object using the method getHandle(). This method is defined in the interface javax.ejb.EJBHome and is implemented by the container.
Once we have a home handle we can get a reference to the Home object using the method getEJBHome().
We can also get handles for EJB's using the method EJBObject.getHandle() (EJBObject is the interface that all EJB remote interfaces extend). Once we have a handle we can invoke getEJBObject() to re-create a valid remote reference to the bean (if it still exists) and cast this reference to the appropriate type. We can also get a reference to the EJB home from an EJBObject, and use this home reference to get an EJBMetaData object.
The EJB home object also defines the method remove(Handle h) to remove beans given their handle. For stateless session beans, invoking this method will make any further calls on the object referenced by the stub invalid. For stateful session beans, the reference also becomes invalid, with the corresponding loss of any session data maintained for the client using the handle.
Invoking remove for an entity bean will physically delete the beans fields from the resource manager (database) and make the remote reference invalid.
For entity beans handles are an alternative for the primary key, for session beans handles provide the only means of obtaining and storing a reference to the bean.
from: http://www.csse.monash.edu.au/courseware/cse3450/Lectures/Module7/module.html

Similar Messages

  • Who can give the two impl files about EJBHome and EJBObject ??

    who can give the two impl files about EJBHome and EJBObject ??
    thanks!

    You can a lot in the internet. Try it in weblogic website for EJB samples. YOu will get the impl files .
    site is www.bea.com

  • Differenece between remove method

    Hi
    what is difference between Collection.remove() and
    iterator.remove() method.
    Why can't we use Collection.remove() method to remove a element.
    Pls clarify
    Thanks in Advance.
    ur's
    malli

    When you use Collection.remove() while using Iterator, you will get ConcurrentModificationException.

  • Diferences between the java options -classpath and -Xbootclasspath

    I have created several jar files containing my own clases using the j2skd 1.4.0
    I am not understand the diferences between the following options:
    1) Copying this files into the path .../j2re1.4.0/lib/ext/
    2) Using the java option -Xbootclasspath/a
    3) Using the java option -classpath
    Options 1 and 2 works fine for using the clases on my jar files but I don�t understand why the option 3 is not working.
    About my clases:
    a) All are contained on a package example cvm.util
    b) The class files that refers to this uses the directive:
    "import cmv.util;"
    c) Non of them replaces any original java class
    Any suggestions?

    The following command:
    java -cp c:\Work\java\Smartt\cvutil.jar;c:\Work\java\Smartt\stutil.jar -jar C:\work\java\smartt\STServer.jar SAPMOVS.STR PRE
    Generates:
    Exception in thread "main" java.lang.NoClassDefFoundError: cvm/st/ST
    at STServer.<init>(STServer.java:66)
    at STServer.main(STServer.java:56)
    But if I replace the -cp option for -Xbootclasspath/a:
    java -Xbootclasspath/a:c:\Work\java\Smartt\cvutil.jar;c:\Work\java\Smartt\stutil.jar -jar C:\work\java\smartt\STServer.jar SAPMOVS.STR PRE
    It works fine!!
    or if I copy the two jar files into the ../lib/ext path
    Then it also works pefect!
    Thanks in advance

  • Caching of EJBHome and EJBObject

    Hi,
    Currently I am using Weblogic 5.1 and running in the NT environment.
    I have a Session Bean (A) which needs to access another Entity or
    Session Bean, the usual practice is to create a JNDI context and do a
    JNDI lookup in the Session Bean (A) to get the EJBHome reference of the
    other Entity or Session Bean.
    1. To improve the performance, we would like to do a one time lookup to
    get the EJBHome reference and cache the EJBHome reference inside the
    Session Bean (A) in private variables which would be initialized in the
    constructor.
    Will doing this cause any problem when accessing the cahched EJBHome in
    a non-clustering and clustering environment ?
    2. To improve the performance, we would like to cache the reference to
    the EJBObject of the other Entity Bean or Session Bean inside the
    Session Bean (A) in private variables which would be initialized in the
    constructor.
    Will doing this cause any problem when accessing the cahched EJBHome in
    a non-clustering and clustering environment ?
    Thanks.
    Regards
    Terry

    Terry,
    Hope this helps.
    Kev.
    Terry wrote:
    Hi,
    Currently I am using Weblogic 5.1 and running in the NT environment.
    I have a Session Bean (A) which needs to access another Entity or
    Session Bean, the usual practice is to create a JNDI context and do a
    JNDI lookup in the Session Bean (A) to get the EJBHome reference of the
    other Entity or Session Bean.
    1. To improve the performance, we would like to do a one time lookup to
    get the EJBHome reference and cache the EJBHome reference inside the
    Session Bean (A) in private variables which would be initialized in the
    constructor.
    Will doing this cause any problem when accessing the cahched EJBHome in
    a non-clustering and clustering environment ?All bean homes are clusterable. This means if you are issuing a method call
    off of home and home experiences problems (network or otherwise), an
    exception will be generated and caught by a home replica aware stub. Once
    caught the method call is reissued on replicated home within another server
    instance. (Being clustered/non-clustered is transparent except to the extent
    in clustered there is the concept of a stub replicate refresh interval which
    defautlts and can be changed. This simple controls how often you replica
    aware stub is updated. Ditto for 2 below. )
    >
    >
    2. To improve the performance, we would like to cache the reference to
    the EJBObject of the other Entity Bean or Session Bean inside the
    Session Bean (A) in private variables which would be initialized in the
    constructor.
    Will doing this cause any problem when accessing the cahched EJBHome in
    a non-clustering and clustering environment ?I don't see any problems. Be aware not all beans can be faild over or are
    load levelable. You need to see:
    http://www.weblogic.com/docs51/cluster/concepts.html#1024225 for a
    definitive explanation of this. Statefull session beans and read/write
    entity beans introduce special problems and consequently require client
    control of the process.
    >
    >
    Thanks.
    Regards
    Terry

  • Diference between Java Card Operating System and java card?

    operating system is inside the ROM, but are the JCVM, APIs and JCRE inside this ROM too?

    Even if you found it, how are you going to get the cards ? How will you get the tools to put the JCRE/JCVM into ROM and start it ? What about the card OS and native methods ? How are you going to engineer that ?
    The cost of all that outweights the benefits of just purchasing the cards already loaded !
    Just my 2 cents

  • EJBHome vs EJBObject what is the difference and which one is better

    Hi
    1) What is the advantage of LocalHome & LocalObject over EJBHome and EJBObject interfaces??
    2) In which situation we need to use LocalHome & LocalObject interface??
    3) In which situation we need to use RemoteHome & RemoteObject interface??
    Thanks in advance
    Dhinesh Kumar R

    There is not much difference between Z77A-GD55 and -GD65. GD65 is a bit better than GD55 for oc and offers easy voltage check points. The slot layout is also a bit different. Looking at the price point the GD55 is m ost likely the better deal. You can compare mainboards using the following link:
    http://www.msi.com/service/product-comparison/mb.html

  • Diference between filter Lens correction and Camera Raw Lens Correction

    Whats is the main diference between tools: filter lens corection and Camera Raw Lens Correction.
    I am using PhotoShop cs6, OS Windows 7
    I already asked support team in Poland, but they send my back message: "we dont support any longer PhotoShop sc6"

    Swila, were your "other images" previously edited in Camera Raw? I.e., do they already have saved image settings? The defaults that you save via the flyout menu will only apply to new images, or if you reset an existing image to the defaults. (e.g., choose "Camera Raw Defaults" from the flyout menu).
    Eric

  • Difference between Java Method and a java function

    what is the difference between a method in java and a function
    in java ?
    ( i have seen that main() is called a function but the others
    are method )
    is it for main can only be called by JVM ?
    please help if u can...
    suman
    ( [email protected] )

    Though Ceci isn't a programmer, his answer is closer: strictly speaking, Java has no functions.
    The Java Language Specification, 2nd Ed, mentions the word "function" thrice: in the sense "to function as something", when talking about a C function, and in the index as "mathematical function". (Get the spec under "documentation" on the left hand side of your screen.)
    So, officially, no functions.
    Informally, many people use "function" and "method" as synonyms. You may even find some that calls a void-returning method "procedure" and value methods "function" (perhaps Pascal background?). And a Lisp programmer might call Runnable.run() a "thunk", but he'd just be pulling your leg.

  • Diferences between Business Delegate and Session Facade

    Hi, I've been programming with java for a long time now, but recently decided to formally studing the J2EE patterns. By now I have the intuition of many of them but in paper looks a little confusing. Let me ask you what is a clear diference between Business Delegate and Session Facade.
    For me, exposing interfaces, hiding implementations and masking the complex interactions in the back are common factors in these patterns, could you please help me to identify diferences?

    There are more subtle differences, but the basic gyst is that the Business Delegate is used on the client/presentation tier. The Session Facade is used on the server/service tier. The Business Delegate typically performs a lookup of the SessionFacade which in turn fronts a service method (EJB or otherwise). The Business Delegate pattern is typically associated with J2EE remoting and its shortcomings.
    - Saish

  • What is the diference between apple tv and airport express?

    I can see tv online  in my tv whitout airport express??
    What is the diference between apple tv and new apple tv2?

    Airport is a router, Apple TV is a set-top box.
    http://www.apple.com/airportexpress/
    http://www.apple.com/appletv/
    Original Apple TV had a hard-drive, and has been discontinued for quite some time.
    ATV2 is a streaming only device, smaller, and use less power. It is also now discontinued
    The current model, ATV 3, has a better chip allowing for 1080P playback.

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • What is the diference between pane and panel?

    What is the diference between pane and panel?
    Thanks.

    The panel is the UI part of the VI. It can be divided into several panes which are simply different parts of the same panel, which can have seperate scrollbars, etc.
    Try to take over the world!

  • Diference between STO and Shipment order?

    Hi All ,
    There are two plants , one is manufacturing and other is sales .  In sales plant sales order is created and after MRP run Purchase requisition is created(for getting materisl from production plant) . In me59 we convert this Preq to shipment order.
    1)Can oyu please tell me whant is diference between STO and shipment order?
    2) Can you tell me what is the configuration to avoid creation of shipment order and system will only create the STO from Preq after executing Me59?
    Thanks
    Rohit Chavan

    Hi Chavan,
    Starting with "Shipmnt Order" definition => (from SAP Help):
       An order to a transportation service provider to ship goods from a shipper to a single consignee with agreed terms and conditions. The corresponding confirmation from the transportation service provider is also part of the business object.
       You can use this business object to subcontract the transportation of goods from a shipper to a single consignee if you cannot fulfill a shipment request yourself or if you regularly subcontract transportation services.
       You can also use this business object in the process of transportation service provider selection and tendering. The aim of both processes is to assign a suitable transportation service provider (TSP) to a shipment order.
    http://help.sap.com/saphelp_tm60/helpdata/en/66/dda98bb6b64c30b925f031bb0a2023/content.htm
    STO is just Stock Transport Order => functionality to move stock from one plant to another plant in two steps( inclidung GI in the sending plant and GR in the receiving plant).
    Usuall documnt flow in the STO process => PO(UB or NB order type), delivery, GI -> GR (done via migo for example).
    I believe that you can avoid cration of the Shipmnt order via correct selection on ME59 screen. Just something what is characteristic for STO and not for Shipmnt Orders.
    Best Regadrs,
    Tomek.

  • Diference between Forms 11.1.1.1.0 and Forms 11.1.1.2.0 ?

    Hello,
    What is the diference between Forms 11.1.1.1.0 and Forms 11.1.1.2.0 ?
    And is better to install with Oracle WebLogic Server 11gR1 10.3.1?
    Thanks

    From a Forms point of view, there really were no changes worth speaking of between .1 and .2. There were minor changes, but mostly changes that improved usability and stability. This release was actually intended to be a patch (bug fixes), however it was decided that some features (unrelated to Forms) should be included so a new release was created. There were also some technical difficulties around actually patching the .1 release, so again the need for a new distribution was required.
    As for WLS, the version you use is not optional. FMw 11.1.1.1 required WLS 10.3.1 and FMw 11.1.1.2 requires WLS 10.3.2.
    More information can be found in the 11.1.1.2 documentation:
    http://download.oracle.com/docs/cd/E15523_01/index.htm

Maybe you are looking for