My initial design of the JCP implementation,YOUR suggestions required

I have no experiences before on Javacard/Smartcard/COS...
Here is a simple/naive design after reading JCP specs and smartcard handbook, etc.
Please give me some guides/suggestions/references
Thanks.
The ideas below lacks of supporting materials.
The relation between COS and JCRE:
1. JCRE has lots function of the COS like Security Manger, Transmission Manager, Command APDU handle,
Application Manager(implemented as Applet), File Manager(implemented as Applet)
2. The main() of a COS is a loop receiving/sending APDU.
3. The IO loop could be implemented as Java code.
GUESS:so the JCP(VM, API, JCRE, Applets) plus native functions(IO, crypto) is the COS.
The function/class below form the COS of a smartcard
//1.cos
int main()
     JCVM_run(JCRE);
//2. cos components == javacrd native functions
usb_opertions();
hash256();
//3. JCRE
class JCRE
     APDUDispatcher apduDispatcher;
     IOManager ioManager;
     SecManager secManager;
     Applet[] currSelectedApplets;
     start()
          presetApplets.install();
          ioManager.registerListener(apduDispatcher);
          ioManager.loop();
     switchApplet(newApplet)
          if(!firewallCheck())
               return;
          oldApplet.deselect();
          newApplet.select();
//3.1. APDUDispatcher, like the "card manager" in OpenCard
class APDUDispatcher
     //1 raw byte stream -> APDU
     //2 default process
     //3 delegate to applets
     process()
          switch()
          case SELECT_FILE:
               JCRE.switchApplet(findApplet());
               break;
          default:
               logicalChannelNo;
               JCRE.currSelectedApplets.process(apdu);
//3.2. IOManager
//java wrapper for lowlevel io operations
class IOManager
     loop()
          while(1)
               if(read())
                    apduDispatcher.process();
//3.3. SecManager
class SecManager
     firewallCheck()
     capAuth()
Please give me some guides/suggestions/references
Thanks.

The idea is right.
I've found an similar implementation here.
why2.38 lib/why/javacard_api/javacard/framework/Dispatcher.java
(note: this is javacard.framework.Dispatcher not javacard.framework.service.Dispatcher, the first one is part of JCRE, instead of part of API)
http://docs.camlcity.org/docs/godipkg/3.11/apps-why/lib/why/javacard_api/javacard/framework/Dispatcher.java
Wish helpful.

Similar Messages

  • When a document is a scanned PDF and converted to word some of the words and paragraphs are randomly a shade lighter when printed.  You can (barely) see it on the screen but it is different.  All font and design are the same.  Any suggestions?

    The lighter shading has been a problem when printing the documents.  You can barely see it but it is there????

    Hi Notary,
    I saw something similar with my 4 TB Promise SmartStor NAS after I upgraded to Lion. Only, I had ALL of my iTunes library on the NAS and one day, about a week after the upgrade I finally tried to play music with iTunes, but it kept throwing up an error just like the one you're seeing. I searched around for a while and finally found some steps that fixed the problem.
    I found this solution at another site (can't remember which) that gave credit to this site:
    http://www.alexanderwilde.com/2011/04/os-x-lion-connection-error-with-afp-and-wo rkaround/
    Here are the directions I cut-n-pasted into my little notes file:
    1) Launch the Terminal app
    2) Run this command:
    sudo chmod o+w /Library/Preferences
    3) Run this command:
    defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1
    4) Restart your computer
    5) From Finder, select an AFP server, or use “Connect To…”
         This will cause the AFP Client to create the full preferences file
    6) Launch the Terminal app again
    7) Run this command (all on one line, make sure double-quotes are simply double-quotes from your keyboard, not pasted from the web as up and down quote marks) (yes, some of the spelling looks weird):
    sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "Cleartxt Passwrd" "MS2.0" "2-Way Randnum exchange"
    8) Run this command:
    sudo chmod o-w /Library/Preferences
    9) Restart your computer
    To disable this hack, run this command (all on one line, make sure double-quotes are simply double-quotes from your keyboard, not pasted from the web as up and down quote marks):
    sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array-add "DHCAST128"
    I hope that helps. If not, sorry for the ludicrous-long reply.
    Andy

  • Changing the entire design of Keynote from one standard design to another after one has typed slides on the initial design.

    Hi Everybody!
    I'm just enjoying the freedom of using the Keynote App on my iPad.  I create presentations for someone who is not computer literate at all, but is able to show the slides of the iPad after a lot of lessons.
    The problem is that I'm using the "black" chalkboard version of the design to show the slides as they are used to that type of "look" on the lecture blackboard (no they do not "like" whiteboards at all with their many choices of colors, nor did they like Penultimate, or other similar white board writing devices on the iPad.  They look too futuristic, or technologically complex for them to master).
    So everything is going along fine, but the person does insist on having a paper copy of the slides in the order they are presented to use at the podium to make written notes in it. I will try again to teach that yellow lined "presenter notes" are available in the keynote app, but then they lose the full screen appearance of the slides when they share with those notes so they really refuse to use them preferring instead to use pen and paper.
    Enough said of the problems I'm experiencing!  Why am I here?
    I'm trying to find a way to print out the pages without using up my black ink cartridges!
    Of course from day one I simply copied and pasted all 30-40 slides for each presentation into a "new" white background presentation and that worked and they came out perfectly as shown in the "black board" version.
    But I'm looking for a "one button" conversion facility to change the design of an entire written presentation in Keynote on the iPad if anyone knows of a way.
    I tried exporting the Keynote to PDF or Power Point via Email.  (I keep getting the message to use iWork, have not set it up or tried it as the person does not want their lecture notes out there "in public" and I didn't see any way that iWork stays "private").
    But when I tried to use Email out of iPad, I found that only the  Power Point could be Emailed on my Gmail account attached to the iPad's Apple Mail system (is that correct use of the terminology?  Just learning all the abilities of this new device myself!).
    For some reason the PDF version  says that it cannot be Emailed,  i.e. "Email failed"
    When I open up the Power Point in my Microsoft Power Point or  Open Office Image program, the formatting and letters are all messed up.  Of course its easy (one button simple method)  to change that black background for all 30-40 slides at once and save it again to print out with white background.  But the letters run off the page, the letters are HUGE!  for the title lines on the pages with titles.  Just hundreds of errors that would take forever (even on a computer) to try and make look like the original does on the iPad so the person can associate the same printed out page with the same page being shown on the iPad from the Blackboard style Keynote.
    Ok,. I also tried directly downloading the file from the Keynote to my PC using the iTunes application and synced it up.  That got it in faster, without copying and changing to EMail and Emailing myself on the iPad to the PC, but still the  formatting problems exist.
    Ready for my questions?
    1. Is there an app (can't do searching that app store very well or efficiently yet). that can overcome this problem and transfer Keynote presentations to the PC without all the resultant loss of formatting so I can print them out as White pages with just a click of the button on the PC program?
    2.  Is there any shortcut to getting the Keynote to the PC without all the complicated steps that I'm doing?  I have a book by ______ on the Keynote for iPad where I found most of the answers, but these were the only ways he suggested  I get the presentation from iPad to Email/PC.
    3.  Is there any possibility of my using Keynote on a "PC"?  I do not own a Apple with the required Intel chip to operate the latest Keynote program being sold, (09?)which from prior experience with the iPad and my older Apple G4 PowerBook I found I need the more advanced Intel Apple devices to interface with the iPad correctly.
    4.  If there is a Keynote available that works on a "PC", would it solve the formatting problem if I either Emailed it or Synced it up using iTunes?
    5.  What is the preferable setting or method for that process if it does exist (if it does not, who or where is the "suggestion" box for iPad to get message to Apple?  I don't know if they read these Forums for any ideas.
    6.  Finally,  why am I not able to export my Keynote as a PDF?  Is it because its too large a file?  (Even when I tried just four text only slides it still failed).   Maybe there is a secret button I do not know about yet on the iPad to activate this process so I can try out if PDF works better on a PC  (But I need a program that can alter the PDF background so didn't really pursue that method as it would be a dead end without such a PDF authoring program.
    Any information anyone can provide on these questions would be helpful!
    Thanks for reading this!
    Help Me with Keynote

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Cannot edit pages in SharePoint Designer 2007 "The Server could not complete your request...

    Hi All,
    We are using SharePoint Designer 2007.When we try to open any page in designer we get following error,
    "The Server could not complete your request. Contact your Internet Service Provider or Web server administrator to make sure that the server has the FrontPage Server Extensions or SharePoint Services installed"
    If I click on Details button then I get the following message
    "Object moved. Object moved to here."
    Anyone experienced anything like this before?
    Also when I try to edit sites when browsing on IE and than clicking on "Page" and "Edit in SPD2007" it's always
    opening login.aspx site in SPD and that is the only one I can edit.
    Kindly, please help me on this issue.

    Hello,
    I have found one link for same issue, you might want to try it out:
    http://voices.yahoo.com/sharepoint-designer-error-server-could-not-complete-7419812.html
    Have you modified the custom provider in config file? Also see this link if this is the case for your second issue:
    http://support.sharepointsolutions.com/entries/131560-Role-Manager-feature-has-not-been-enabled 
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • The Agile Buffet Table: Implement your own Agile process at GIDS 2011

    Great Indian Developer Summit 2010 u2013 Gold Standard for India's IT Professional Ecosystem
    Are you new to Agile? Having challenges implementing an agile process in your organization? Have you been using Scrum, but need to bend the rules to make it work in your organization? Can't get the business to "buy-in"? Joel Semeniuk is coming to India's biggest summit for the software developer ecosystem - Great Indian Developer Summit to teach how to implement an agile process in your organization. You'll look at the "buffet table" of agile processes and procedures and learn how to properly decide "what to eat." He'll start by defining XP, Scrum, Kanban and some other popular methodologies and then teach how to mix and match each process for various scenarios, including the enterprise, ISVs, consulting, and remote teams. Then take a look at agile tools and how they will aid in implementing your development process. Lastly, he will talk about how to "sell" agile to your business partners and customers. The summit will be held 19-22 April 2011 at the IISc in Bangalore.
    Joel Semeniuk is a founder of Imaginet Resources Corp; a Canadian based Microsoft Gold Partner. He is also a Microsoft Regional Director and MVP in Team System, and INETA speaker, and has a degree in Computer Science. With over 18 years of experience, Joel specializes in helping organizations around the world realize their potential through maturing their software development and information technology practices. Joel is passionate about Application Lifecycle Management tooling, techniques, and mindsets and regularly speaks at conferences around the world on a wide range of ALM topics. Joel is also the co-author of "Managing Projects with Microsoft Visual Studio Team System" published by Microsoft Press as well as dozens of other articles for popular trade magazines. Joel is also a certified Scrum Master.
    For further information on GIDS 2011, please visit the summit on the web http://www.developersummit.com/

    Hi Sivaram,
    This error is generally related to issues with Memory.
    For very high performance intensive activities you may even need to increase the memory temporarily...
    Please check with your basis team...
    Regards,
    Ashok

  • What is the purpose of your business? For logo design?

    What is the purpose of your business? For logo design?
    Can anybody reply the best message in this...

    Hi Kittu,
    There may come a requirement of creating a new attribute or method of a Business Object which doesn't exist in the standard Business Object.
    In these cases, you may have to create a sub-type of Business object and write your own code(logic) for attributes or methods.
    Clarifications are welcome.
    Thanks
    Venkat

  • Design Patterns, The Decorator

    When trying to implement the classic decorator design patterns your decorator executable might look like this:<br><br>
    <pre>
      METHOD validate.
        DATA: Validator TYPE REF TO validation_manager.
       CREATE OBJECT:
         Validator TYPE validation_manager.
        ,Validator TYPE validate_format                 EXPORTING x_validator = Validator
        ,Validator TYPE validate_values                 EXPORTING x_validator = Validator
        ,Validator TYPE validate_relation_input       EXPORTING x_validator = Validator
        ,Validator TYPE validate_relation_database EXPORTING x_validator = Validator.
        me->lst_result = validator->validate( me->lst_data ).
        WRITE: / 'Processing Validate Activity'.
      ENDMETHOD.                    "validate</pre><br><br>
    The validate method ends up in endless resurcion in the memory. The reason is that I'm using the same variable as the resulting instanse and as parameter. It seems like the constructor treats both the result and the parameter as the same field/instanse regardless import parameter such as VALUE/REFERENCE. If I change the method to use an extra field in the method validate like:
    <br><br><pre>
      METHOD validate.
        DATA:
          validator  TYPE REF TO validation_manager
         ,recursive  TYPE REF TO validation_manager.
        CREATE OBJECT validator TYPE validation_manager.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_format
          EXPORTING x_validator = recursive.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_values
         EXPORTING x_validator = recursive.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_relation_input
          EXPORTING x_validator = recursive.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_relation_database
          EXPORTING x_validator = recursive .
        recursive ?= validator.
        me->lst_result = validator->validate( me->lst_data ).
        WRITE: / 'Processing Validate Activity'.
      ENDMETHOD.                    "validate</pre><br><br>
    Now the decorator engine works, but why does the first implementation not work when the same one executes fine in php, c++, delphi, java and other languages.<br><br>
    If you do not know what I'm trying to discuss, look up "Design Patterns - Simply", and jump to the chapter about the decorator design pattern. I'm trying to use this design pattern for a validation manager within my Business Process Engine, which needs to be able to configure what types of validation needed for on specific process (BPMN).<br><br>

    Hi Matt, Thanks for the formatting..:) I will post the complete program as it's only a prototype program. Trying to get the format under control.
    </body>
    Report  ZDP_DECORATOR_XMP01
    REPORT  zdp_decorator_xmp01.
    parameters: bestimpl  TYPE boolean_01 default 0.
    TYPES:
      BEGIN OF processdata
       ,name   TYPE char30
       ,street TYPE char30
       ,zip    TYPE char5
       ,city   TYPE char30
       ,email  TYPE char50
       ,phone  TYPE char20
    ,END OF processdata
    ,BEGIN OF result
       ,msgid  TYPE msgid
       ,msgtyp TYPE msgty
       ,msgno  TYPE msgno
       ,status TYPE char1
    ,END OF result.
    CONSTANTS:
    true     TYPE boolean_01 VALUE 1
    ,false    TYPE boolean_01 VALUE 0.
    CLASS validationmanager DEFINITION
    CLASS validation_manager DEFINITION.
      PUBLIC SECTION.
        METHODS:
          validate
            IMPORTING
              x_data             TYPE processdata
            RETURNING
              value(y_result)    TYPE result.
    ENDCLASS.
    CLASS validationmanager IMPLEMENTATION
    CLASS validation_manager IMPLEMENTATION.
      METHOD validate.
        WRITE: / 'Common validation'.
      ENDMETHOD.                    "validate
    ENDCLASS.
    CLASS Validate_Decorator DEFINITION
    CLASS validate_decorator DEFINITION INHERITING FROM validation_manager ABSTRACT .
      PUBLIC SECTION.
        DATA: validator TYPE REF TO validation_manager.
    ENDCLASS. 
    CLASS validate_format DEFINITION
    CLASS validate_format DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.   
    CLASS validate_format IMPLEMENTATION
    CLASS validate_format IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the format checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS.
    CLASS validate_values DEFINITION
    CLASS validate_values  DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.
    CLASS validate_values IMPLEMENTATION
    CLASS validate_values IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the values checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS. 
    CLASS validate_relation_input DEFINITION
    CLASS validate_relation_input DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.
    CLASS validate_relation_input IMPLEMENTATION
    CLASS validate_relation_input IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the relation input checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS.
    CLASS validate_relation_database DEFINITION
    CLASS validate_relation_database DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.  
    CLASS validate_relation_database IMPLEMENTATION
    CLASS validate_relation_database IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the relation database checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS.  
    CLASS process_execution DEFINITION
    CLASS process_execution DEFINITION.
      PUBLIC SECTION.
        METHODS:
          startevent
         ,getdata
         ,validate
         ,process
         ,endevent.
      PRIVATE SECTION.
        DATA:
          lst_data   TYPE processdata
         ,lst_result TYPE result.
    ENDCLASS.                    "process_execution DEFINITION
    CLASS process_execution IMPLEMENTATION
    CLASS process_execution IMPLEMENTATION.
      METHOD startevent.
        WRITE: / 'Processing startevent'.
      ENDMETHOD.                    "startevent
      METHOD getdata.
        me->lst_data-name        = 'Hans Andersen'.
        me->lst_data-street      = 'H.C Andersens Boulevard 112'.
        me->lst_data-zip         = '1557'.
        me->lst_data-city        = 'København'.
        me->lst_data-email       = 'hcATandersen.dk'.
        me->lst_data-phone       = '0045-31162211'.
        WRITE: / 'Processing Get_Data Activity'.
      ENDMETHOD.                    "getdata
      METHOD validate.
        DATA:
          validator  TYPE REF TO validation_manager
         ,recursive  TYPE REF TO validation_manager
        IF bestimpl = true.
          CREATE OBJECT:
            validator TYPE validation_manager
           ,validator TYPE validate_format EXPORTING x_validator = recursive
           ,validator TYPE validate_values EXPORTING x_validator = recursive
           ,validator TYPE validate_relation_input EXPORTING x_validator = recursive
           ,validator TYPE validate_relation_database EXPORTING x_validator = recursive.
        ELSE.
          CREATE OBJECT validator TYPE validation_manager.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_format
            EXPORTING x_validator = recursive.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_values
           EXPORTING x_validator = recursive.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_relation_input
            EXPORTING x_validator = recursive.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_relation_database
            EXPORTING x_validator = recursive .
          recursive ?= validator.
        ENDIF.
      Recursive call of the validate and it's successors
        me->lst_result = validator->validate( me->lst_data ).
        WRITE: / 'Processing Validate Activity'.
      ENDMETHOD.                    "validate
      METHOD process.
        WRITE: / 'Processing Process Activity'.
      ENDMETHOD.                    "process
      METHOD endevent.
        WRITE: / 'Processing endevent'.
      ENDMETHOD.                    "endevent
    ENDCLASS.    
    CLASS mainapp DEFINITION                                             *
    CLASS mainapp DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          main.
    ENDCLASS.   
    CLASS mainapp IMPLEMENTATION                                         *
    CLASS mainapp IMPLEMENTATION.
      METHOD main.
        DATA:
          p89 TYPE REF TO process_execution.
        CREATE OBJECT p89.
        p89->startevent( ).
        p89->getdata( ).
        p89->validate( ).
        p89->process( ).
        p89->endevent( ).
      ENDMETHOD.  
    ENDCLASS.     
    START-OF-SELECTION.
      mainapp=>main( ).
    Edited by: Matt on Dec 22, 2009 2:03 PM Fixed formatting

  • SAP Security handover from the Onshore Implementation team Documents

    Dear All,
    We are an Implementation & Support Team and we are getting SAP Security handover from the Onshore Implementation team where in future we ought to continue the Implementation.
    Please could you let me know what others documents which we require for handling the complete security landscape for our Scenario!
    CRM, BI, BS, SOLMAN, EP and PI
    Please suggest any other documents besides the below or any other specific details with respect to each Module,
    u2022           Enterprise-Wide Role Matrix
    u2022           Role Implementation Framework Prototype
    u2022           User Authorization and Strategy Management Procedures
    u2022           User Role and Authorization Concept Technical Design
    u2022           SAP Security Organization Hierarchy Requirements
    u2022           Transaction to Role Mapping
    u2022           Role to Position Mapping
    u2022           Available authorization policy documents
    u2022           Role matrix with segregation of Duties
    Many Thanks

    What do you have defined for your support?
    Presumably you have quoted a price per call but what do you cover and how do you calculate the charge to your client?
    Please let me know so that I can undercut your quote.
    Damn - forgot to ask who your client was and the contact name.
    Cheers
    David
    Edited by: David Berry on Feb 11, 2011 12:29 AM
    Edited by: David Berry on Feb 11, 2011 12:30 AM

  • How will an external Hard drive designed for the macbook Pro work with my White Macbook?  My  white macbook has a Firewire 400 and the G-Tech HD has a 800 to 400 compatible cable for the firewire.

    I am asking this because I want the G-Tech Hard drive  says that it is designed for the macbook pro.  Yet, I want to back up faster with by using my firewire 400 which is not an option on the one designed for the white macbook that does not have a firewire (only a USB port.)  The G-Tech Hard drive comes with the 800 to 400 compatible cable and has 5400 RPM with 750 GB.  Also, I've heard that laptops with low battery (mine all the time)  won't have the power for a bus powered Hard drive (as in no ac plug in adaptor.)  Can I just plug in my laptop?  Any one know the answers from experience with this hard drive?

    As far as I know, if a harddrive works with a Macpro, it should work with the Macbook: if your Macbook is low on power, plug in the AC adapter
    If your Macbook has a firewire port, then it should be fine. BUt i would do somemore research first.

  • Setting null values vs Default or initial values in the Database?

    i am working on a system and i have set any field that might optional as Allow Null,, but this is causing me a lot of troubles especially when i am querying the data or perfoming some calculations from the database. So is it valid if i changed all the Allow null field to have initial values an restricting null values to be inserted into them, so example, to set the initial values for an integer to be 0 and string to be empty?

    Hi,
    You can implement business logic on db side or on app side.
    Advantage and disadvantage of implementation business logic on DB side.
    Advantages:
    1.Don't require app server software version changes/compilations (Java, C, C++, C#...)
    2.Stored procedures are stored directly in the db.
    3.DBA can manage and optimize the stored procedures in flexible way; it'll be transparent for app server because the same remaining interface.
    4.Avoidance of network traffic - the stored procedures can run directly within DB engine.
    5.Encapsulation of business logic as API in the database.
    6.Reports can be implemented like PL/SQL functions that return table data type. The functions can be called from application side - sort of API.
    Disadvantages:
    1.DB vendor specific, but when dealing with the same databases (for example Oracle) it's not relevant.
    2.Require DB skills to write the procedures correctly: it will require time for a pure java/c/c++/c# programmer to understand the DB code and to write it in optimal (from db point of view) way.
    3.If it's too complex business logic - the db side implementation can become too complex.
    To overcome issue with null(s) please use NVL function.
    Example:
    drop table  TEST_TABLE;
    create table TEST_TABLE(parameter varchar2(20), val number(10, 2));
    insert into TEST_TABLE values ('A', 23.245);
    insert into TEST_TABLE values ('B', null);
    insert into TEST_TABLE values ('C', 123);
    insert into TEST_TABLE values ('D', null);
    select avg(nvl(val, 0)) from TEST_TABLE;Hope this will help.
    Best Regards,
    http://dba-star.blogspot.com/

  • "USB device not recognized." "The connection between your device and the desktop could not be established. Please check your setup and try again." Tungsten E2, Outlook 2007

    Hi,
    I am running XP SP 2, on a Dell Vostro 1000, Palm OS Garnet v5.4.7 on a Tungsten E2. I have worked though issues relating to synchronization, Outlook 2007, Docs to Go, etc., in the past.  Thank you board members! 
    Once I worked thru all the initial problems, my Tungsten E2 was sync' ing beautifully to my laptop until a few days ago.  There have been no changes (I know of) to the configuration, but now I receive  "The connection between your device and the desktop could not be established.  Please check your setup and try again."  On the laptop I sometimes get  "USB device not recognized."  I am unclear why I get the PC message sometimes and not others.   
    I have tried the following: (not necc exactly in this order)
    Double checked Hot Sync Mgr settings: Local USB (ver. 6.0.1)
    Reset the Palm (multiple times)
    Rebooted the laptop  (multiple times before and after the Palm resets)
    Went to Support Libraries including http://kb.palm.com/SRVS/CGI-BIN/WEBCGI.EXE/,/?St=57,E=0000000001060189973,K=9550,Sxi=3,Case=Obj(3695...)
    and http://kb.palm.com/SRVS/CGI-BIN/WEBCGI.EXE?New,Kb=PalmSupportKB,ts=Palm_External2001,Case=obj(1409) 
    Followed the steps in "Start Here" found at  http://forums.palm.com/palm/board/message?board.id=windows_hotsync&thread.id=26057 
    Moved Backup directory as per a post on this forum
    Looked for a deleted a file called "Graffiti_ShortCuts_____________" per a post on this forum
    Followed the steps in HotSync troubleshooter guide you can run through located on
    http://kb.palm.com
    Went into Device Manager - found it shows no yellow ! 's
    Followed Device Mgr Troubleshooter - went all the way thru with no solution 
    Tried all four USB ports - the PC's bell-like tone does not sound when I disconnect or reconnect the Plam's cradle like it does when I conn/disconnect other USB devices -I think that is a clue.    ...? 
    Cleaned the Palm's contacts (and cradle's contacts with a old, dry toothbrush)
    Read all the posts under "USB device not recognized." 
    OK, I'm at a loss, can anyone help me?  Many thanks in advance! 
    ~Bob
    Post relates to: Tungsten E2

    Hello!
    Using a cradle with the Tungsten E2?  Tried bypassing the cradle and just use the hotsync cable?  Tried a different computer yet?  Somehow, the PC is having problems getting a signal from the device.  I assume you have the laptop charger plugged into the laptop during this?  Not going through a docking station or port-replicator.
    One crazy thing you can try is unplug the charger from your laptop, remove the battery from the laptop and leave it out for like 10mins and put it back in and reboot the laptop.  This should not cause side effects but still contact your OEM to make sure that nothing else is needed after leaving the battery out for extended period of time.  Keep me posted.
    Post relates to: Treo 650 (Unlocked GSM)

  • Logical Database design and physical database implementation

    Hi
    I am an ORACLE DBA basically and we started a proactive server dashboard portal ,which basically reports all aspects of our infrastructure (Dev,QA and Prod,performance,capacity,number of servers,No of CPU,decomissioned date,OS level,Database patch level) etc..
    This has to be done entirely by our DBA team as this is not externally funded project.Now i was asked to do " Logical Database design and physical Database
    implementation"
    Even though i know roughly what's that mean(like designing whole set of tables in star schema format) ,i have never done this before.
    In my mind i have a rough set of tables that can be used but again i think there is lot of engineering involved in this area to make sure that we do it properly.
    I am wondering you guys might be having some recommendations for me in the sense where to start?are there any documents online , are there any book on this topic?Are there any documents which explain this phenomena with examples ?
    Also exactly what is the difference between logical database design vs physical database implementation
    Thanks and Regards

    Logical database design is the process of taking a business or conceptual data model (often described in the form of an Entity-Relationship Diagram) and transforming that into a logical representation of that model using the specific semantics of the database management system. In the case of an RDBMS such as Oracle, this representation would be in the form of definitions of relational tables, primary, unique and foreign key constraints and the appropriate column data types supported by the RDBMS.
    Physical database implementation is the process of taking the logical database design and translating that into the actual DDL statements supported by the target RDBMS that will create the database objects in a target RDBMS database. This will generally include specific physical implementation details such as the specification of tablespaces, use of specialised indexing (bitmap, clustered etc), partitioning, compression and anything else that relates to how data will actually be physically stored inside the database.
    It sounds like you already have a physical implementation? If so, you can reverse engineer this implementation into a design tool such as SQL Developer Data Modeller. This will create a logical design by examining the contents of the Oracle data dictionary. Even if you don't have an existing database, Data Modeller is a good tool to use as a starting point for logical and even conceptual/business models.
    If you want to read anything about logical design, "An Introduction to Database Systems" by Date is always a good starting point. "Database Systems - A Practical Approach to Design, Implementation and Management" by Connolly & Begg is also an excellent reference.

  • Need best Architecture design for the following scenario

    Hi Experts,
    I need best architecture design for the following scenario:
    Sender: Mail
    Receiver: if sender body contain u201DApproveu201D, then call SOAP adapter, If SOAP adapter execute successfully, then  send Mail(SOAP adapter executed successfully) and SMS .  So receiver is SOAP, Mail and SMS.
    My current approach issue:
    Three message mapping:
    Mapping1: mail to SOAP
    Mapping2: mail to Mail
    Mapping3: mail to SMS
    In interface determinant>u201DSelect all three operation mappingu201D> u201Cselect order at runtimeu201D.
    Issue in current approach: For me first SOAP adapter should complete successfully, after that only my Mail and SMS operation mapping should execute:
    But problem is before success of SOAP adapter engine, Mail and SMS mapping completed or integration engine executed.
    Note: There is possible to fail the SOAP request in adapter engine.
    Kindly help me --> u201CAm I going correct way or want to change the architectureu201D?
    Thanks for advance!!
    Regards, Kumar

    What do you mean by successful execution of soap call?  Are you talking about Successful response (happy flow) from the soap call instead of application error ? Then based on the response you want to decide sending mail and sms.  How big call is your soap ?  If your soap interface is very simple I can give the other possible way.
    Sender sends the message, use mapping  to read the content and then do soap call in the mapping itself and after seeing the soap response decide about two receivers (mail and SMS).  If your soap call is very simple one, you can go for it. Otherwise I would not recommend this. The reason is you loose some visibility regards to monitoring during soap call in the mapping.
    Other option is go for CCBPM.  Here you receive the message, use send step to soap interface which is sync step. Then after seeing the response create another block with fork steps each for two senders mail and sms. If response bad then dont proceed or execute the next block. Simply use exeception or control step to jump out from the block,

  • How can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.

    how can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.

    The NEF file only gives a little "nef" icon.  i was able to convert the NEF to DNG on the old computer and then brought the files over to the new computer.  On the old computer, the NEF files were depicted as little jpeg's so I would be able to see a picture of what each file represented.  On the new computer, both the NEF files and the DNG files are depicted with icons, "nef" or "dng", but not as little pictures.  On the new computer, though, I am to import the DNG's into Adobe and edit them so that is working regardless of whether or not a picture is present for the icon of each file.  I've downloaded the DNG converter from Adobe and will try the conversion directly on the new computer when I get home from work.  I do appreciate your responses and will let you know how it works.
    I am curious then, since right now the files are represented by little "nef"'s and little "dng"'s: If I also download the viewNX (spelling might be wrong, sorry) from nikon, do you know if that maintains the file as a RAW format file but allows a picture representation of the RAW file for the icon?  (That would make it easier to choose which RAW files I would choose to edit and which to not even bother with as an initial culling if that makes sense.
    Cheers.

  • Panning the screen of your 12" monitor

    Panning is the ability to set your desktop bigger than your actually monitor.
    (e.g. PB 12" is 1024x768, but you set the desktop to say, 1680x1050).
    You can only see 1024 at a time, but with the mouse, you slide the view to different parts of the 1680 desktop.
    Prior to buying an Apple, I owned at small VIAO with a 1024x480 screen (very small). It supported panning though, so I could work on a desktop which was 1024x768 even though the screen would only view 1024x480 at a time. I was a reasonable compromise.
    I'm pretty sure you could implement this in software on the PB12, but I think it might be too slow. It's probably something you'd have to teach the video driver to do (don't know if there's programmable firmware). The memory in the video hardware of the PB is certainly capable of handling a much bigger desktop (monitor size).
    So this post is one of two things:
    1. A question -- does anyone know of a way to get panning capability on PB12?
    2. A suggestion to Apple -- Support panning on your laptops (especially the small ones). I travel every day, so the bigger laptops just don't work for me. However, the 12" screen is very limiting as far as productivity goes. Panning might make a difference. (hint, hint... I'd be inclined to buy $$ the x86 Apple laptop if it was small and supported panning.
    -Craig
    PowerBook G4   Mac OS X (10.3.9)  

    Have you tried Universal Access as part of the system
    preferences? If you turn on zoom, and change the
    options to say maybe 2, the image is effectively
    zoomed in closer around the area of your mouse
    pointer, allowing the panning feature you mentioned.
    This doesn't increase the available workspace however, and in-fact decreases the visible resolution of the screen - counter to what is being requested.
    If I had two images that were 1000 pixels wide on a 1024x768 screen (the PowerBook), I wouldn't be able to put them side-by-side. If the PowerBook supported spanning to say 2048, then I could put them side-by-side (however not view them both at the same time). Imagine it like having an A3 drawing but viewing it through an A4 hole.
    Matt

Maybe you are looking for

  • My iMovie is not working, it tells me there's a problem but does not know the problem, Can someone help me figure this out please?

    A couple of days ago, my I opened up my iMovie and it just goes into the blank screen. I am able to click on things like, "import" or "create" and it will take me into the next window, but when I choose an option, I receive a message that there is a

  • Free of cost delivery

    Scenario: I created a PO and ordered 100 pcs of material A. I receieved 100 pcs of material A and 2 pcs of Material B. Maretial B is free of cost provided by the vendor. How wil  I receieve it in SAP. How will I do MIRO in this case? If its an Import

  • OSX - Update PS CC 2014 now error 16 for both cc and cc 2014

    Updated just now to PS CC 2014, but now can't open either getting error 16? Have reset folder folder permission as per adobe instructions Configuration error 16 | CC, CS Note when i open LR5 i get same error, but it does load! need photoshop urgently

  • Changes in Standard Table

    hi     I want to change some fields in standard table like J_2IREGDOM.There it is asking access key but i have given my access key but getting an error like incorrect access key but it is correct one only. can anybody give the solution. Is there any

  • I sent my device back but got a text message

    I sent my device back, but got a text message saying that it was nit received & I may be charged. I have a receipt dated 07/08/2015 with a tracking number.