EJB3 customizing/extending question

I have an EJB module with some stateless session beans in it. They all are quite obviously currently deployed.
I started down the road on the following thought experiment, which I'm fairly convinced is invalid, but thought I'd ask.
Suppose I "buy" that fabled EJB jar that you're supposed to be able to purchase from so-called component vendors. And suppose I want, for whatever reason, to treat that ejb-jar file as much like a black box as possible.
Now suppose that it ships with a WombatBean in it, whose ejb-name is WombatBean, and whose ejb-class is com.foo.WombatBeanImpl. Suppose I want to add an additional couple of attributes--semantically--to it, without cracking open the ejb-jar.
Could I:
* Write an EJB that extends WombatBeanImpl--suppose it's com.ljn.WombatBeanExtension--and pack it up in its own ejb-jar file
* Somehow convince the EJB container to map the ejb-name of WombatBean to "point" at com.ljn.WombatBeanExtension, such that com.foo.WombatBeanImpl is always "shadowed"?
I understand that I could sort of accomplish this and say that for all applications I know about I could go play games with ejb-refs and the like and point them all at my bean instead of theirs, but I guess I wanted to do this "underneath" the ejb-name they're all referencing.
Does this make any sense? Am I waaaay off base here?
Thanks,
Laird
P. S. If I can do this, but it's appserver-dependent, I'd appreciate those answers too. I'm using EJB3/JavaEE5 on Glassfish b32.

ejb-name is only guaranteed to be unique within the scope of an ejb-jar, so by definition if the other
ejb is in a different ejb-jar the ejb-names would not clash.
Regarding the issue of sub-classing,
it's not that you can't use implementation inheritance, where one of the super-classes happens
to be the bean class of an EJB component. The point is that there is no special notion of
component inheritance for beans. In other words, just because you write a class FooBean
whose parent is a bean class with an @Stateless annotation doesn't make FooBean an EJB.
FooBean would need its own component-defining annotation or an entry in an ejb-jar.xml that
declares it as a bean. In addition, some of the ejb meta-data in the super-class would not
apply to FooBean, such as its metadata for declaring which local/remote interfaces it exposes.
There is a lot of complexity in defining rules for processing of the ejb annotations
to support full component inheritance so the spec decided to limit this support to keep
things simpler.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Oim 11g Custom Challenge questions

    hi,
    does oim 11g allows users to setup custom challenge questions.
    Sun Idm does have this feature..
    any idea on Oracle Idm..
    thank you.

    How to add custom challenge questions in OIM 11g
    Find below link for 11gR2
    http://srini-bellamkonda.blogspot.in/2012/11/adding-custom-challenge-questions-in.html

  • Adding custom challenge questions in OIM 11gR2

    Friends,
    Can you please let me know the process to add new custom challenge questions in OIM 11gR2?
    Thanks

    Detailed steps have been given in my blog at the below url.
    http://srini-bellamkonda.blogspot.com/2012/11/adding-custom-challenge-questions-in.html
    Have a look and let me know if you have any questions.

  • Custom challenge questions in OIM 11gR2

    Hi,
    Please let me know how to add custom challenge questions in OIM 11gR2?

    Follow the steps given in blog to add custom challenge questions.
    http://srini-bellamkonda.blogspot.com/2012/11/adding-custom-challenge-questions-in.html

  • Problem while setting custom Challenge Questions in 11gR2

    Hi all,
    I am trying to add some custom Challenge Questions in 11gr2 but it is throwing error . For this first i added questions in Look up and then in customResources_en.properties and then i restarted OIM server.
    when a user is logging for the first time he has to set his challenge question there i am getting error like:
    JBO-29000: Unexpected exception caught: oracle.iam.ui.platform.exception.OIMRuntimeException, msg=JBO-29000: Unexpected exception caught: java.util.MissingResourceException, msg=Can't find resource for bundle java.util.PropertyResourceBundle, key KEY_WHATTHEHELL
    JBO-29000: Unexpected exception caught: java.util.MissingResourceException, msg=Can't find resource for bundle java.util.PropertyResourceBundle, key KEY_WHATTHEHELL
    Localized message not available. Error returned is: Can't find resource for bundle java.util.PropertyResourceBundle, key KEY_WHATTHEHELL
    Here My custom challenge question is:WHATTHEHELL.
    Its an urgent requirement, so reply ASAP.
    Thanks In Advance.

    If you are going for Localizing Challenge Questions and Responses
    http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/app_localizing.htm#OMADM5054

  • Fabric Extender question to a dual-homed N5k

    According to latest release notes:
    http://www.cisco.com/en/US/customer/docs/switches/datacenter/nexus5000/sw/release/notes/Rel_4_2_1_N1_1/Nexus5000_Release_Notes_4_2_1_N1_1.html#wp144071
    "Support for a maximum of 12 Fabric Extenders dual-homed to a vPC Cisco Nexus 5000 Series switch pair and a maximum of 576 hosts connected to Fabric Extenders connected to Cisco Nexus 5000 Series switches"
    I have mixed mode so some of the FEX will only connect to one N5k despite the 2N5k will be vpc. Cisco calls this "Fabric extender straight-through topology". This is because I am running port-channel with VM on these particular FEX.
    http://www.cisco.com/en/US/prod/collateral/switches/ps9441/ps9670/C07-572829-00_Design_N5K_N2K_vPC_DG.pdf
    question is:
    1. Can I assume 2148 is included per release notes?
    2. Can I have more than 2 ports in the portchannels in straight-through mode?
    3. Release notes show 576 host which is (12 max times 48 ports). I assume I can have more logical host meaning vm host via the port channels, right...?
    Thx

    Any Nexus 5000 can have a total of 12 FEX's connected to it physically.  If you have 12 FEX's in dual-homed mode, then that is the limit for both Nexus 5000's.  If you had 24 FEX's evenly distributed between the Nexus 5000's in straight-through mode, then that would be maximum in that configuration.  If you are mixing straight-through and dual-homed configurations, you would have to be within the 12 FEX per Nexus 5000 limit.
    The 2148 is the first FEX, so yes it is the focus of the release notes.
    The 2148 cannot have a local port-channel.  This is why you can only channel to a 2148 when using dual-homed (called Active-Active mode), one interface on each 2148, and it is tied together with a vPC configuration to make a port-channel.  The individual 2148's each only have one connection on them down to the server below.  The 2248 and 2232 do not have this restriction.
    As of 4.2(1)N1(1), 576 refers to host interfaces.  If your host has virtual hosts, you just need to make sure you are within the limit of mac addresses in the system, which is 16,000 (13,800 unicast).
    Regards,
    John Gill
    Reference:
    configuration limits -
    http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/configuration_limits/limits_421/config_limits_4_2_1_chapter1.html

  • Samsung Wireless Extender question

    I just received a Wireless Extender that I bought through Amazon's Marketplace.  The item was labeled as new and looked new when I opened it, but it was apparently refurbished or something, because when I called Verizon Customer Service to activate it, I was told that it is already active on somebody else's account.  The CSR said I should contact the seller to see whether they can deactivate it from the existing account or return it.  I assume that since this seller had several of these that it was some kind of liquidation sale or something, so my only option would be to return it and try again.
    Since the extender seems to be working and it's going to cost me a shipping charge each time I return one, and chances are the next one will have the same problem, I'm thinking about just keeping it and using it without the managment functionality.  I'm not paying Verizon $300 just to get one I know is new.
    So, my question is, is there any risk to using an extender tied to somebody else's account?  Can they see information regarding the devices connected to it, and if the registered owner happens to get their account canceled, will the device stop working?  
    Thanks,
    Martin 

    MartinMc wrote:
    So, my question is, is there any risk to using an extender tied to somebody else's account?  Yes.  The owner has the ability to manage the device and limit what phones numbers have "priority" connection to it, so you may find yourself unable to use the device if others are using it at the same time.
    Can they see information regarding the devices connected to it, No, I don't believe so.
    and if the registered owner happens to get their account canceled, will the device stop working?  Yes, if the device is not attached to active account, it will stop working.  I'm not positive, but I think the Extender would be treated the same way as a cell phone if the account is shut down due to non-payment, basically the Extender would be "locked" to that account and unusable until the account is paid up.
    Thanks,
    Martin 
    I'd reccomend getting an Extender that you can activate on your account.  That way you know it won't stop working unexpectedly.

  • Customer extended to wrong sales area

    Hi,
    We have 3 sales area,
    Sale area one :- 1000-10-20
    Sale area two :- 1000-10-30
    Sale area three :- 1000-10-40
    Customer is created in sales area one, we want to extend this customer to sales area two but by mistake it has been extended to sales area three. I want the customer only in sales area one and two and not in three.i.e in XD02 after entering the customer code, company code, after clicking customer's sales area only sales area one and two should be visible. How can I correct this.
    In similar way some of the views are been added in material master. How can I correct this.
    Vipin

    Hello
    You can use transaction VD06, but what you will do is you will only set a flag for deletion
    Deletion process is not that easy, because you could potentially have some documents created for that customer. so if system will allow you to delete completely, that it will create inconsistencies. If you want to delete the customer master data completely you will need to work with archiving process.
    Its better you only block the customer (please use VD05 for it)
    regards
    Rafal
    Edited by: Rafal Drezek on Jul 9, 2009 1:57 PM

  • Custom login question

    C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager
    C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer
    Which of these two folder contains the web.config that must be modified when adding custom login/ forms authentication?
    When and how is the AuthCookie used?  Do I need to add any info to the ssrs auth cookie?
    scott

    Hi scott_m,
    According to your description, you want to add a custom login form authentication and use AuthCookie. Right?
    In Reporting Services, if we want to add custom login form, we need to modify the web.config in ReportServer folder. For the modification in configure files and usage of authcookie, please refer to the links below:
    http://www.codeproject.com/Articles/675943/SSRS-Forms-Authentication
    http://msdn.microsoft.com/en-us/library/ms345241.aspx
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Error while Filling custom extended idoc

    i have extended segment e1edpa1 with ZLOC segment in INVOIC01 idoc .now i'm filling this extended idoc from exit EXIT_SAPLIEDI_101 but it is giving me error like "EDI: Syntax error in IDoc (mandatory segment missing)" can anyone tell me what could be the reason?below is my code.
    WHEN 'E1EDPA1'.
          MOVE idoc_data-sdata TO e1edpa1.
          IF e1edpa1-parvw = 'WE'.
            SELECT SINGLE * FROM kna1 INTO w_kna1 WHERE kunnr = e1edpa1-partn.
            IF sy-subrc = 0.
              MOVE: w_kna1-locco TO zloc-locco,
                    w_kna1-bahne TO zloc-bahne.
              MOVE 'ZLOC' TO idoc_data-segnam.    " administrative section
              MOVE zloc TO idoc_data-sdata.       " data section
              APPEND idoc_data.
    thx

    Why do you need to add a segment via code in an inbound IDOC? we dont populate segments in inbound processing, rather you shoul dbe getting value from the source system in the IDOC, and reading the custom segment to process the values.
    if source is not sending the values , and you need those then you are supposed to read and process the values to move those to corresponding structure for SAP program to process the data. Adding a segment in inbound is not going to get you anything.

  • Custom initramfs questions

    Hi, I have been playing around with initramfs and created my own (very, very basic) to learn more about how it works. I am using GRUB 2 and the MSI Wind U100 laptop.
    I have a few questions I haven't been able to found the answer to yet, maybe you could help?
    1. When I pass a wrong pathname to the GRUB 2 initrd line, I get a kernel panic as the file cannot be loaded, which is Ok. But, I can't reboot the computer with the CTRL+ALT+DEL key combination. Is this because the keyboard driver hasn't been loaded by anybody yet? The only thing that works is to power off the computer the hard way with the power button. I guess it works because it is a hardware switch and no driver is necessary?
    2. It seems I must use the 'initrd /boot/initramfs.cpio.gz' GRUB 2 line. But, the https://www.kernel.org/doc/Documentatio … meters.txt site mentions the kernel 'initrd' parameter. When I remove theGRUB line and use the kernel param to point to my ramfs, though, I get a kernel panic. It seems the only way to make it work is to use GRUB 2 to instruct the kernel where the ramfs is. How does this really work?
    3. When my ramfs looks like this:
    bin/busybox
    lib/ld-linux.so.2
    usr/lib/libc.so.6
    init
    and the init code is:
    #!/bin/busybox sh
    exec /bin/busybox sh
    it can actually boot and here is what I get:
    can't access tty; job control turned off
    What does need to be done to have job control? I think the same message is displayed in Arch's rescue shell, I think I've seen it.
    4. I can now see the shell and the command prompt, but I cannot type anything. Is the reason the same as in #1, i.e. no drivers loaded yet?
    Regards.
    Last edited by wujek.srujek (2014-10-01 09:28:54)

    Hi. Thanks for your comment. I read the page you linked and a few others, and I'm getting closer, I think.
    I was able to add the keyboard to early userspace by either adding the 'atkbd' module and its deps, or the 'keyboard' hook. However, I can't make it work in my custom initramfs.
    Here is the contents:
    $ find -type f | sort
    ./bin/busybox
    ./bin/find
    ./bin/kmod
    ./bin/mount
    ./init
    ./lib/ld-linux.so.2
    ./lib/modules/3.16.3-1-ARCH/kernel/atkbd.ko
    ./lib/modules/3.16.3-1-ARCH/kernel/i8042.ko
    ./lib/modules/3.16.3-1-ARCH/kernel/libps2.ko
    ./lib/modules/3.16.3-1-ARCH/kernel/serio.ko
    ./usr/lib/libblkid.so.1
    ./usr/lib/libc.so.6
    ./usr/lib/libm.so.6
    ./usr/lib/libmount.so.1
    ./usr/lib/libuuid.so.1
    ./usr/lib/libz.so.1
    and here is my /init:
    #!/bin/busybox sh
    echo Creating links
    /bin/busybox --install -s /bin
    ln -s /bin/kmod /bin/modprobe
    ln -s /bin/kmod /bin/lsmod
    echo Mounting /proc
    mkdir /proc
    mount -t proc dummy_proc /proc
    echo Mounting /sys
    mkdir /sys
    mount -t sysfs dummy_sys /sys
    echo Mounting /dev
    mkdir /dev
    mount -t devtmpfs dummy_dev /dev
    echo Loading modules
    modprobe serio
    modprobe libps2
    modprobe atkbd
    modprobe i8042
    lsmod
    exec sh
    As you can see, I'm packaging very little and creating all the links to busybox and directories at runtime, in the scrip (is this Ok?).
    The /proc, /dev/ and /sys mounts are populated.
    The script actually executes without error, but the lsmod command near the end results only in the lsmod column headers (i.e. not module has been loaded). But I don't get any error etc.
    Could you give me a pointer what is missing?

  • Custom cmdlet questions

    Hi,
    I was looking at a ps1 file someone else wrote. It contains what looks like a custom cmdlet - 'Restart-AXAOS'.
    This is to restart a microsoft dynamics service. The question is, how is this defined and created in the first place. I cannot find a reference to it. There is the main ps1 file and a config file but it is in neither. Has someone created this as an assembly
    and registered it on this server? How is the functionality if this cmdlet defined?
    Thanks a lot.

    Hi Damon,
    this cmdlet is part of the DynamicAxCommunity Powershell Module (here an
    Introduction). Either the module is imported somewhere in the script using Import-Module, or it's used in Powershell 3+ where Modules are loaded automatically as required.
    If the script is working that means it's installed somewhere on the executing computer, I'd recommend checking the Module folders ($env:PSModulePath will show you where).
    If it's a script-module, you can simply read the function in your favorite script editor. If it's a compiled module, you'll need a library inspector, such as ILSpy, to read just what it's doing.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Can a customer extend Messaging Server cryptographic capabilities?

    One more question was brought up internally: is it possible to integrate Messaging Server and the related components with a third-party cryptographic software in order to extend SSL and Certificate authentication?
    There's certain development in JCP (Java 1.6 crypto) which has hooks for adding algorithms; perhaps it can be used to extend Access Manager and similar Java web-apps. But Messaging Server, Web/App Server, etc. engines are not quite Java... is there a way to extend them with some API, command-line calls, etc.?

    shane_hjorth wrote:
    JimKlimov wrote:
    New cyphers, I believe, or both. Particualrly, I wondered the Russian GOST crypto stack.I've asked the developers what would be required to provide support for this encryption routine.Messaging Server uses the NSS libraries to provide the various cipher-suite:
    http://www.mozilla.org/projects/security/pki/nss/
    If you wanted to get the GOST cipher suite implemented the best place to start would be to ask on the mozilla newsgroup (mozilla.dev.tech.crypto) although as was pointed our by a Messaging Server developer, implementing the GOST suite is far from straight-forward which may explain why nobody has implemented it till now.
    I did however find the following RFC which may help your endeavours:
    http://www.faqs.org/rfcs/rfc4357.html
    Regards,
    Shane.

  • Adding custom extended attribute

    Hello,
    In view T77OMATTR we added a new extended attribute but it does not appear on "extended attribute" tab. I suppose additional work is to be done to get it displayed. Any idea?
    We have no issue with custom attributes in "attribute" tab.
    Thanks in advance

    Any idea?

  • SampleSales.RPD Customer Dimension Questions

    Hello, I am trying to figure out how SampleSale.rpd was built. I am stepping through data element from the physical layer all the way to the presentation layer and am confused about the following:
    Question for "Sample Sales" section
    - When i expand "H1 Customer Dimension", i see "Total" level and a number of revenue / qty members listed under it. I trace them back to physical layer fact columns and i also see them present in the presentation layer fact section. However, how can i get this attribute (which looks like a fact attribute) to show up under "h1 customer --> Total" level? I see the formula to for each but i am confused how to get this into inside the dimension.
    Any help is greatly appreciated.
    Regards,

    You leave them in place in the Logical Fact.
    What you see at the dimension levels are just UI "pointers" to the Logical Fact columns, you can set level based measures manually in the content tab of that measure if you dont fancy dragging (or scrolling) up to the dimension levels themselves.
    P.s Suggest you use a splitter in the fact table, just like Sample Sales to make it easy on the eye. Typical splits might be :
    -----Measures------
    a
    b
    c
    ---- Time Based----
    a MAGO,
    a YAGO,
    b MAGO,
    b YAGO
    ---- Level Based----
    a (Year)
    a (Channel)
    etc etc.
    --- Derived----
    Profit %
    Profit £
    You can then choose to expose the splitte in the presentation catalog, or use nested Fact tables with appropriate names (see "nesting presentation tables")
    Hope this helps !

Maybe you are looking for

  • How to have few distincts colors per day on the year calendar, ( like month or day calendar ) thank

    When i use Ical, ( dayly, week, month ) i can have lot of distinct colors for each days, few colors in the same day, When i use Ical ( year ) just one color appear each day, Can i change that to have the same wiev of day in each calendar ( ex: in the

  • Open password protected Excel Sheet?

    Hi there, numbers seems not to support password protection- is there any workaround or maybe third party helper app for that aim? it's not about protecting a numbers document but opening an excel sheet. thanks for help: macke

  • Portal Upgrade from Nw04 6.0 to Nw04s 7.0

    Hi all, I’m trying to perform the portal upgrade from version 6.0 Nw04 SP 19 to version 7.0 Nw04s. During the preparation I obtain the following error: #Java###The software component com.wilytech.jmxservice/wilytech.com could not be read from the BC_

  • BAPI for subcontract PO

    Hi I am using BAPI_PO_CREATE1 for creating subcontract PO but in my system there is no table like POCOMPONENTS. So i am unable to do this subcontract purchase order. I am using 4.7 version and patch level 28. Do we need to apply for any notes? regard

  • Batch Master Creation with lower case letters

    Hi, While creating batch master via msc1n, sytem automatically change lower case letters of bach ID to upper case letters. Can anyone please guide me, where are the settings in the system for this change? Regards, M.S.Baraneedharan