General Persistence Implementation Strategy Question

Hi,
I want to implement a J2EE application and use a persistence system like Hibernate. I will have to create several beans and set-up my ORM properly. Now, if I create an Enterprise project in NetBeans, where should I put my Peristence code? In a Web container or in a EBJ container knowing that both JSP pages and EJB will refer to my persisted beans? Or should I create another separate project and include the corresponding .jar in both my Web or EJB containers?
What is the best strategy?
Thanks,
J.

Jrm wrote:
Hi,
I want to implement a J2EE application and use a persistence system like Hibernate. I will have to create several beans and set-up my ORM properly. Now, if I create an Enterprise project in NetBeans, where should I put my Peristence code? In a Web container or in a EBJ container +
knowing that both JSP pages and EJB will refer to my persisted beans+? I would say that JSPs should not be contacting your database directly. Better to go through a well-defined service layer that hides the persistence layer. All security, binding, and validation issues should be resolved before the service layer is called.
Or should I create another separate project and include the corresponding .jar in both my Web or EJB containers?Both? Wrong.
%

Similar Messages

  • Oracle EBS R12 Pre - Implementations phase question air

    Oracle EBS R12 Pre - Implementations phase question air
    Posted: Jun 30, 2009 10:22 AM Edit Reply
    Dear all Gurus,
    We are going to implement Oracle EBS r12, for industrial concern, we have following quires if any peer may suggest.
    1) we heard the oracle R12 has build new release with 11g db , is it been practical for choosing it for corporate ???
    2) Linux Read hat which version is more stable like 5 releases is compatible with R12 new release?
    3) We are also thinking for 64 bit architecture rather than 32 bit, could any one figure out the practical pros and cons for this.
    4) We are also wondering about the server machine brand and its configurations like HP DL380 G6, DELL 2850? could any one share abut his experience about the same.
    5) What sort of Server configurations (Processor , 2way -4way , RAM , HD and other accessories ) for r12 Multi node setup for 150 clients (DB Server , Apps Server , Test Prod )
    6) What should be backup strategies like tap backup and how much space requirements we must have provisioned for retaining almost 2~3 month backup.
    7) Application implementations methodologies?
    8)
    I know to address our queries would be time consuming for you bust peoples , but I would really oblige for being shared your journey this would defiantly the PATH way for other like mentoring for others.
    looking forward your valuable instructions ASAP.
    Thanks & Best Regards
    Muhammad Waseem
    Manager IT
    Neee-Has Textiles Divisions
    31-Q Gulberg II Lahore
    Pakistan
    92-0333-4240949

    Duplicate post.
    Oracle EBS R12 Pre - Implementations phase question air
    Oracle EBS R12 Pre - Implementations phase question air

  • Implementation strategy for non sap sources

    hai friends,
                could anyone help with the
    'implementation strategy for non sap sources'.

    Hi,
    Its the same as with R3 sources.Only difference is you'll have different underlying interfaces. Non SAP systems can either be flat files, ETL systems or legacy systems using ETL connection, Oracle or Java systems XML, etc.
    But your stategy would remain the same only per your non sap source system, the transactions and the ways you configure your datasources would differ.
    Cheers,
    Kedar

  • OWB 10gR2 - Implementation Strategy

    I am trying to find what is the best strategy to install and configure a OWB environment for the following scenario on one linux server machine:
    There are three Oracle databases on this machine:
    database 1 = OWB repository owned by a owb_owner schema. The repository will contain all of design metadata (Source Oracle module with source tables, Target "Oracle module A" with tables, sequences, mappings and Target "Oracle module B" with tables, sequences, mappings). The ETL process is setup to transform data in two stages: 1> Source to target A 2> Target A to target B
    database 2 = It will have target schema Target_A. The contents of "Oracle Module A" from the OWB repository in database 1 needs to be deployed to this "target_A" schema
    database 3 = It will have target schema Target_B. The contents of "Oracle Module B" from the OWB repository in database 1 needs to be deployed to this "target_B" schema
    Do I need to have OWB repository installed in database 2 and database 3 and have control center service running in each of them to facilitate execution of ETL process?
    Deployment of the objects will be launched from a windows workstation via client design center / control center manager. Do I need to have control service running from client machine to facilitate deployment ? If so, would it facilitate deployment of the objects to the above two targe schemas ?
    The intent is to have a process flow in OWB metadata repository of database 1 streamline the complete ETL process tied to a location owned by OWF_MGR schema in database1.
    Please advice what implementation strategy will work best for the scenario. I read strategy presented in http://download.oracle.com/docs/cd/B31080_01/doc/install.102/b28224.pdf .. BUT I need more clarity on the available options.

    Hi.
    you will need a unified repository in each database. The unified repository in OWB 10GR2 contains both the objects for the design repository (your mappings, tables etc.) and the control center repository (runtime and deployment information such as execution times of mappings etc.). In previous versions of OWB they were separate.
    Database 1: Install the unified repository and just use it as your design repository. You will use this when you log in via Designer.
    Database 2: Install unified repository together with Control Center Service and use as control center repository.
    Database 3: Install unified repository together with Control Center Service and use as control center repository.
    While it is possible to have the Control Center Service just run on a client machine , I ran into all sorts of problems in the past with this configuration, e.g. when you log off your client machine it shuts down the Control Center Service. From my experience this setup is not very stable.
    In OWB Designer you can then set up locations and configurations to deploy your mappings to database 2 or database 3.
    You will need owf_mgr on both database 2 and database 3 and you need to deploy your process flows to both databases. What you can't do is to run a process flow say from database 1 or database 2 across databases 2 and 3.
    Can you explain in some more detail why you have a requirement to transform data across two target servers?
    Regards
    Uli

  • SAP implementation Strategy

    Dear All,
    I like to have your suggestion in the below issue:
    Currently i am handling Implementation process in a UTILITY org. The organisation structure includes One Corp office , 5 Hydel Generation Units, One Pump Storage unit , 105 Divisional offices , 5 zonal offices and around 75 Sub station.
    Divisional offices reports to Zonal office in turn Zonal office reports to Corp. Office
    Organisation has already implemented IS utility which caters Customer meter reading and Billing in periodic cycle.
    Organisation having legacy system which follows age old Financial Accounting System which having more than 1200 GL Codes.
    This age old legacy system is going to be replaced by SAP system.
    We have proposed reduction of GL codes based on Standard SAP requirements due to which so many GL codes have been reduced .
    As the organisation yet to decide the GO live strategy. As the area is big it is suggested go live in Phase manner.
    If we go for phase manner the expected problem will be in synchronization between  SAP reporting & Legacy reporting. Because SAP will use reduced no. of GL codes whereas others will be maintaining their Legacy System ( with old GL codes).
    Now my question to my friends / SAP Guru's how  this situation can be handled in proper fashion with your kind guidance .

    Dear Tapas,
    As far as I know reconciliation account and special G/L account concepts can help you in this issue.
    You can define for example a vendor account and a reconsiliation account for. Then you can have some speciall G/L accounts which are related to this vendor. You can connect these accounts through special G/L indicator to vendor master record.
    In fact in this way you will have just a G/L account for each vender that will be as a reconcilation account.
    Regards,
    Omid

  • Persistence API newbie question

    Hello everybody!
    I am new at J2EE development, so can you explain me some details. We're curently do J2EE application at work and using J2EE 1.5 features(EJB 3.0, Persistence etc..). I don't understand exactly what lies under annotations. Let's take Persistence API. All anotations and classes is in javax.persistence package. What is that package, where it come from? Is it located in container or where? In fact I would like to use Persistence API on sites managed by Apache Tomcat Server. Is it possible, what classes do I need? Another question is it is possible to use that API at Swing Applications, and what do I need to do this.
    Please, explain me little of where all that stuff come from.
    Thank you!

    anotations and classes is in javax.persistence
    package. What is that package, where it come from? Is
    it located in container or where? Java Persistence API (JPA) is part of JavaEE 5 platform, and so is available in all JavaEE 5 compliant application servers. In JavaEE SDK 5, these classes are in lib/javaee.jar. JPA is also available as a standalone technology. There are several products that are implementing this technology, like Hibernate, TopLink, or OpenJPA.
    The specification:
    http://jcp.org/en/jsr/detail?id=220
    Persistence Part in JavaEE 5 Tutorial (Part Four: Persistence )
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    In fact I would
    like to use Persistence API on sites managed by
    Apache Tomcat Server. Is it possible, what classes do
    I need? Another question is it is possible to use
    that API at Swing Applications, and what do I need to
    do this. They are all possible ways of using JPA. See JavaEE 5 Tutorial for more details. The newly released NetBeans 5.5 has nice support for developing and deploying JPA applications. NetBeans site has a lot of resources on this topic. For example:
    http://www.netbeans.org/kb/55/persistence_ontomcat.html
    http://www.netbeans.org/kb/articles/hibernate-javaee.html
    -cheng

  • General feedback, comments and questions

    Background: Written many web applications over the years (Java [cocoon, struts, home-grown frameworks], ISAPI, cgi-bin), and also worked with RAD tools like Delphi doing client/server apps. Consequently, JSF looks very interesting to me, especially when you consider .NET and Web Forms. Here are my comments/questions:
    -     The name �Request Events� is confusing. Should be �UI State Change Events� or something.
    -     Why isn't there a subclass of FacesEvent for �Request Events�?
    -     Are there any standard events that all components respond to? (i.e page lifecycle events)
    -     Is there anyway to explicitly state that a component responds to specific types of events (like the way Validators tell you what types of attributes they respond to)? What I�d like to see is the ability to generate an Events tab in the development tool, like most modern RAD environments.
    -     In order to take advantage of a central dispatching mechanism (ApplicationHandler), it would make sense for all pages to flow through the FacesServlet. Is there a pass-through mechanism that doesn�t require a response tree, or would this just be some type of application event? In other words, how does FacesServlet process requests that aren�t mapped to a component tree?
    -     Can you give us an idea about how the model references will work, and what the standard way for the application handler (and its delegates) will get a handle to a model reference will be? (i.e. session parameter).
    -     Why use UIParameters instead of attributes?
    -     I understand that grid and table display functionality is handled by standard Renderers. I still think that JSF needs to have a more complete standard suite of components as well, including grid and table components that can be bound directly to collections and ResultSets. (I know this isn�t EJB-friendly, but in reality many servlet-based applications don�t use EJB). Just requiring a UIPanel alone and the appropriate Renderers isn�t enough. I think that in order for JSF to be successful, it must have at least the standard components that .NET does.
    -     This is a minor detail, but shouldn�t there be a simple addMessage(Message message) method on the FacesContext instead of requiring you to send in null?
    -     You should be able to declaratively associate an ApplicationHandler � you shouldn�t have to add a ServletContextListener to do this.
    -     You should be able to specify a RenderKit for an entire application declaratively. This brings up the question of whether or not an application-wide context is needed (or if the JSF implementation should just subclass ServletContext).
    -     You should also be able to specify the RenderKit for a given session as well as a specific Tree.
    -     Currently, I don�t see any support for modifying the render kit in the JSP implementation. Shouldn�t this be an attribute of the <faces:usefaces> tag?
    -     I�m worried about the performance implications of this design for more complex user interfaces with many controls on a given page. I�ve seen others raise this concern as well, especially when you consider the overhead of copying component values, and constantly traversing the component tree. I recognize that there are a lot of places where object pooling can be used (Renderers, the components themselves, LifeCycle objects, etc.), but does anyone have any specific comments on how this can be achieved with minimal overhead, especially when you consider that a given application may have filters and additional logic in the ApplicationHandler (that may in turn talk to the EIS tier).
    I�m glad to see that for events, encoding, and decoding, you can either handle it directly in the component or delegate it to the proper handler (either a RequestEventHandler or a Renderer). This addresses the fact that in-house controls will likely be bound to a specific client device (at least originally).
    In general, I think this is a great move forward, and it�s one thing that we�ve been lacking for a while (there have been many non-Sun efforts on this front for a while, but we really need a standard if Java is going to remain the preferred platform for rapidly building web apps).
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Kito D. Mann
    [email protected]
    Virtua, Inc.

    In regards to my third point:
    - Is there anyway to explicitly state that a component responds to specific types of events (like the way Validators tell you what types of attributes they respond to)? What I�d like to see is the ability to generate an Events tab in the development tool, like most modern RAD environments.
    I just realized that this is handled implicitly by the fact that all UIComponents are JavaBeans. JavaBeans supports this via EventSetDescriptors. This is what happens when you haven't worked with any GUI tool kits (like Swing) for years :-). It'll be nice to see this functionality in the servlet world.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Kito D. Mann
    [email protected]
    Virtua, Inc.

  • General benefits implementing BO against SAP-BI.

    Hi Experts,
    We have SAP-BI7.0 as our Business Intelligence system and we are thinking to implement BO.
    I have read some information (Ingo's blog, for instance) assuring that BO will run nicely over SAP-ECC and SAP-BI, so the information retrieved from SAP-ECC could be a good reason.
    But I haven't read anything regarding mixing the data retrieved from infosets in SAP-ECC (SQ01) and queries (BEX) in SAP-BI (for instance).
    On the other hand I have heard that one reason to have BO is that the masterdata is fully available from BO reporting.
    The general question of this thread is ask you "why should we go to BussinessObjects?", but I'd like to split this question in some other little questions
    1-What are the benefits of installing BO vs having SAP-BI? Benefits of CrystalReports, Excelsius, etc?
    2- (Deleted -> see the [integration forum|Benefits implementing BO over SAP-BI.;)
    3-Assuming a new project: Which requirements should make us decide to go to BO now?
    4- (Deleted -> see the [integration forum|Benefits implementing BO over SAP-BI.;)
    5-What is new (vs SAP-BI) if we use the masterdata in BO reporting?
    Thanks and regards.
    Please, do not hesitate in request more info from my side, and answer just one or some of the 5 questions, and any other question that could be useful.
    Use links if necessary.
    Zorion
    PS:
    Ingo's 9 first blogs: BusinessObjects and SAP Part 9 - Xcelsius with Crystal Reports and Live Office
    Edited by: Zorion on Nov 18, 2008 7:45 AM - Separate the SAP's part into the integration forum

    Thanks for your reply, Falk.
    I did read some "getting started" documents but I did not find anything what can't be done easily with SAP-BI or MS excel, so I assumed that I was checking the wrong documents.
    Since there are hundred of documents, I have prefered to start a new thread here in order someone could guide me to the correct documents, sorry for the inconveniences.
    Please, could you give me to a document showing the powerful of BO, or any demo video/page/document?
    Thanks again and kind regards.
    Zorion

  • How to implement Strategy pattern in ABAP Objects?

    Hello,
    I have a problem where I need to implement different algorithms, depending on the type of input. Example: I have to calculate a Present Value, sometimes with payments in advance, sometimes payment in arrear.
    From documentation and to enhance my ABAP Objects skills, I would like to implement the strategy pattern. It sounds the right solution for the problem.
    Hence I need some help in implementing this pattern in OO. I have some basic OO skills, but still learning.
    Has somebody already implemented this pattern in ABAP OO and can give me some input. Or is there any documentation how to implement it?
    Thanks and regards,
    Tapio

    Keshav has already outlined required logic, so let me fulfill his answer with a snippet
    An Interface
    INTERFACE lif_payment.
      METHODS pay CHANGING c_val TYPE p.
    ENDINTERFACE.
    Payment implementations
    CLASS lcl_payment_1 DEFINITION.
      PUBLIC SECTION.
      INTERFACES lif_payment.
      ALIASES pay for lif_payment~pay.
    ENDCLASS.                 
    CLASS lcl_payment_2 DEFINITION.
      PUBLIC SECTION.
      INTERFACES lif_payment.
      ALIASES pay for lif_payment~pay.
    ENDCLASS.                   
    CLASS lcl_payment_1 IMPLEMENTATION.
      METHOD pay.
        "do something with c_val i.e.
        c_val = c_val - 10.
      ENDMETHOD.                   
    ENDCLASS.                  
    CLASS lcl_payment_2 IMPLEMENTATION.
      METHOD pay.
        "do something else with c_val i.e.
        c_val = c_val + 10.
      ENDMETHOD.  
    Main class which uses strategy pattern
    CLASS lcl_main DEFINITION.
      PUBLIC SECTION.
        "during main object creation you pass which payment you want to use for this object
        METHODS constructor IMPORTING ir_payment TYPE REF TO lif_payment.
        "later on you can change this dynamicaly
        METHODS set_payment IMPORTING ir_payment TYPE REF TO lif_payment.
        METHODS show_payment_val.
        METHODS pay.
      PRIVATE SECTION.
        DATA payment_value TYPE p.
        "reference to your interface whcih you will be working with
        "polimorphically
        DATA mr_payment TYPE REF TO lif_payment.
    ENDCLASS.                  
    CLASS lcl_main IMPLEMENTATION.
      METHOD constructor.
        IF ir_payment IS BOUND.
          me->mr_payment = ir_payment.
        ENDIF.
      ENDMETHOD.                  
      METHOD set_payment.
        IF ir_payment IS BOUND.
          me->mr_payment = ir_payment.
        ENDIF.
      ENDMETHOD.                  
      METHOD show_payment_val.
        WRITE /: 'Payment value is now ', me->payment_value.
      ENDMETHOD.                  
      "hide fact that you are using composition to access pay method
      METHOD pay.
        mr_payment->pay( CHANGING c_val = payment_value ).
      ENDMETHOD.                   ENDCLASS.                  
    Client application
    PARAMETERS pa_pay TYPE c. "1 - first payment, 2 - second
    DATA gr_main TYPE REF TO lcl_main.
    DATA gr_payment TYPE REF TO lif_payment.
    START-OF-SELECTION.
      "client application (which uses stategy pattern)
      CASE pa_pay.
        WHEN 1.
          "create first type of payment
          CREATE OBJECT gr_payment TYPE lcl_payment_1.
        WHEN 2.
          "create second type of payment
          CREATE OBJECT gr_payment TYPE lcl_payment_2.
      ENDCASE.
      "pass payment type to main object
      CREATE OBJECT gr_main
        EXPORTING
          ir_payment = gr_payment.
      gr_main->show_payment_val( ).
      "now client doesn't know which object it is working with
      gr_main->pay( ).
      gr_main->show_payment_val( ).
      "you can also use set_payment method to set payment type dynamically
      "client would see no change
      if pa_pay = 1.
        "now create different payment to set it dynamically
        CREATE OBJECT gr_payment TYPE lcl_payment_2.
        gr_main->set_payment( gr_payment ).
        gr_main->pay( ).
        gr_main->show_payment_val( ).
      endif.
    Regads
    Marcin

  • Pallet putaway strategy question

    Dear all,
    I am new in the pallet putaway strategy and need your experience advise if you have done this.
    Question.
    1 - To use the pallet putaway strategy (i.e. P), do I need to configure the Storage Bin Type search (i.e. spro > logistics execution > wm > strategies > activate storage bin type search)?? Is it compulsory?
    2 - To use the pallet putaway strategy, the storage type MUST BE a SUT-managed and that the "SUT check activate" checkbox MUST Checked, am I correct?
    thanks
    Tuff

    Hi,
    the storage bin type search and the storage unit type check more or less is the same. You have to define storage unit types, storage bin types, assign which SUT goes into which SBT. Well, and then you activate the check.
    You need to do this for the pallet strategy. You do NOT need to activate the storage unit management in a storage type with the pallet strategy.
    Best regards
    Juergen

  • Client Strategy questions with BPS in mind

    We are implementing BW and BPS.
    The system landscape in my project has been planned to have different client numbers and different logical systems for each environment for BW and Source Systems (Dev, Quality and Production).
    With BPS I am foreseeing issues when transporting the retraction structures, once they carry the client number (transaction UPB_STRUCT)
    I could not find a conversion table for this case (like we have for BW - RSLOGSYSMAP).
    And in this case (transaction UPB_STRUCT) the objects will carry the client number + planning area name (/1SEM/_YS_CHAS_400ZEXP0001).
    1. So I conclude that the client number HAS to be the same in all BW environments (Dev, Quality and Production). Could you confirm this?
    There are configurations for public sector retraction, where the logical system name is used to map the queries into the Funds Management BCS fields. (SPRO -> Define field assignments for plan data transfer from BW)
    2. Given this configuration mentioned, is it REQUIRED to have the same logical system name in all BW environments?
    I’ve seen a presentation from SAP (SAP BW System Landscape Strategies / Mayer) with certain recommendations like the ones found in the OSS note 184447:
         You thus should have the following over all system landscape
    BD(BW1CLNT100)->BC(BW1CLNT100)-> BP(BW1CLNT100)
       ||                  ||                  ||       
       ||                  ||                  ||        
    OD(QS1CLNT300)->OC(QS1CLNT300)-> OP(QS1CLNT300) 
    That presentation also mentioned that’s possible to have multiple Logical System names for BW in multiple environments.
    Please give me your thoughts having in mind BW-BPS as part of the implementation:
    3.     Should we have SAME Client number and SAME Logical system name in all environments for BW?
    4.     I don’t see any impact for source system perspective with logical names, do you?
    5.     If you tell me that BW can handle different Logical System names, could you tell me where to configure to have BPS objects and retraction query mappings pointing to the right logical systems and client numbers the transport process (equivalent to what RSLOGSYSMAP does for source systems).
    Thanks
    Alex Zetune
    Gold Strategy Solutions
    az AT goldstrategy.com

    Hello Alex,
    I strongly recommend to have identical client numbers in your landscape (especially if you still have the choice). BW handles only one client anyway and there is no benefit of having different client numbers.
    One client number will take care of BPS issues and you can hardcode structures and ABAP to the client number. Trust me it will make your life easier down the road.
    BPS itself does not depend on the logical system name. If there are connecting applications, they have to take care of the mapping like BW does. But this depends on the application.
    Regards,
    Marc
    SAP NetWeaver RIG

  • First Implementation - Random Questions

    Hi all, I've been doing my first implementation for past week and I've come across a few questions that I haven't found the answers to (yet). While scouring the user guides and Google, I figured I might as well ask the forums to expedite my research.
    1) I created a new security device, but canceled creation during the process. Now when I try to re-add the device with the same name, it complains that it already exists, however it's not in the device list. Where can I find it?
    2) I added my Foundstone device to MARS and configured it to do topology updates. Is there any method for confirming MARS is pulling vulnerability information from Foundstone?
    3) When I create a custom rule (keyword specific) to be notified on, a similar built-in rule fires, but mine does not. If I disable the built-in rule, mine will fire and alert me. Does MARS match only the first, or the best rule to fire on?
    4) Is it possible to customize the main Dashboard, or only the "My Reports" section.
    Thanks in advance for any replies,
    TBC

    Thanks for the replies. I was able to add the device and schedule the topology updates, but short of watching the Foundstone database for incoming requests from MARS, I'm unable to verify that MARS is actually querying and using vulnerability information from Foundstone.
    Thanks again
    *Edit*
    Progressing through this issue. I found that if I go to Management > IP Management > "Device_Name" > Edit > Vulnerability Assessment that I should be able to see the detected OS and services running on the machines. I do not see that information.
    Upon review of the logs, I found the following:
    pn va VulnerabilityDiscovererFActory PN-1100: Java message: Unsupported device type: Microsoft,Windows,Generic, use Dummy VulnerabilityDiscoverer
    pn va foundstone FoundstoneVulnDiscoverer PN-1100: Java message: Exception caught in getting JDBC connection: Db server closed connection.
    pn va ThirdPartyVulnDiscoverer PN-1100: Java message: Foundstone: Can not get JDBC connection.
    So it appears to be a configuration issue or at least a database communication issue. I will continue to pursue it.
    Thanks

  • Firefighter Implementation Strategy

    Hello All,
    We are implementing Firefighter in our landscape, and we want that all changes in SAP system should be done with Firefighter, but to reduce the usage of Firefighter we would be using our existing normal users for Daily Checks and monitoring without any change.
    To do this, we need role/s which can be used for executing most of the Basis transactions with DISPLAY access only.
    Appreciate if you can share such roles OR recommend whats the best strategy for implementing Firefighter.
    Regards
    Davinder

    Davinder,
    Once again, this really depends on your organisation but especially on their ability to review the logs generated.
    Most people tend to use Firefighter for just temporary elevated access in emergency scenarios. The expecation is that it is only used infrequently and therefore, the logs that are generated are reviewed in detail by the controllers.
    As I'm sure you have noticed, the tool is much more powerful than that but using it as a blanket control for all system changes means that you will be innundating your controllers with logs. This actually weakens the control as they are much more likely to miss critical activities due to the volume of data being sent to them.
    I would assess what you actually think is a critical change and design Firefighter scenarios to fit those. You can then also use that as a mechanism to remove critical access from business as usual roles citing Firefighter as a more controlled approach.
    You can tailor the scenarios to different tiers eg. Emergency and then a subset of sensitive transactions (e.g. SCC4 / SARA with delete) but it must be lead by the business requirements for what is the overall risk to the system.
    Simon

  • Implementing interfaces question

    I have a really vague question about interfaces....can't really figure out how this works...I know that interfaces only have method definitions and the implementing classes should define those methods.
    I am trying to use a DOM parser to parse an XML document. The org.w3c.dom package gives you a list of interfaces like Node, NodeList, Document etc to work on.
    Assume that i have the following code in my class:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse(invoiceXML);
    NodeList itemList = doc.GetElementsByTagName("item");
    Here is what I dont understand...doc is of type Document which is an interface. How can you call the method of an interface directly in the 4th line? I thought we are only supposed to call methods on the implementing class...the problem is I dont see an implementing class here...does the builder.parse(invoiceXML) return a Document interface or an object that implements the Document interface? If 'doc' is actually an object that implements the Document interface then it makes sense here...but then will all the methods be automatically implemented in the object created by the api?

    Here is what I dont understand...doc is of type Document which is an interface. Yes.
    How can you call the method of an interface directly in the 4th line? How? Just like that.
    I thought we are only supposed to call methods on the implementing class...Methods are applied to objects, not classes.
    the problem is I dont see an implementing class here...And you don't need to. Do you need to open up your DVD player and look inside in order to push "play"?
    does the builder.parse(invoiceXML) return a Document interface or an object that implements the Document interface? Methods don't return interfaces. They return references to objects (or primitive values).
    If 'doc' is actually an object that implements the Document interface then it makes sense here...Eureka!
    but then will all the methods be automatically implemented in the object created by the api?"Automatically" is not how to think about it. The Document interface was implemented by some class, the details of which aren't important. What's important is that if you have a reference to an object of type Document, you can apply Document methods to it, according to the API for Document.

  • General java sound capability questions

    im trying to get a handle on the basics of what i can do with sound in java. ive read a lot of pages but there are still some ambiguities.
    what i want to do ideally is have an applet that takes sound from the client microphone and records the sound file on a server. so:
    if this were an applet, would it require me to first save the sound file locally (and therefore sign the applet?) or can the sound be saved in memory somehow without creating a "file" per se - then moved to the server? if it could be done does it require JMF?
    i read that an applet cannot convert the file format client-side. does that mean the file would have to be uploaded in an uncompressed format?
    a java webstart app is also acceptable for my purposes. can someone advise if that is the best way to go?
    can a web start app do the following:
    - connect to a database (on the server)?
    - record / compress / upload a sound?
    if so, i guess java web start is the way to go... if you know any good resources for any of these issues please let me know... thanks!

    BamaColtsFan wrote:
    Hey Gang,
    I know that the general rule here is to try your code first then ask why it doesn't work but my questions right now are more conceptual than anything else. I know a little (very little, really) about Java and some of it's capabilities. I've been thinking about possibly converting a MS Access Utility that I use into a Java program. The MS Access version can be a little unstable and I think by moving to Java, I can eliminate that problem. But, I want to be sure that Java can do everything I need it to do before I spend a lot of time only to find I can't get there from here. These are my initial questions:
    1. I have to run several reports from a large Oracle system. Currently, I export the data as Excel files and link the Access database to them. Using Java, will I be able to export as text files (daily) and have the program read the text and treat it like a database file? The short answer is NO. The more lengthy answer is yes, but you can attach to Excel spreadsheets through ODBC (JDBC/ODBC Bridge) and use them as a database the same way Access did.
    2. Part of the output of the Access database feeds MS Word mail-merge documents that are used to send e-mail messages. Will Java format and send e-mail via Outlook? NO, but you can send mail with the Java Mail API.
    3. The second half of the output is an Excel Workbook with re-formatted and cleaned report data from the original files. Can Java dynamically pass information to Excel and create the various worksheets necessary to display the data the way management wants to see it? NO
    Now having said all of that, there is the Java interface through OpenOffice, which will support MS-Office documents. The MS Office products are Windoz specific, and as such, there are some 3rd party Classes out there that will interface to them, but not directly from Sun's standard API.

Maybe you are looking for

  • Loosing Credit by the Minute on Iphone

    Hi everyone I am in desperate need of some help. I have just got an Iphone 3G and use pay as you go on the Orange Network. I topped up with £15.00 pounds and within 2 days it was down to £3. I had made 4 calls and sent 3 texts. I have read that the i

  • IC Recorder ICD-P17 - driver issue

    Hi, I've got a Sony IC Recorder ICD-P17. I am running Windows 7 Enterprise Edition. I plug in the Recorder via USB to my computer and the screen says PC LI and then what looks like a WR. My device manager shows the Recorder but says I do not have the

  • Quicklook suddenly not working on some .mov files & most .m4v

    Hi, I'm kind of stuck here and could use some help. Recently, I can no longer get a Quick Look view on some .mov files and many, if not all, .m4v files. They were working when I installed Mountain Lion and perhaps up until the first update. I'm not s

  • User exits for CO02 Tcode

    Hi Experts, Requirement:  whenever a  production order component  is negative then batch number is automatically assigned or populated in CO02 tcode in goods receipt tab. for this i need User Exit.i am already trying PPCO0007  but its not working . C

  • Adobe Muse Internet Launch Issue

    Every time i try to launch my Adobe Muse, it says that i dont have an internet connection.... this is incorect. My internet is fine