Re: [tcljava-user] jacl 1.3.1 regexp
Brought to you by:
mdejong
From: Patrick F. <pfi...@oz...> - 2007-04-09 16:11:43
|
On Monday 09 April 2007 15:37, Johannes Kleinlercher wrote: > sa4was isn't supported anyway by IBM so I don't think that is the > point. Parts of the underlying JMX implementation have changed in WS6.0. I had to modify some of my WAS 5.1 jacl scripts to cope with this. Since sa4was is a simplification of the WAS 5.1 JMX layer it may not cope with these changes so if you are starting from scratch I would avoid using sa4was with 6. The sarwas author is aware of these issues. See thread on the se4was forum. http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13714004&cat=28&thread=78335&treeDisplayType=threadmode1&forum=443#13714004 > > I am developing my own deployment-scripts so I just wanted to take some > code of sa4was and use it in my scripts. Parsing XML files was some of > it. I didn't find any code to do that and I don't think it is easy > without a good regexp-engine. Non-greedy regexp is one important thing > for parsing XML, I think. Do you have some piece of code which can parse > XML-Files with the regexp-engine in jacl 1.3.1? > I have never had the need to parse XML files in JACL mainly because IBM do not recommend manual modification of the underlying WAS xml config files. I don't know whether jacl 1.4.0 supports non greedy regexp but if it does then you can upgrade the WAS 6.0 jacl environment by simply downloading the jacl 1.4 binary and replacing the jacl.jar and tcljava.jar files in the wasinstall/appserver/lib directory with the 1.4 jars. I have tested 1.4 with WAS 6.0 and have not had a single problem. It's rock solid. You can test the regexp in jacl 1.4 independently. See this link. link:http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=60&t=000208 You can also run wsadmin with Jacl 1.4 as an external tool in eclipse. See this link. http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13714004&cat=28&thread=78335&treeDisplayType=threadmode1&forum=443#13714004 |