»ğÉÕ¾¶

来源: BlogBus 原始链接: http://www.blogbus.com:80/blogbus/blog/index.php?blogid=18362&m=20041203 存档链接: https://web.archive.org/web/20050123004844id_/http://www.blogbus.com:80/blogbus/blog/index.php?blogid=18362&m=20041203


»ğÉÕ¾¶-make life easier Ê×Ò³ default (15) soft (6) db (4) java (14) workflow (2) develop (9) literature (7) shark·Ç¹Ù·½FAQ (7) python (1) ·ÖÒ³ 04-12-03 09:26 ÈçºÎ²âÊÔsharkÓëÒìÖÖ¹¤×÷Á÷ÒıÇæµÄ½»»¥ĞÔ You can test engine interoperability (shark communicating with Fujitsu engine) through Shark's XPDL process in asap_test.xpdl: NOTE: to test this, you need to configure shark to use database different than HSQL, because you will need to have two different Shark VMs using the same DB (a kind of shark cluster) First stop the Shark's AXIS service

  1. after creating i.e. PostreSQL DB, edit conf/Shark.conf file and turn-off dods caches: DatabaseManager.defaults.cache.maxCacheSize=0 DatabaseManager.defaults.cache.maxSimpleCacheSize=0 DatabaseManager.defaults.cache.maxComplexCacheSize=0 and turn-off shark's caches: comment the line: CacheManagerClassName=org.enhydra.shark.caching.LRUCacheMgr
  2. setup ASAP tool agent property in Shark.conf file: ASAPToolAgent.Observer=http://www.prozone.co.yu:8080/axis/services/asapObserverBinding to your IP address instead of www.prozone.co.yu and your port to the wanted one (must be the same as in conf/sharkAxisWrapper.conf file
  3. edit conf/sharkAxisWrapper.conf file, and do the same as for the previous test(setup IP address and port)
  4. start the Shark's SOAP service - 1st shark VM
  5. start shark's swing admin (runSA)- 2nd shark VM
  6. upload asap_test.xpdl
  7. start process Test asap 1, and do not change any variables
  8. go to the worklist, and execute Choose service activity by entering either http://interop.i-flow.com/iflowjsp/jsp/ProcDef.jsp?planName=Retailer or http://interop.i-flow.com/iflowjsp/jsp/ProcDef.jsp?planName=Manufacturer when asked to update variables. After that, Fujitsu engine is contacted and asked for a process context signature.
  9. Activity Enter parameters should appear in your worklist. Choose it, and this signature is displayed in admin application as a context op HashMap when executing it and entering variables. Enter some variables. At this time Fujitsu engine is again contacted, but this time we call it to create new process instance and pass it the parameters you've entered. When Fujitsu engine finishes the process, it will call the shark engine deployed as a webservice (the observer), which will respond by completing the activity that called Fujitsu engine that is modeled as a Tool activity with MANUAL end (new shark feature).
  10. When you refresh your admin, application, you'll see activity View result. View the variables, and you'll see the results Fujitsu engine sent back. You can also test this interoperability (using the same XPDL process) with two shark engines working on different DBs. Two be able to perform tests and to see it visually, each engine should run in a cluster - 1VM for WEB service, and other for admin application. fireshort @ 09:26 | ÔĶÁÈ«ÎÄ | ÆÀÂÛ(0) | ÒıÓÃTrackback(0) | ±à¼­ 04-12-03 09:24 How to test shark as WEB service? Shark can be deployed as a WEB service, and it provides basic SOAP interfaces defined by ASAP schema and wsdl that you can find in Shark/modules/SharkWebService/ASAP/API/source folder. You can test shark using public ASAP client at: http://67.113.139.106/ASAPClient/ : NOTE: to test it this way, you must have real IP address:
  11. edit conf/sharkAxisWrapper.conf file, and uncomment line: #wrapper.java.additional.1=-Dasap.test.myadd=www.prozone.co.yu and instead of www.prozone.co.yu put your address edit the line: wrapper.app.parameter.4=8080 if you want to change the port where AXIS will listen for SOAP requests
  12. deploy shark as a WEB service by using sharkAxisServiceInstall.bat and sharkAxisServiceStart.bat scripts under windows or appropriate startup script under linux (in this moment, shark will be deployed as a WEB service, and XPDL test-JavaScript.xpdl will be loaded into it
  13. in ASAP client, enter the address where the shark is deployed, i.e: http://www.prozone.co.yu:8080/axis/services/asapFactoryBinding and press submit button
  14. You will get the next screen with a description of shark's test-JavaScript.XPDL's math_operations process. Press create Instance button
  15. enter the process name and description, and at the bottom of the page, enter parameters P1 and P2 (delete other parameter rows) and press button create (for the operation, you can enter multiplication, division or substraction if you want operation other than addition to be performed on these numbers)
  16. after this step, you've started shark's process for adding two numbers you've entered. This process should be immediately finished, so press refresh button to get current state. After that go to Details where you'll see the Result sent by shark engine (amongst other things) fireshort @ 09:24 | ÔĶÁÈ«ÎÄ | ÆÀÂÛ(0) | ÒıÓÃTrackback(0) | ±à¼­ ÈÕÀú 2004 Äê 12 Ô Sun Mon Tue Wen Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ×î½ü¸üĞ ¾À´í ÈçºÎʹÓÃorg.apache.commons.lang(ѧϰ±Ê¼Ç) Ó÷˼³É¶ÔÖйú¿ª·¢ÕߵĽ¨Òé ѰÕÒʧÂäµÄmysqlÃÜÂë ´¦Àímp3 id3 tagµÄ Ä£¿é maxthon:¸öÈËÉç»á±£ÏÕ¿ìËÙËÑË÷ ÈËÉúÖ»ÓаÙÄê(תÌù) ÈçºÎ²âÊÔsharkÓëÒìÖÖ¹¤×÷Á÷ÒıÇæµÄ½»»¥ĞÔ How to test shark as WEB service? tomcatÆô¶¯³ö´í²é´í¼¼ÇÉ ×îĞÂÆÀÂÛ Ivan Chen : àÅ£¬Êǰ¡¡£Æäʵ³õ. SXPCrazy : ËûÔ­À´ÄÇÖÖĞ´·¨¸ù. Richard : ²»´í£¬¼ÌĞø¡£. mugua : hyf_kgy@163.com . mugua : ºÇºÇ£¬ËÍÒ»¸ö°É. freky : ÎÒÒ²ÏëÒª¸ö,ÎÒµÄÓ. mayacao : ÎÒÒ²ÏëÒªÒ»¸ögmai. Ivan Chen : »¶Ó­×ªÔØ:-). asiapan : ºÜÓеÀÀí£¬ÎÒתÀ². lujinccs : ÎÒµÄÓÊÏ䣺lujinc. ´æµµ 2004/11/01/-2004/12/01 2004/06/01/-2004/07/01 2003/01/01/-2004/06/01 2004/08/03/-2004/09/02 2004/09/01/-2004/10/02 2004/07/01/-2004/08/02 2004/10/03/-2004/11/01 ÁªÏµÎÒ ÌìÆøÔ¤±¨ ÎÒµÄÁ´½Ó ÎÒµÄÃÀζÊéÇ©

¸Îµ¨ÏàÕÕ XML×ÊÁÏ XMLÈí¼ş