Is "reuse" possible?

Hi,
I am new to EJB, so if I am saying something silly, please forgive me.
I find that reuse of the beans is only possible within a single company, but not across companies, not to mention across industries. It is because within a single company, the environment is more or less the same, especially the database design, then different departments can use the beans as components in their application, thus reuse is possible. However for different companies, there are different environment, database and database design. It is really difficult to develop a bean to fit all the situations.
Yes, it is true that developer can map the bean attributes to the database fields and make the beans workable, but it need much effort and not necessary success. The case can be solved easily for simple application, like a bean requires only to update a single table. However in real world application, things are usually more complicated. Different beans have to interact with each other to get the job done. So I really doubt the beans can really reuse.
Of course I know "plug and play" bean is only a dream, but i really think reuse is not easy, of not possible. In fact I am doing my final year project which is to demontrate the reuse of the EJB. I find it difficult to prove it. Can any experts here explain about the reuse possibility of the EJB to me? I just want to have more ideas on EJB.
Any opinions will be appreciated.

For the majority of the IS and business community, simply getting SOME reuse internally would be greatness -- no need to worry about reuse of the same component at different companies. If you look at how even SMALL development shops still create redundant functionality in separate apps, you realize that reuse has to be PLANNED -- someone has to define those components that should be common to several apps and tell the whole development team that these are going to be developed ONCE and used by everyone. Sort of like a roadmap that can be posted on a wall to show everyone what common components are planned.
In most shops, it is more difficult for new developers to get info on what's available than it is to just develop what you need on your own.
And once you find a class or two you may be able to reuse, you realize that you have to include 20 other classes and packages to get this one to work in the context you want. The answer -- package your reusable functionality as EJBs and not as java classes embedded in a variety of packages.
In our case, we have automated workflows as well as stand-alone applications that both have to access the same provisioning rules. By putting the rules into an EJB component, BOTH types of clients can simply send the "executeRuleX()" message to the component and get the result -- that is reuse. If we decide to perform that same rule check in the GUI, we simply call that same method from a JSP page.
That said, it does not just HAPPEN -- that kind of reuse has to be DESIGNED. Someone has to identify the need for a certain piece of functionality and then develop and deploy it, and then publicize to the whole development team that this ONE component must be used whenever anyone in the business needs to execute that business rule. Not many companies think that hard on what's needed and then consciously document an application architecture that shows these components on the roadmap.
I could go on and on, but you get the idea.
Dave

Similar Messages

  • Livecycle Designer 8 - Is it possible to have button to clear fields after user has clicked submit by email button so user can reuse form to send another response with different answers?

    Users will use form to fill in stats for enquiries so they want to keep form open, complete a form, click button to submit by email, then click another button to clear form, form now ready to accept form's responses.  They dont' want to keep opening form each time form needs to be completed.
    Hope you help.
    Thanks Sandra

    Hi,
    Thanks for your response, not sure what you mean by a loop.  I put together
    a draft form to show staff in our Knowledge Centre the sort of thing
    Livecycle Designer can do.
    (See attached file: Library  Request  Form_pub_0001.pdf)
    They are currently writing out on form and manually putting into excel to
    keep stats on the requests.
    Due to current Global Financial Crisis my section does not want to spend
    extra money at the moment seeking assistance from our tech heads.  So we
    are looking for least work no expense option for keeping stats.  I am a PA
    who just happens to have Livecycle program on my computer.
    We use Lotus Notes so I thought the staff could save copy of Library
    request form in the stationery folder.  The staff using the form want to be
    able to do the following:
    1. open the Library request form at the beginning of the day;
    2. when a request comes in, complete the form and click on Send by email
    button
    3. click on a Clear Data button to clear all data from all fields so the
    form is open ready for when the next request comes in.
    Staff are time poor and, as this is only one of their numerous duties, they
    don't want to keep going to a location and opening a file which can be very
    slow on some days
    Each day form may be filled out by approximately 15 staff who may receive
    anything from 0 - 4 requests a day.
    I am not a tech head so script writing is a deep, dark mystery.  Can you
    help using the form above as an example for achieving step 3 above.
    Thanks,
    Sandra Smith
    Personal Assistant
    PricewaterhouseCoopers Australia
    Office: ++61 (2) 8266 9069
    Fax: ++61 (2) 8286 9069
    [email protected]
    http://www.pwc.com/au
                                                                                    Kacyndra                                                 
                 <[email protected]                                        
                 >                                                          To
                                           Sandra K Smith/AU/TLS/PwC@AsiaPac
                 08/08/2009 12:25                                           cc
                 AM                                                                               
    Subject
                                           Livecycle 
                 Please respond to         Designer 8 - Is it possible to have
                 clearspace-200985         button to clear fields after user
                 0098-481178-2-216         has clicked submit by email button
                 [email protected].         so user can reuse form to send 
                     adobe.com             another response with different
                                           answers?                                                                               
    if i understand this correctly, you just want everything cleared whena
    buttons is pressed?
    you can either do it individually:
    on button click:
    mytextField.rawData=""
    or do a loop, using child/paretns..

  • Is it possible to reuse 1 taskflow on top of 3 different models?

    Hi,
    using JDEV 11.1.2.3. and want to implement 1 taskflow that will be used in 3 different applications using 3 different models.
    Is this possible?

    Isn't this the same question you asked in this thread https://forums.oracle.com/thread/2613427 ?
    Your question in not clear to me. A task flow encapsulates a unit of work. If you use e.g. a table in the task flow, there have to be some model to provide data for this table. This model is encapsulated in the task flow too.
    Per this definition you can reuse the task flow.
    If you mean to use different models (each of hte applications uses different models to provide data to the table from different sources) this isn't impossible but hard to do. Duncan Mills blogged about a solution here https://blogs.oracle.com/groundside/entry/adaptive_connections
    Timo

  • N96 GPS Chip - Possible to remove and reuse?

    Hi,
    My N96 has died, and am looking to get another phone - found the N96 too slow to bother repairing. However I was thinking about taking it apart and trying to use the GPS chip.
    1) Is this possible? - I've not looked inside yet
    2) Does anyone know what chip it uses - is it easy to reuse?
    Thanks
    Mark

    Thanks for this, though after looking at it I'm not too inclined to use an app that requires getting into the terminal. Way too technical for me. But thanks.

  • Is it possible to reuse ISBN and use it to my new book?

    Hi,
    Can I reuse ISBN and use it to my new book?  I already remove the book in store and wanted to use it's ISBN for my new book.  Is it possible?
    Thanks.

    kosty wrote:
    For the past year I've been using an external hard drive (HD1) connected to my airport extreme as the back-up location for time machine.  This has worked fine without any issues. 
    That may be true, but you need to know that backing-up that way is unreliable and not supported by Apple.   See:  Using Time Machine with an Airport Extreme Air Disk.  Do not be surprised if those backups suddenly turn up corrupted.
    What I am wondering is if I direct my time machine back-ups to HD1 will it back-up both my mac HD as well as HD2?
    No.  Time Machine cannot back up from any network location.  The 3rd-party utilities CarbonCopyCloner and ChronoSync may be workable alternatives.

  • Is it possible to change an Apple ID to a different e-mail, transfer all of the purchases, and reuse the old ID as if it were a new account?

    When my daughter was too young for her own iTunes account, I set one up under my own e-mail address and using my credit card. I've never used the iTunes account as as I don't own any apple devices myself; but I've used the Apple ID for purchases for others at the Apple store at the mall. Over the years she has purchased music and apps using gifts, although I've kept the password to myself so I could keep tabs on her purchases
    Now she has her own iPhone and is old enough to have her own account and password, I would like to transfer everything over to her. The catch is, I want to keep the Apple ID in case I get an iPhone for myself. But I don't want any of the things she bought. I want to "reset" my Apple ID and start over again for my 12-year old son who has an iPod.
    Is this possible, and if so how?

    You can't change the @me.com associated with your iCloud Apple ID, but you can create an alias at iCloud.com.

  • Is it possible to reuse the Scanner instance in this case?

    I have a data file that gets updated by another process, and in my program I periodically read the file, and if there'S new data added I will update my data structure (contained in ArrayLists).
    The issue is for every read I have to re-create a Scanner instance and skips all the lines that have been read. Since the file could get really long, and to skip lines in the file we need still to call scanner.readLine() which might be expensive since it interacts with the hard disk, I'm trying to reuse the Scanner instance and count on the scanner.hasNextLine() to return true if new lines are inserted to the file by the other process:
    while (in.hasNextLine()) {
    String line = in.nextLine();
    // intepret th eline here
    This code is put in a Runnable that is executed periodically, and I was hoping that the next time it is called in.hasNextLine() would return true and we can happily start where we were left off.
    But the bloody method does NOT return true even though new lines have been added to the file. Does anyone know to make it recognize that the file has been updated? Or really there's no other way but to re-open the file and skip old lines as I'm doing now?
    Any suggestion would be highly appreciated!
    P.S: How could I add code tags to highlight my code portion? Thanks!

    808239 wrote:
    I have a data file that gets updated by another process, and in my program I periodically read the file, and if there'S new data added I will update my data structure (contained in ArrayLists).Is there any reason you can't use a Stream instead of a file? Unix has a nice little utility called 'tee' that allows you to write out to a file AND stdout, allowing you to connect other commands via a pipe. I'm sure you could write something similar for Java; however, if this is intended as a daemon process, you'd probably have to make it non-blocking, which might be an issue.
    Alternatively, have you considered using a database instead of a file?
    Winston

  • Call Reuse ALV Twice - Is it possible?

    Hi,
    I have a requirement wherein I need to develop two alv display with header. The 2nd alv display will be issued once the user clicks a custom button from the 1st alv display. However, I the display in the 2nd alv is from the 1st alv display. I have checked the field catalog and internal table in the 2nd reuse alv grid. But I cant seem to figure what is wrong, do I need to use some function module to refresh the output? Any input is welcome.
    Thanks & Regards,
    Mawi

    Hi,
    Step 1>First create a PF-STATUS<for the custom button that you have to click>
    Step 2>Call that PF-STATUS from your first REUSE_ALV_GRID_DISPLAY in the following way:-
                 set the parameter like this way
                 i_callback_pf_status_set          = 'PF_STATUS_SET'
               Now create a subroutine for that
                 FORM pf_status_set USING rt_extab  TYPE slis_t_extab.
                    SET PF-STATUS 'ZSTANDARD' OF PROGRAM 'ZSAR_ASSGN1_GRIDALV'.
                ENDFORM.                    "pf_status_set
    Step 3>Set another parameter
                 i_callback_user_command           = 'USER_COMMAND'
                Now for that also create a subroutine like this:-
                  FORM user_command USING I_r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
                <here you put all the subroutine necessary to create the second ALV>
                 EndForm.
    Hope in this way you get your solution.
    Regards.
    Sarbajit.

  • Is it possible to reuse views between components of the same project ?

    Hello All,
      Does anyone knows if its possible to re-use views/viewsets which maybe common between components within the same project ? I am trying to use back common views where possible so that it will be easier to maintain the application should there be changes in the future. Having identical views across the components will mean that there is a need to maintain muliples views when updating/amending. Any help or suggestion will be greatly appreciated. Thank you.
    from
    Kwok Wei

    Thank you very much Bharathwaj. I am not very keen in using JDI (lack of usage knowledge + current project to small to use JDI + insufficient time) and hence I guess I will need to continue to look around for another solution.
    Any experts who may have more suggestions kindly put then up here please. Thank you.
    from
    Kwok Wei

  • Is it possible to reuse DataProvider across different pages?

    Suppose in page1,
    i have a Object Array DataProvider that is bind to getAllCars()
    i have a method
    public Cars[ ] getAllCars(){
    return carsArray
    Then in page2, i need to do some similiar actions
    i tried binding it Page1's dataProvider
    but this gives me some error
    any suggestion?

    You can do this but you must place the DataProvider in a Session Bean. The page beans only have request scope, so a Data source declared in one page will not be in scope for any other page. This also requires that you maintain the data source manually in code rather than through the toolset provided by the IDE.

  • It is possible to reuse the obfuscated password from a dads.conf in the apex listener?

    Hello there,
    Little by little we are moving to the APEX 2 listener, good! But the problem is that every time that somebody ask me for a new set up I have the same problem:
    I go to one of our DBAs (nice guys by the way!) and ask, "may I have the password for the APEX_PUBLIC_USER of this DB"?
    The password is obfuscated, so the answer is: it needs to be changed => delay in the setup => unhappy users...
    I have tried a classic copy and paste, this is take the obfuscated password from the dad and put it in the <entry key="db.password">, but of course it did not work, sigh...
    Any thoughts on this?
    Thanks in advance,
    Luis

    If you are using adobe Flex Builder to develop SWF, please be sure using ExternalInterface class to expose the refresh() method.
    then you can should be able to call this method in Javascript.

  • Is it possible to reuse the map file that was produced to map FrameMaker styles to RoboHelp when creating a PDF in RoboHelp?

    I'm using RoboHelp 11 to produce WebHelp. The documentation was previously written in FrameMaker and posted in PDF format, however it has undergone many releases since those days. I'm now being asked to create the help in PDF and WebHelp. Not really an issue except that the help format does not look particularly good in PDF (not designed for both).
    Ideally I'd like to just use the map file from the original Frame to RoboHelp conversion in reverse (with a little editing)--to convert the RoboHelp styles to the original FrameMaker formats when I create the PDF, however A) there doesn't seem to be an option for that, and B) the original FrameMaker to RoboHelp map file doesn't seem to have been preserved after that conversion.  Is it there and I'm just not seeing it?
    If necessary I can just create another CSS to redefine the styles, but if I don't have to, I rather not.

    I suspect that even if you could find the mapping information (pass as to where) it would simply tell you that Style A in Fm was mapped to Style B in Rh but not give you any information about how Style A was defined in Fm.
    I think your only options are to create a CSS as you suggest or, as I would, create redefine the Word Style Mapping Template to suit. By going to Word first, you can edit the output for better page breaks and other tweaking you might want.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Reusing the trial- is it possible?

    I did a stupid thing- when I first got Production suite I downloaded the trial of Shake. However because I had so many new things to play with Shake wasn't used much at all during the 30 days. Now (about a year later) I have come to the point where I am seriously thinking about using it for production work however I would love to use the trial again just to test the quality of green screens shot on MiniDV compared to what I can achieve in FC.
    However as you will know it wont let me use the trial after a new install saying that my trial has expired. Is there anyway that I can load up the trial again?

    Lol yea I tried a different email but interestingly it gave the same serial number. Does anyone know of any preference files that I could trash or something like that?
    1.8 G5 iMac 20 inch

  • What is or isn't possible on iOS?  (Not having Loader, loadBytes(), external swfs, etc)

    My basic question is:  "What are the classes which we should not use for iOS using the packager."
    I have been trying for a few days trying to get a simple Flash app to run on the iPad.  A very simple app (with sound!) with just 2 classes works fine (Performance is a whole other issue.  We will get to that).  But if I try anything else, all I get is a white/black screen on the iPad.  So it would be really nice to know what classes, functions, etc we CANNOT use for the Packager.
    I have fairly simple app (not as simple as 2 classes) which loads some art assets via URLRequest/Loader, puts them on the stage.  Fairly common standard practice in AS3.
    I've read about not able to load an external file using the Packager.  So to fix the situation of loading assets, I have looked into the [embed] tag, which seems to work.  I hope the blogger doesn't mind, but this page is an excellent source on what works and doesn't work with the [embed] tag in it's various flavors:  http://www.richardleggett.co.uk/blog/index.php/2010/03/08/flash_builder_and_flash_pro_asse t_workflows.  For example, AS3 in a swf is stripped out from an external swf using [embed].
    The best way to load an external swf file for iOS seems to be using [embed] with "application/octet-stream" and load the swf through ByteArray (Option #4 in the link above).  This works great on the PC.  HOWEVER, on iPad, it fails.  The [embed] tag works on the iPad with the other ways, so my guess is that loadBytes() does not work.  Is this true Adobe/Flash guys?  Can you confirm this?
    My initial question is "why is this not allowed on iOS?".  If it is because of the fact that it uses a Loader, can it be changed so it's not using a Loader to construct a MovieClip?  I have a ByteArray with the raw swf/MovieClip data.  Why can't I construct a MovieClip from it without going through Loader?
    This loadBytes() failure seems to be the only thing preventing me from using the normal pipeline of Flash development in loading external assets.  If there are other ways people have found, please share!
    Now on to performance.  Adobe, can you post some examples/samples of code which runs at decent performance?  Like a "tech demo" of what is possible using the Packager running on iPad/iPhone.  That would be extremely helpful for everyone.  I have done a lot of the optimizing suggestions on various sites and pages ( and by Adobe http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html), but I am not seeing the 30 fps performance that is MORE than possible on iPhone/iPad.  Displaying and moving around Bitmaps (I don't use any vector graphics) should be blazing fast.  Quake runs on iPad without any problems and that code is 10 years old.  Moore's law dictates that drawing Bitmaps using CPU should be faster than a 3D engine written 10 years ago...  I am trying out the new iOS 4.2 which is supposed to be "significantly" better, but I am still stuck on loadBytes().
    So at this point, I am blocked on loadBytes() and my performance for a simple app which draws a few Bitmaps and MovieClips is terrible.  I am hopeful some people out there have figured out some solution (there are lots of clever people out there) and I will stumble on to something.  But being forced to go native Objective-C seems to be my only option at this point.
    In summary, here are the questions I would like to ask the Adobe/Flash group for some more help/information/advise:
    - Why is Loader not allowed on iOS?  Is it a technical limitation of the hardware/os/Flash?  Will it never be supported?  What is the future of this class on iOS?
    - Why is loadBytes() not allowed on iOS?  I have the raw embedded data in memory.  I don't need to make a remote call so security should not be an issue.  Can I create a MovieClip without using Loader?
    - Why is AS3 stripped from the timeline when a Symbol is retrieved using [embed]?  Maybe this is the same reason loadBytes() fails, but if I could use [embed] and get a copy of the Symbol, that is what I need.  (There are issues with the mx.core.MovieClipLoaderAsset/Asset, but it is better than being blocked by loadBytes())
    - What are some apps you guys have written that we can use to compare PC vs iOS?  Again, a "tech demo" or sample code of what you as experts in Packager for iOS have done which runs at decent framerate (30+fps) would be of tremendous help.  If the Adobe/Flash group hasn't gotten the current Packager for iOS to handle more than 50+ 2D Bitmaps on screen running at 30+fps, that would be good to know.  Please let us know what the experts and owners of your software are capable of getting the most throughput using the Packager.  I'd hate to sound a bit fed up/angry, but I think you are wasting a lot of people's time and energy with a piece of software that, to me, seems like it was a bit early to release.  Flash can do some great things.  If it can do it on iOS, even better.  But PROVE it to us that it's possible, before having your customers run into barriers imposed on us by trial and error.
    Thanks.

    I have hardly ever seen a post here from someone at Adobe, so you may need to be patient.
    Read this article, and get its associated demo files, to see some good performing tech demos:
    http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html
    Back to your main point, loaders are working, what isn't working for you is accessing of things in the library of a successfully loaded swf, that have been set to Export for ActionScript. That means that the swf you have loaded has an ActionScript Class, to represent the library symbol. iOS Flash apps are native ARM code, and don't include the virtual machines that a browser plugin has, and so it's not able to interpret ActionScript. That may be why it would fail.
    Now, I can think of at least a couple of reasons why you might want to have external swfs with elements that you want to reuse in the main swf. One would be if you're intending to make a lot of them, like say if you wanted to have an Asteroids game and the ability to use artwork from a set of different swfs. Another reason might be if you want to skin your interface, by taking specific elements from the loaded swf and using them in the main swf. That way you could have artists preparing those swfs for you, and you just include them in your package, and load the one you want.
    There is a way to do either of those things. The second one can be done by having the item as a named symbol on the stage of the loaded swf. With a to-be-loaded swf named "inner.swf", that has a movieclip on its stage named "mc1", this script in the main swf would load that external swf and use its symbol on the main swf's stage, without having to make the inner swf's symbol use ActionScript:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    For the other case, you can take the item off the stage of the loaded swf and draw it into a bitmapdata, and then make as many bitmaps from that as you like. Here's the above example, only it adds the original movieclip to the main swf stage, and also creates a bitmap that looks the same:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    var bmd:BitmapData = new BitmapData(innermc.width,innermc.height);
    bmd.draw(innermc);
    var bm:Bitmap = new Bitmap(bmd);
    bm.x = 150;
    bm.y = 150;
    addChild(bm);
    So, the thing to learn is that a native ARM code application does not have an ActionScript interpreter in it, and if you need to do something that normally requires interpreting ActionScript, find another way to do it.

  • ALV Report row grey-out (disable) dynamically -- REUSE ALV!!!

    Hello All,
    Well again a quick question...
    Am using REUSE ALV method to display the ALV report.
    Dynamically by selecting a row in the list (using the checkbox) and by pressing a button on application tool bar, the selected row should be greyed-out(disabled), that is it should not be anymore editable!
    How is it possible?
    Any kind of inputs regarding this will be damn damn helpful.
    Thanks in advance!
    Cheers, Sundar.

    Hi,
    The above solution 1 will be only applicable if using OO ALV!
    above solution 2 will disable the entire column, and then again i need to call the "REUSE ALV"... which i don't want to.. as it opens another screen above the same screen and i have to close it twice!
    I know it is possible to grey out the selected row using OO ALV... i want to know if it is possible in REUSE ALV???
    Keep shooting please....
    Thanks!
    Regards,
    Sundar

Maybe you are looking for

  • ITAB_DUPLICATE_KEY error while deleting ODS data

    Hello again i am getting ITAB_DUPLICATE_ERROR message while deleting data from ODS. kindly let me know how to proceed. as ours is full load it is very important to delete the previous data. Rgds, Ala.

  • Error 9 when I'm restoring my Iphone

    I was restoring my Iphone 3gs and when it was restoring it gave the error 9. Itunes was saying it was waiting for Iphone... and then it gave the error 9. Tried it on different computers and every time the same problem. Now I can't use my Iphone. 2011

  • Product  Proposal in CRM 4.0

    Hello everybody, Just for information I would like to know something please : In R/3 SD we use product proposal from tables VBPV and VBPK while creating sales documents for our customers. We would like to use just the same in our CRM and Mobile Sales

  • Cisco commonservices upgrade query

    Hi All , I am running with cisco common services 3.1 version . I want to upgrade the same to 3.2 . Please guide me  from where can i download the Software in cisco site Thanks in Advance Regards Angus

  • Question re data loss on hard drive

    A hard drive with lots of data on it somehow has gone into a mode where when I plug it in it says 'the disc you have inserted is unreadable by this computer: 'Initialise, Eject,' etc - strange thing is I didn't do anything to this disc, but to anothe