Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DMI package location mismatch

    I am running SmartClient Version: SmartClient_SC_SNAPSHOT-2012-02-18_v82p/Pro Development Only (built 2012-02-18) on Mozilla Firefox 3.6.18 with Firebug using Windows XP Pro 32 bit.

    DMI is great! It is just what I need to trigger my report generation on the server. I am patterning my code after the getTimeStamp example.

    The code below names the package com.isomorphic.examples. So, I would anticipate its location in the 'examples' folder in the root. I, instead, find the Java code in the 'examples\server_integration\generic_rpc_operations' folder.

    This is probably just a simple system transformation that I could normally test. The DMI reference documentation and examples have been very valuable. I have unit tested some of my Java report code and it works great. I am eager to integrate it and trigger it from the front end.

    Code:
    //----------------------------------------------------------------------
    // Isomorphic SmartClient
    //
    // SupplyItemDMI implementation
    //
    //----------------------------------------------------------------------
    
    package com.isomorphic.examples;
    
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    
    public class GetTimeStampDMI {
    
        public Date getTimeStamp(Date clientDate) {
            System.out.println("+++++++++++++++++++++++++++++++++++++++++++++");
            System.out.println("Current client time: " + clientDate.toString());
            System.out.println("+++++++++++++++++++++++++++++++++++++++++++++");
    
            // send back our own time as the response
            return new Date();
        }
    }
Working...
X