数据远程同步机制实现

16 十二月 2009 In: 软件行业, JAVA, DotNet
我们面对的产品很复杂,解决方案也很多样,导致技术实现上面,难点多,故障也很多。两个系统涉及到SmartClient的应用,其实本身而言,SmartClient的应用并不是很复杂,但是数据库的同步的确很复杂,其复杂点在于: 服务器端存储全量数据,客户端下载的是部分数据,这些部分数据的拆分依据比较难以实现,尤其是对于现有的数据库表。 客户端数据上传的时候,对于新增和更新的记录都比较好处理,对于删除的记录则很难,一方面要保证单个客户端的删除能够在其他的客户端上面生效,而另外一方面则需要保证其他客户端传上来被当前客户端删除的数据的时候,应该不是新建操作,而是什么也不做。 客户端和服务器端的吞吐量控制... [更多...]

兼容Java和DotNet的AES加密算法

14 十二月 2009 In: 软件行业, SQLReport, JAVA, DotNet
最近在做Java和DotNet之间的互通,本着简单的原则,我不使用HTTPS对通道进行加密,所以采用的是自己加密所有的数据的处理方式,即使在这种情况之下,安全性不能被保证,但是基础的数据安全是可以了,毕竟是行业应用软件,试图破解的渠道比较少,而且数据针对性太强,没有太大的意义。 我的设计是: 几乎所有在Web服务和客户端之间的交互数据都进行加密,数字和日期除外 加密之后都生成BASE64编码,所以几乎所有的参数都是字符串 客户端和服务器共享同样的密码生成机制,一般是时间戳加上固定密码的格式,客户端和服务器都使用这个密码进行加密和解密。 传递的对象,先经过序列化之后,加密成Byte数组... [更多...]
jSoapServer is a open source embedded Soap Server in java, the source code and lasted version could be got from http://jsoapserver.sourceforge.net. The newest version of it is 0.2.8. After downloaded, you may like to run the server to check what it done and how it looks, the start scripts are stored... [更多...]

开发的几点备注

22 十一月 2009 In: DotNet, JAVA, SQLReport, 似水年华
只是几点备注,整理到一起来,避免忘记了 Krypton中的Button当边框太小的时候,就会出现无法显示的错误,解决的办法就是设置Button的AutoSize属性为真,KryptonButtonAutoSize Issue Krypton的中文输入法存在问题,需要手工设置全角和半角,最好的办法是设置空间的IMEMode为一个支持半角的输入法,KryptonToolkit TextBox不能输入中文 Krypton的显示风格可以从代码中取得 m_colorSelected = KryptonManager.CurrentGlobalPalette.G... [更多...]
All source code is available at http://code.google.com/p/sqlreport/. As I mentioned, I failed to integrate SQLReport’s Java source code with C#  using Ja.Net.  So it embarrassed that I have to port all Java source code into C#, here is no good way to do it, I have to port the source code f... [更多...]
In the preceding article(http://www.loveayang.com.cn/post/2009/10/26/Embedded-Sqlitee28099s-Date-type-in-Java-and-DotNet.aspx) , I mentioned that the difference of Date Time in SQLite embedded version of DotNet and Java, I have not give out the solution, here is the solution for Java and DotNet. You... [更多...]
  All of the following content were digested from http://www.visifire.com/blog/2009/10/16/step-by-step-breakdown-of-visifire-rendering-logic/comment-page-1/#comment-3973 Introduction Since the release of Visifire, we have got a lot of positive response from users on the simplicity, looks, cus... [更多...]
The driver for JDBC is from http://www.zentus.com/sqlitejdbc/, current newest version is v056 based on Sqlite 3.6.14.2. The DotNet driver is from http://sqlite.phxsoftware.com/, current newest version is 1.0.65.0 based on Sqlite 3.6.16 I have only checked the embedded version of Sqlite, ... [更多...]
I found two bugs in the standard version of bam.exe which provided by Ja.Net, the symptoms is: When merging any assemblies as “bam cvf a.dll *****”, if there is no folder information for the target assemble name (“a.dll”), the bam.exe will throw a null-pointer except... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Pr... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]

SqlReport documentation: Users Model

16 九月 2009 In: JAVA, SQLReport, 软件行业
Users, who using the SQLReport engine to retrieve data from data sources and view the results, are necessary in the report system. The users information which class name is “ReportUserWrapper”, can be used in: Some reports are private report, only the users registered in the sys... [更多...]
How to use IKVM to integrate Java to DotNet Using Ja.Net to integrate Java and DotNet(c#): Basic Using Ja.Net to integrate Java and DotNet(c#): Class and Type Using Ja.Net to integrate Java and DotNet(c#): More detailed basic issues Using Ja.Net to integrate Java and DotNet(c#): Encoding and Proper... [更多...]

Why Groovy?

12 六月 2009 In: JAVA, 软件行业
I guess we want to use Groovy (or others dynamic language supporting lib) for: 1. Extract expression parsing (checking syntax error, list variables and functions in the expression) and evaluation (executing the expression, get the result) into “outside”. 2. Make the application more flexible on ... [更多...]

一份代码检查记录

16 五月 2009 In: JAVA, 软件行业
帮朋友忙,检查一份代码,代码是一个未出校门的学生写的,我不做过多的评价,个人自己看吧。 1、数据库连接的关闭问题 在代码中,DBBean负责处理数据库的连接、更新和删除操作,在这个类中Hold了一个Connection,使用DBBean的类必须显示的调用close关闭数据库;另外一个处理数据库配置和连接的类DB的机制等同于DBBean,实际上,DBBean调用DB生成数据库连接。 代码中相关数据库连接的问题有 a)部分代码没有关闭数据库连接的操作,这样会导致并发性能下降。 b)没有异常处理,在业务逻辑处理过程中,如果出现异常,则不会关闭l连接,例如下面的代码 ... [更多...]
目前算得上有一份稳定的工作,而且比以前轻松了许多,所以业余时间大部分都是我自己的,我也在准备开始继续报表的开发,算起来已经搁浅了将近3个月了。在开发之前我想弄一份报表源代码授权,在选择GPL/LGPL和BSD之后,我还是看上了BSD。原因是: 对于代码的所属问题上,我一直比较含糊,如果要开源,那就开一个彻底,否则开源做什么? 对于代码的修改权限,我看的更淡,每个人都有自己的看法和建议,但是很多时候我可能不会去考虑某些人的想法,简单的说,代码,每个人都可以修改,但是我不保证修改的代码就会包含到下一个发布版本中。 对于支持,我觉得很累,很多的代码,只是我自己练手用的,所以我... [更多...]

About Jeason Zhao

Jeason,蜀人,才高三斗,学富一箱。自比子建,放荡不拘行迹,豪语难晓天高;不敢自诩风流,任人笑我痴狂。不欲仕途,个性使然。所到之处,三言不尽,五言难足,鸡飞狗跳盖矣。谓蜀者,鼠也!

What's SqlReport

SQL Report is an open source web-based reporting system that integrates with your Java/J2EE application to produce compelling reports.
  >> Totally free and open source.
  >> Pure web-based user interface. All functions, including viewing reports and administrative, can be done in IE and FF. No extra applications to be needed.
  >> Easy to deploy, no TagLibs, only one servlet. Even you have choice to use pool JSP to access reports without configuring any sevlet.
  >> Having fun with built-in functions. You can create a complex report with a single SQL and set redering from a web-based GUI.