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

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

  • 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

  • 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

  • New update 8.7.1 CS6 ACR not working---(I own hard copy not a Trial or part of CC), I purged cache in bridge, and photoshop. NO photos will open when I double clik, or  will not open again in ACR alone.  When I double clik on raw file I get Sign In requir

    I purged cache in bridge, and photoshop. NO photos will open when I double clik, or  will not open again in ACR alone.  When I double clik on raw file I get Sign In required Notice--We will now register your TRIAL to your Adobe ID-------I am alread a SUBSCRIBER-------------Yes I get this same issue in Creative Cloud and same issue. error: Camera Raw editing is not enabled-----Camera Raw editing requires that a qualifying product has been launched at least once to enable this feature. These errors are happening inside both CS6 Bridge and CCphotoshop Bridge------NOTE----I am ALREADY signed into Creative Cloud and still get those message errors.........Need to fix ASAP.

    When you sign in to Adobe.com with the user ID and Password your using in the Creative Cloud and Photoshop does this link  https://www.adobe.com/account/my-products-services.html show that the account has a subscription?
    Also this is a user forum not a Adobe Customer Services web site.

  • My iPhone 4s keeps showing more space being used for photos than i have - i have deleted cache folders, unselect and reselect in iTunes and nothing appears to work my iPhone still shows 6.5 gig use of photos when i only have the  camera roll listed

    my iPhone 4s keeps showing more space being used for photos than i have -
    i have deleted cache folders, unselect and reselect in iTunes I read one post
    where they said keep syncing and in a couple days it would correct itself, that
    hasnt happened.  I have see others have the same issue but no solution and nothing
    appears to work my iPhone still shows 6.5 gig use of photos when i only have the camera roll listed

    i thought the photo stream only holds 1000 i usuaaly take each month and save them to iphoto but if thats the my ipad should say the same amount and it doesnt - it shows 2.5 gig which is correct for iphoto.  and i havent ever had that much but if for some reason icloud has that much saved how do i delete and again if it does why doesnt ipad show that amount _ HELP!

  • I used to be able to download a lot of cd's, now I cannot download more than one or two cd's at a time. I am told that my 'cache' is full and I need to re-start iTunes to clear some of the 'cache' memory. What is the cache and how do I resolve this?

    CD download problems:
    I used to be able to download numerous cd's at a time but now I can only do one or two until I restart iTunes. I have been told that my 'cache' is full and will only empty a little a each restart. I did look at the properties and the 'cache' is showing full How do I correct or improve
    this?

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • Safari is running very slow.  I have cleared cache, reset safari, and put in new DNS 208.67.222.220 runs worse now.

    Safari is running very slow.  I have cleared cache, reset safari, and added DNS Servers 208.67.222.222.

    Mac Mini connected directly to modem by ethernet cable.  Ipad loads same web pages much faster.  Again thanks for help.
    Hardware Information:
              Mac mini (Mid 2010)
              Mac mini - model: Macmini4,1
              1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
              2 GB RAM
    Video Information:
              NVIDIA GeForce 320M - VRAM: 256 MB
    Startup Items:
              HP Trap Monitor - Path: /Library/StartupItems/HP Trap Monitor
    System Software:
              Mac OS X 10.6.8 (10K549) - Uptime: 0 days 3:59:25
    Disk Information:
              Hitachi HTS545032B9SA02 disk0 : (298.09 GB)
                        (null) (disk0s1) <not mounted>: 200 MB
                        Macintosh HD (disk0s2) /: 297.77 GB (280.4 GB free)
              HL-DT-STDVDRW  GA32N 
    USB Information:
              Apple, Inc. Keyboard Hub
                        Apple, Inc Apple Keyboard
              HP Photosmart D110 series
              Logitech USB Receiver
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
              [failed] com.apple.suhelperd.plist
              [not loaded] org.samba.winbindd.plist
    Problem System Launch Agents:
              [failed] com.apple.Kerberos.renew.plist
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
    Launch Agents:
              [loaded] com.hp.help.tocgenerator.plist
    User Launch Agents:
    User Login Items:
              iTunesHelper
              HP Product Research
              HPEventHandler
    3rd Party Preference Panes:
              Flash Player
    Internet Plug-ins:
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              QuickTime Plugin.plugin
              Silverlight.plugin
    User Internet Plug-ins:
    Bad Fonts:
              None
    Top Processes by CPU:
                   4%          EtreCheck
                   4%          Safari
                   3%          WindowServer
                   2%          syslogd
                   1%          fontd
                   1%          activitymonitord
                   0%          Activity Monitor
                   0%          hpdot4d
                   0%          mds
                   0%          mdworker
    Top Processes by Memory:
              221 MB             WebProcess
              85 MB              Safari
              51 MB              WindowServer
              51 MB              Mail
              37 MB              Finder
              31 MB              mds
              27 MB              coreservicesd
              23 MB              HPEventHandler
              16 MB              HPIO Trap Monitor
              16 MB              mdworker
    Virtual Memory Statistics
              619 MB             Free RAM
              755 MB             Active RAM
              233 MB             Inactive RAM
              185 MB             Wired RAM
              200 MB             Page-ins
              0 B                Page-outs

  • How do I delete caches in Lion and which can I delete?

    How do I delete caches in Lion and which ones can be deleted?

    you can delete all of them, they will be recreated as soon as the app opens again.
    Clearing Local Caches
    quit all open apps
    open Finder press "shift+command+G" and type ~/Library/Caches
    Drag all files and folders to the trash
    Enter login password when prompted
    Reboot
    your system may seem slower after reboot, this is because the caches are being rebuilt.
    Clearing Application Caches
    quit all open apps
    open Finder Press "shift+command+G" and type /Library/Caches
    Drag all files and folders to the trash
    Reboot

  • What is a cache monitoring? and what it is used for?

    what is a cache monitoring? and what it is used for? how safe it is to execute the transaction RSRCACHE in development?
    Thank you,
    York

    Hi Les,
    Cache is a temporary storage for recently accessed data.
    Used to enhance query performance.
    Use t-code RSRT to view more on cache.
    Please see this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b987eb1443534ba78a793f4beed9d5/content.htm
    Cache helps to improve query performance. As it can save data in memory, flatfile, cluster table or BLOB.
    You can remove cache per query or inactivate it for perticular info provider or inactivate it overall.
    But which is not recommended. Yes if u know that certain queries you dont use often and its not accessing large number of records then you can inactivate it for those queries. you can manage cache via three t-codes RSRT or RSRCACHE or SPRO>SAP Reference IMG>SAP Busines Wearhouse--> Reporting relevent setting -->General Reporting Setting in BEX -->Global Cache Setting.
    please follow the link which has few good documents on cache. which will clear your complete concept for cache.
    https://service.sap.com/bi -->Product information previous releases -->BI InfoIndex --> OLAP --> you will get bunch of documents in that.
    Look at the following threads :
    OLAP Cache
    what is cache?
    also check RSRT and OLAP cahce docs
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/afc59790-0201-0010-9f99-940f7c3934fc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f4a452b-0301-0010-8ca6-ef25a095834a
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7c361b95-0501-0010-c0ab-897c5aa14504
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31b6b490-0201-0010-e4b6-a1523327025e
    Hope this helps.
    ****Assign Points if Helpful****
    Regards,
    Ravikanth.

  • Disk cache javascript functions and images

    Hi,
    How can I force client browsers of my web application to cache the images and other javascript entities like css, functions, js files, etc.
    By default it is not caching, though it should have. I have not written any code saying not to cache. Any help.
    Environment : Tomcat server - java beans - jsp [struts framework]
    In Netscape 7 if I say 'page view' it shows images and media files of my applications are not cached. Thats why application is really slow. If I compare this to some other web application which is fast, I see that media files, js files and images gets 'DISK CACHED'.]
    Can anyone explain me what is disk cache and how to get it disk cached?
    Thanks,
    sunil

    Thanks. I now understand whats the concept of disk cache.
    But after lot of analysis also my problem still remains the same. Just that there are some patterns available.
    I have some images in my own application. I also have some images which reference another site [application]. Interestingly all images which reside in my appication are not getting cached. All image which I refer into other site are getting cached. Can anyone makeout anything from this?
    I looked into META tag generated for resulting htmls. But they dint have anything which says browser not to cache.
    Can anyone list any java/jsp/html instructions which can tell browser not to cache stuff.
    Or more importantly is there any setting or instruction or command which I can write in my java/jsp/html which can override any such setting done.
    Thanks,
    Sunil

  • In preferences what does "Override automatic cache management" mean and do?

    I was wondering what "Override automatic cache management" means and does.

    Firefox normally manages the size of it's cache, and can cache more or less information depending on various factors.
    Checking this option allows you to specify the maximum size of the Firefox cache, in MB.
    There isn't usually any need to enable this option.

  • Cant open pages that need log in info. I've cleared cache, disabled extensions and deleted all cookies to no avail....help!!!

    Any page that requires a username and password will not open, this started last Thursday and at that time I was able to reinstate by clearing cache, disabling extension and deleting cookies. Subsequently that fix failed and now doing all those things has no effect.

    I found the answer: http://forums.adobe.com/thread/1018071?tstart=0 It was a conflict with RealPlayer. Incidentally, in order to find this thread again, I had to use a google search. Is there really no way to find a person's own questions via our own profile???

  • Hi, for some reason screenshots have stopped showing on the appstore, ive tried resetting my cache, restarted computer and itunes, but there still missing

    hi, for some reason screenshots have stopped showing on the appstore, ive tried resetting my cache, restarted computer and itunes, but there still missing
    im using itunes for windows, windows vista 64bit

    hi, heres the info u requested
    Microsoft Windows Vista x64 x64 Ultimate Edition Service Pack 2 (Build 6002)
    Acer Aspire 6920
    iTunes 10.3.1.55
    QuickTime 7.6.9
    FairPlay 1.11.17
    Apple Application Support 1.5.2
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 3.4.1.2
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 2.0.5.0 (214.3)
    Gracenote SDK 1.8.2.457
    Gracenote MusicID 1.8.2.89
    Gracenote Submit 1.8.2.123
    Gracenote DSP 1.8.2.34
    iTunes Serial Number 00D6ACD0035A7110
    Current user is not an administrator.
    The current local date and time is 2011-06-26 19:10:29.
    iTunes is not running in safe mode.
    WebKit-accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    ATI Technologies Inc., ATI Mobility Radeon HD 3650
    **** External Plug-ins Information ****
    No external plug-ins installed.
    The drive G: WD Virtual CD 1110 Rev 2003 is a USB 1 device.
    iPodService 10.3.1.55 (x64) is currently running.
    iTunesHelper 10.3.1.55 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:    {956AE0ED-F775-4157-8184-95CB8B89B99D}
    Description:    Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller
    IP Address:    0.0.0.0
    Subnet Mask:    0.0.0.0
    Default Gateway:    0.0.0.0
    DHCP Enabled:    Yes
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 00:00:00 1970
    Lease Expires:    Thu Jan 01 00:00:00 1970
    DNS Servers:   
    Adapter Name:    {805B9D00-0148-4062-8C0F-9DF326230B82}
    Description:    Intel(R) Wireless WiFi Link 4965AGN
    IP Address:    192.168.0.4
    Subnet Mask:    255.255.255.0
    Default Gateway:    192.168.0.1
    DHCP Enabled:    Yes
    DHCP Server:    192.168.0.1
    Lease Obtained:    Sun Jun 26 14:02:36 2011
    Lease Expires:    Mon Jun 27 14:02:36 2011
    DNS Servers:    192.168.0.1
    Active Connection:    LAN Connection
    Connected:    Yes
    Online:        Yes
    Using Modem:    No
    Using LAN:    Yes
    Using Proxy:    No
    SSL 3.0 Support:    Enabled
    TLS 1.0 Support:    Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple website was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-06-26 18:57:29.

  • My camera is not working on my HTC One (M8). Iv'e tried unistall/re-install, restarting, clearing cache, force stop, and software is up to date. Any other ideas?

    My camera is not working on my HTC One (M8). Iv'e tried unistall/re-install, restarting, clearing cache, force stop, and the software is up to date. Any other ideas?

    Turn off Google Voice detection for Google now. That breaks a lot of cameras surprisingly.

Maybe you are looking for

  • Confirmation control key check for inbound delivery creation

    Hi, Currently, in the Client's company, the process of receiving goods from purchase orders looks like that (SAP-wise): - create a purchase order, - receive goods using MIGO and automatically create an inbound delivery, - pack the delivery and post g

  • Can't use Adobe Media Encoder CS5. It won't encode

    I'm following lessons on Flash Professional CS5 Classroom in a Book and I've just got stuck on lesson 8 because AME won't work. The program opens fine, but when a drag the penguin.mov to it, I get this message: ""Adobe Media Encoder Debug Event. Adob

  • Multi-Agent Simulator Program

    Hi All, I'm working on a multi-agent simulator in which agents learn an environment while moving through it. Being somewhat new to Java, I'm looking for suggestions on what data structure to use for storing an agents associative memory. To give you a

  • Enterprise developer program

    Hi, My boss asked me to locate information on the enterprise developer program, I know that it's a yearly subscription of $299, but does this mean that it's $299 per developer? or can you create a team and it's just subscription per company at $299?

  • Using Multiply + Overprint over Image = Error?

    In the attached file i've placed a lowres cmyk image. On top of this, i have placed a rectangle filled with a spot colour called 'White'. This spot color has a cmyk value of 0,0,0,0. When i then set the white rectangle to overprint (in the attributes