Why all the conspiracy against EJBs?
Hi,
I see a lot of people (within our organization) claiming EJBs are heavy weight, while Spring is lightweight. And they hate EJBs as if it was the worst sin committed in enterprise Java. I have pretty much been a Spring and Hibernate developer for the past 1.5 years.
But on various blogs I saw positive views of EJB 3.0. So I tried building simple crud stuff using it. I found it surprisingly simpler to develop in than Spring. So, what exactly is the overhead caused by EJB 3.0 which Spring+Hibernate do not suffer from?
To put it more precisely, how do the following two cases differ to make EJB heavier than Spring?
EJB 3.0
1. Stateless EJBs managed by Java EE container.
2. EntityManager injected by container (Glassfish creates another instance of the bean with new EM instance to handle concurrent requests to same bean).
3. Container managed transactions.
4. Accessed using Local interface.
5. Injected using EJB 3.0 annotations.
Spring
1. Singleton beans managed by Spring.
2. A thread-safe proxy of EntityManager injected by Spring.
3. Spring managed transactions.
4. Accessed using Local interface.
5. Injected using Spring XML.
Completely agree (though I'm admittedly biased). Much of the negative perception comes from pre - EJB 3.0. Also want to point out that we're building on the success of EJB 3.0 to further simplify the programming model and add a number of long-requested features in EJB 3.1 (http://jcp.org/en/jsr/detail?id=318) To name a few :
-- Optional Local interfaces so a session bean can be developed using only a bean class
-- Packaging and deployment directly in a .war without the need of a separate ejb-jar
-- Singleton session beans
-- Application Startup/Shutdown callbacks
-- Asynchronous session bean invocations
-- Automatic timer creation and calendar-based timers
and more...
See my blog for more details. http://blogs.sun.com/kensaks/
--ken
Similar Messages
-
Is there a reason why all the micro4/3 lenses (panasonic, Leica and Olympus) are missing as lens corrections in all Lightroom versions?
They are not missing.
Within the last year or two many cameras do their own lens corrections before writing the JPG or even displaying the image on the back of the camera or in the electronic view finder, so Adobe does the same thing: the lens profiles are built into the camera raw engine and always applied. It’s confusing because cameras didn’t used to do this and Adobe didn’t used to do this, so we have the situation of older cameras having lens profiles you had to select from the dropdown lists, while newer cameras don’t require this. Of course removable-lens cameras still have this situation, but many/most recent P&S cameras have built-in lens corrections.
The Camera Raw plug-in for Photoshop actually indicates when a built-in profile is being used, but LR does not, yet. -
Why all the methods in interface should be implemented
why all the methods in interface should be implemented
Because you'll break the contract saying "this instance features all methods defined in that interface" otherwise.
In other words, as long as an interface isn't completely implemented by an instance, it's not validly implemented at all. -
What is the API to validate all the mappings against the DB at runtime?
What is the API to validate all the mappings against the DB at runtime?
Meaning checking that all tables and fields really exist and are compatible type.
Existance of sequence referenced could be check and checking if the increment is correct in Oracle could also be done.
I was unable to find any API on anything.
Those validation seem to be basic check that all applications should be doing.All of TopLink's metadata validation is done during session login. By default it assumes all of the provided database metadata is correct. If you want TopLink to validate against the database you must enable this on the session's integrity checker prior to login.
DatabaseSession session = (DatabaseSession)SessionManager.getManager().getSession("employee-basic-database", false);
session.getIntegrityChecker().checkDatabase();
session.login();Doug -
Why all the errors appear after some hours on pc
Why all the errors appear after some hours on pc
Thanks for reply but the 2 HDD oki think the PS is 200 W that made that problem ?Or from TEMP ? i made it more able to flow the air & become better now
-
problems with itunes. being instructed to totally uninstall in a specific order and if i fail untold evils will occur. why all the problems? Also, if i uninstall, do i lose all my music and books????
See Troubleshooting issues with iTunes for Windows updates.
tt2 -
Why all the domain values disappeared from ESB control after chinese map?
hi,
when I creating a domain value in chinese in the ESB control and confirm it, After I restart the
soa service, all the domain values that I created before and the one in chinese disappeared.
Although the domain values in english desappeared, in the code they are still can be used.
But the domain values in chinese can not be used.
All the maps(both english and chinese ) are in DVM Repository.
Can you help me ??? Why all the domain values disappeared from ESB control ?? thanks
wanglinlitwo collegues of mine ran into a similiar problem. Their ESB console seemed empty as well.Until one of them let the console open for about 10 minutes and the services/system re-appeared.
Indicating that when the services do not show up could also be caused by a serious performance glitch or the services are calling external systems which time out.
Another option is to wait for a few minutes and see if your services etc show up again.
I don't know where this performance degradation is coming from though. The only thing I noticed is that the ORAESB schema ( advanced install ) is installing al of its objects in the USERS tablespace and that most ( almost all ) tables do not have any indexes / pk / fk's on them.
Maybe one or two indexes could speed up the ESB repository considerably.
Dave, In the upcoming 10.1.3.3 release is the repository in any way altered? Default tablespace? PK/FK and/or extra indices on certain tables/columns? -
Why all the Font Explorer X server requests?
I recently upgraded to the paid version of Font Explorer, Linotype's Font Explorer Pro X 3.1, on my Macbook Pro running OSX10.6. Every time I launch the app, it goes through a 3-5 minute process where it gives me the following "Connection failed" modal dialog error about 10 times:
"The server (remote server name here) may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again."
The server being mentioned is my Mac Pro, which does not (or should not) have any bearing on what Font Explorer X is doing. I have no idea why it needs to access that computer.
I get these messages even when the Macbook is running on the same network with the Mac Pro actually connected and files from that machine open on the Mabook's desktop.
These messages never happened with the free version of Font Explorer X, so I'm at a complete loss as to what's going on. I deleted all files related to Font Explorer, including the .plist preference file and the Linotype folder in Application Support, AND I cleaned the font cache. I re-installed Font Explorer X 3.1 after emptying the trash, rebooting and clearing the PRAM. It went through all the normal motions of setup, indicating that it was a completely clean install. But again it goes through that impossible process every time I launch the app. What gives? Does anyone have any ideas?Have you tried contacting the developer of the software your using, this is the Apple forum.
-
Why all the extra songs in Itunes Music Library?
I have 20 versions from different artist of the same song in my Itunes music library of course they want you to press the buy button. When did this start? How do I just see my library not all the extra songs?
thanks! got it. it's the command key. hold it down while checking one of the boxes and the rest of them will be checked.
-
Why all the duplication?
I have 12GB of music on my computer, almost all of it ripped from ny personal CD collection with a few bought from iTunes.
When I added the music to iTunes in order to put it on my iPod it duplicated the entire library so I now have almost 24GB of music with all the music from my personal collection duplicated.
Is there any way to keep the music in the default location in My Music and synch with my iPod without having to pysically have a duplicate copy in the iTunes folder.
Also is there any way iTunes automatically recognizes new music on your computer like Real Player does?Referring to managing music on the computer without duplicating the library since music exists already on computer. iTunes only.
As to the iPod issue, I was told by apple tech support that to synch with the iPod i have to physically have the files in the iTunes folder. Is that so? If so, how does one get around that? -
Why all the copies of files in Projects?
Looking at the folders in 'Movies' they seem fairly self-explanatory:
'iMovie Events' - contains folders of imported event clips
'iMoview Projects' - contains the current and saved projects
'iMovie Sharing' - seems to hold copies of exports to iTunes in a folder named after the appropriate project, maybe YouTube stuff goes here too but I don't have an account. Not .Mac Gallery movies though.
Anyhow looking at a project folder that is 184.3MB size, 182.3MB of that is taken up my 3 movies:
tiny.3gp
mobile.m4v
large.m4v
The tiny/mobile files are what got uploaded to my .Mac account, and the large.m4v is identical to an m4v file which I exported to AppleTV.
So, what's the problem?
Well, why do I need the copies of things uploaded to .Mac shouldn't they have been deleted after upload?
Why do I need 3 copies (4 if I was syncing the AppleTV) of the large.m4v file?
There's one, large.m4v in the project folder, one in the iTunes subfolder of iMovie sharing, with the actual exported one in my iTunes library (I've checked using Show in Finder).
So for a 6 minute clip of video I've probably got 320MB effectively of 'copies', so it looks as though this application will eat drive space like there's no tomorrow.
Am I missing something or an unselected Preference?
ACSo for a 6 minute clip of video I've probably got 320MB effectively of 'copies', so it looks as though this application will eat drive space like there's no tomorrow.
iMovie '08 operates on a new model as I've said elsewhere in this forum.
DV video is no longer the prefered format for storage - your 6 minute clip would require 1.3 GB if it was in DV form. iMovie '08 is designed to make all your clips easily accessable. You will probably want to store your 'Events' on external drives, and iMovie '08 supports this.
We all have a lot to learn to learn about how to work with iMovie '08.
F Shippey -
Why all the duplicates when converting to AAC?
I need to convert all of my songs in iTunes to AAC. Unfortunately, as I do this iTunes is creating duplicates and these get synced to the iPod, leaving me with two of each song.
Why is this happening and, more importantly, can I prevent it and/or get rid of the dupes?
mac mini Mac OS X (10.4.8)StarDeb55 - I'm using iTunes on Windows to do this, so that's why I posted it here. I should have have changed the OS listed in my post.
Thanks to everyone for the help. I'm doing a batch at a time and then deleting the old files. It's pretty easy when I sort by "date modified" and then just delete a bunch at a time.
mac mini Mac OS X (10.4.8)
mac mini Windows XP Pro
Windows XP Pro -
Disk Utility - why all the authentication prompts?
I tried this question on Usenet first but did not have much response...
I have been experiencing this behaviour with running Disk Utility in a non-admin account. It seems that it is asking me to authenticate as an admin user when it shouldn't be.
Examples:
1) Using DU to unmount or eject either or both partitions on a FW drive prompts me to enter an admin username/password, but I can eject the volumes with Finder with no such prompt
2) After one of the updates (maybe 10.4.5 or 10.4.6, can't remember for sure) I started getting two authentication prompts when repairing permissions. One is expected; but why two?
3) I get prompted to authenticate when erasing a CD-RW. When I reported this to Apple as a bug I got this response: "Please know that our engineers have not been able to reproduce this reported behavior with a non-admin user. For the non-admin user no login prompt was given and cdrw erased with no issues."
4) Entering this into Terminal results in a GUI authentication prompt popping up:
diskutil unmount /Volumes/partition1
But I can run this applescript and it works with no authentication:
do shell script "diskutil unmount \"/Volumes/partition1\""
Is ANY of this happening to anyone else? What's wrong with my system?
eMac Mac OS X (10.4.8)Never mind, I fixed it myself. I fired up OnyX and let it have a go on my boot drive. I let it delete caches, rebuild this and that, pretty much let it do everything it could do. After a reboot now all is okay!
-
Why all the crashes? Please help.
I can't go a day without multiple crashes. It seemingly all started when I upgraded to Lion.
Interval Since Last Panic Report: 20062 sec
Panics Since Last Report: 2
Anonymous UUID: E71B5177-E727-4636-AF21-D671256C937A
Tue Oct 18 09:52:24 2011
panic(cpu 1 caller 0xffffff80002c266d): Kernel trap at 0xffffff8000242aae, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffffffffffffff, CR3: 0x0000000000100000, CR4: 0x0000000000000660
RAX: 0x0000000000000002, RBX: 0xffffffffffffffff, RCX: 0x0000000007ff4c77, RDX: 0xffffff808acd677a
RSP: 0xffffff807f33bf20, RBP: 0xffffff807f33bf90, RSI: 0xffffff800ad8a000, RDI: 0xffffff800353ede0
R8: 0xffffff800ad9866a, R9: 0xffffff800ad8a000, R10: 0x0000000100000e65, R11: 0x0000000000000001
R12: 0x0000000107ff4c76, R13: 0xffffffffffffffff, R14: 0xffffff800353edd0, R15: 0x0000000000000000
RFL: 0x0000000000010202, RIP: 0xffffff8000242aae, CS: 0x0000000000000008, SS: 0x0000000000000010
CR2: 0xffffffffffffffff, Error code: 0x0000000000000000, Faulting CPU: 0x1
Backtrace (CPU 1), Frame : Return Address
0xffffff807f33bbe0 : 0xffffff8000220702
0xffffff807f33bc60 : 0xffffff80002c266d
0xffffff807f33be00 : 0xffffff80002d7a1d
0xffffff807f33be20 : 0xffffff8000242aae
0xffffff807f33bf90 : 0xffffff800028c737
0xffffff807f33bfb0 : 0xffffff8000820057
BSD process name corresponding to current thread: kernel_task
Mac OS version:
11C74
Kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
System model name: iMac8,1 (Mac-F226BEC8)
System uptime in nanoseconds: 5745429450764
last loaded kext at 169526329745: com.apple.filesystems.smbfs 1.7.0 (addr 0xffffff7f8078d000, size 241664)
last unloaded kext at 147926025400: com.apple.driver.AppleFileSystemDriver 13 (addr 0xffffff7f81ca0000, size 12288)
loaded kexts:
com.parallels.filesystems.prlufs 2010.12.28
com.parallels.kext.prl_hid_hook 7.0 14924.699487
com.parallels.kext.prl_hypervisor 7.0 14924.699487
com.parallels.kext.prl_usb_connect 7.0 14924.699487
com.parallels.kext.prl_vnic 7.0 14924.699487
com.parallels.kext.prl_netbridge 7.0 14924.699487
com.apple.filesystems.smbfs 1.7.0
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleHDA 2.1.3f7
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.1
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.5d4
com.apple.driver.AppleLPC 1.5.3
com.apple.driver.AppleBacklight 170.1.9
com.apple.filesystems.autofs 3.0
com.apple.kext.ATIFramebuffer 7.1.2
com.apple.ATIRadeonX2000 7.1.2
com.apple.driver.AppleIRController 312
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.SCSITaskUserClient 3.0.1
com.apple.iokit.IOAHCIBlockStorage 2.0.1
com.apple.iokit.AppleYukon2 3.2.2b1
com.apple.driver.AppleUSBHub 4.5.0
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleUSBEHCI 4.5.0
com.apple.driver.AirPortBrcm43224 500.36.11
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.driver.AppleUSBUHCI 4.4.5
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 167.0.0
com.apple.driver.AppleAPIC 1.5
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1
com.apple.driver.AppleIntelCPUPowerManagement 167.0.0
com.apple.driver.AppleAVBAudio 1.0.0d11
com.apple.driver.DspFuncLib 2.1.3f7
com.apple.driver.AppleHDAController 2.1.3f7
com.apple.iokit.IOHDAFamily 2.1.3f7
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOBluetoothSerialManager 4.0.1f4
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAVBFamily 1.0.0d22
com.apple.iokit.IOEthernetAVBController 1.0.0d5
com.apple.iokit.IOAudioFamily 1.8.3fc11
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.AppleSMC 3.1.1d8
com.apple.driver.IOPlatformPluginFamily 4.7.5d4
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.kext.triggers 1.0
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.kext.ATI2600Controller 7.1.2
com.apple.kext.ATISupport 7.1.2
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.AppleUSBHIDMouse 170.4
com.apple.driver.AppleHIDMouse 170.4
com.apple.driver.AppleUSBHIDKeyboard 152.3
com.apple.driver.AppleHIDKeyboard 152.3
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.1f4
com.apple.driver.AppleUSBBluetoothHCIController 4.0.1f4
com.apple.iokit.IOBluetoothFamily 4.0.1f4
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.1
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.iokit.IOUSBMassStorageClass 3.0.0
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.1
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.driver.XsanFilter 403
com.apple.iokit.IOATAPIProtocolTransport 3.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.1
com.apple.iokit.IOUSBUserClient 4.5.3
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IO80211Family 411.1
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IOUSBFamily 4.5.3
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 165.3
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.7
com.apple.iokit.IOACPIFamily 1.4
Model: iMac8,1, BootROM IM81.00C1.B00, 2 processors, Intel Core 2 Duo, 2.66 GHz, 4 GB, SMC 1.29f1
Graphics: ATI Radeon HD 2600 Pro, ATI Radeon HD 2600 Pro, PCIe, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR2 SDRAM, 800 MHz, 0xAD00000000000000, 0x48594D503132355336344352382D53362020
Memory Module: BANK 1/DIMM1, 2 GB, DDR2 SDRAM, 800 MHz, 0xAD00000000000000, 0x48594D503132355336344352382D53362020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8C), Broadcom BCM43xx 1.0 (5.10.131.36.11)
Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Hitachi HDS721075KLA360, 750.16 GB
Parallel ATA Device: MATSHITADVD-R UJ-875
USB Device: USB2.0 Hub Controller, 0x0409 (NEC Corporation), 0x0058, 0xfa400000 / 3
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfa430000 / 5
USB Device: Apple Optical USB Mouse, apple_vendor_id, 0x0304, 0xfa433000 / 7
USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfa432000 / 6
USB Device: hp LaserJet 2300 series, 0x03f0 (Hewlett Packard), 0x0b17, 0xfa440000 / 4
USB Device: External HDD, 0x1058 (Western Digital Technologies, Inc.), 0x0903, 0xfa200000 / 2
USB Device: Built-in iSight, apple_vendor_id, 0x8502, 0xfd400000 / 3
USB Device: CanoScan, 0x04a9 (Canon Inc.), 0x1900, 0xfd100000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x1a100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x820f, 0x1a110000 / 5
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x5d100000 / 2Describe your crash? Are you getting four language screens that you must restart?
Have you tried to see if they don't happen with just an Apple keyboard and mouse attached?
Have you tried to see if they happen when booted off the DVD that shipped with the machine?
Have you run the hardware test that came with the machine?
If you don't have the orignal discs, do you have a 10.5.4, 10.5.6, or 10.6 retail disc? These look like and and do not say Upgrade, Dropin, or OEM on them. -
Why all the lines and question marks on my recovered iWeb pages?
My iWeb recovered pages (which I did find, thanks to several of you) are covered with question marks and horizontal and < and > lines. Why would this happen and how do I know it won't happen when I publish?
G4 Dual Mac OS X (10.4.10) all software updatesis this what you see:
http://www.geocities.com/[email protected]/images/badkidblue.jpg
it was from this thread:
http://discussions.apple.com/thread.jspa?messageID=2746077�
if you see something similar as above, you may have corrupted iweb template, re-install iweb...
Maybe you are looking for
-
Pricing determination for free goods
Hi Experts, Please help me for the following issue: This is with regarding pricing determination. I have a requirement that, for each 10 quantities of Material ABC sold out, 3 quantities of same material ABC is given free. In VBN1, I have set the req
-
Why is the scan size of our epson 15Mb for PDF using image capture?
Hi All- This has been plaguing us since Snow Leopard when we lost the Epson Scanner tool from Epson to Image Capture scanning using our Epson 835 Artisan. PDF sizes are ridiculous using Image Capture. For example, 3 pages of text using Image Capture
-
Dear All, In our PRD server all the print is going in the waiting state ,,,how to resolve the issue ...as we are using 3 spool work process but the one spool work process is stopped and remaining 2 are free but not doing any thing ,,,plz give any sug
-
Need Documents on SAP Workflow
Hi, Could anybody please send me some good documents on SAP Business Workflow? Thanks and Regards, Pritam
-
Hi Apex Gurus, Do you have any idea if I want to create something like help pop up in apex what I should do? For example I have interactive report of customers and I want to be able to see information regarding to that customer like data in customer