Mini Samples


C/C++ samples


A simple Mini-webapplication that fetches data from a table using SQL and renders a HTML table with the result. It also illustrates how you save application data on the session and how you send/receive messages to/from a message queue.

In this sample we manually implement: the service mapping in the application entry function, and the render class. To build a application like this sample: link with libzz.lib, libzzdb_odbc.lib and libzzinet.lib. For ODBC support define _ODBC. Export functions execute and listener from the DLL.

Source
Comment
mini.ini Configuration for the message service
Test.html HTML-template
testdll.def Exports
testdll.cpp Main program
testdll.h  
test_render.cpp HTML-render
test_render.h  
test_data.cpp Data service
test_data.h  
test_table_data.cpp Data service
test_table_data.h  
test_listener.cpp Listener
test_listener.h  

Same sample as above, but with Mini's implementation of service mapping and rendering. This implementation uses a .mini configuration file that replaces the need for a service-mapping function and render classes. To build a application like this sample: link your program with libzzmini.lib, declare all your classes as MINI_EXPORT and define ZZ_DLL_INTERFACE. The macro MINI_EXPORT and the define ZZ_DLL_INTERFACE exports all your classes from your DLL wich is needed for the Mini dynamic C++ classloader to function. For ODBC support define _ODBC. Export functions execute and listener from the DLL.

Source
Comment
mini.ini Configuration for the message service
Test.html HTML-template
testdll.def Exports
testdll.dll.mini Mini webapplication configurationfile
test_data.cpp Data service
test_data.h  
test_table_data.cpp Data service
test_table_data.h  
test_listener.cpp Listener
test_listener.h  


Java samples

A simple Mini-webapplication that fetches data from a table using SQL and renders a HTML table with the result. It also illustrates how you save application data on the session and how you send/receive messages to/from a message queue.

In this sample we manually implement: the service mapping class and the render class.

Source
Comment
mini.ini Configuration for the message service
Test.html HTML-template
testjava.java Main program
TestRender.java HTML-render
TestData.java Data service
TestTableData.java Data service
TestListener.java Listener

Same sample as above, but with Mini's implementation of service mapping and rendering. This implementation uses a .mini configuration file that replaces the need for a service-mapping method and render classes.

Source
Comment
mini.ini Configuration for the message service
Test.html HTML-template
test.java Main program
test.class.mini Mini webapplication configurationfile
TestData.java Data service
TestTableData.java Data service
TestListener.java Listener

A simple SMS application. This sample illustrates how you write a SMS-listener that reacts on a "SMS command" and sends a SMS reply back to the sender. The application handles the SMS command: "TEST arg", where TEST is the command and arg is the argument. If arg is missing or if it's "error" the listener will fail.

Source
Comment
mini.ini Configuration of the SMS service
TestSMSListener.java SMS Listener