解惑

解己之惑,解人之惑

日:2007年7月9日

还不算倒霉到家

半个多月前说自己很倒霉,现在看来还不是倒霉到家,去新公司之前一直很不安,原因主要是:

  • 面试的时候就被告知是全英文环境,我的英语不是很好,担心开始完全不能适应
  • 上网看公司的评价是群硕第二,担心狂加班
  • 住的地方离公司比较远,现在又没有地铁,担心被挤死或者每天站三个多小时累死

到新公司一个星期了,结果比预料的好得多:

  • 几个大BOSS不在,大家都说中文,除了跟这里的老外说话外,虽然我的两个直接上司都是老外,但是他们这周都回美国,至少下周才回,有几天的缓冲期,这个星期狂补听力,主要是其中一个华裔血统的老外说话太快,而且口音不太纯正,另外的纯老外的英语还好懂一些,他知道我们英语不是非常好,说得比较慢,发音也比较正一些。
  • 没有强制加班的要求,很多人经常是六点下班就走了,我每天都是九点半以后到公司,所以也不好意思太早走,另外公司给七点半以后走的人供应晚餐(虽然现在已经变成实际意义上的福利,不论什么时候走都有),所以一般是7点以后,8点半以前走,也不考勤,只要求一般在10点到下午3点之间在公司就行
  • 公交车方面,上班的时候是起点,而且我8点多坐已经没有那么多人了,位子是肯定有的,现在回来一般是7点多走,位子也很空,而且司机开得比较快,这个时间段车还是比较少的(浦东)

AR何其多

看了新公司的发布目录,感叹公司把Java相关的发布包用得出神入化,从最简单的Jar到最常见的War,以及中大型J2EE工程中的Ear,然后是JBoss特定的Sar,以及被Jboss收购后的Hibernate提供的Har,真的是被AR搞混头了,特此列举一下:

  • JAR:java类文件的打包发布
  • WAR:WEB应用的打包发布
  • EAR:J2EE应用的打包发布,一般包括EJB
  • SAR:JBoss的Service打包发布
  • HAR:Hibernate打包发布

2007年7月13日更新:
一个E文的,好像比我的全面:

Intro to JARs, WARs, SARs, RARs and EARs

Anyone worth calling oneself a java developer would know what a JAR file is. It’s an archive, just like ZIPs and TARs are. In addition to being a simple archive, a JAR file can store some very useful meta information about its contents. A special file, META-INF/MANIFEST.MF is where a jar records meta information.

EJBs are packaged as jar files as well, albeit with one or more special files under META-INF, called deployment descriptors.

A WAR file packages a web application. What does a web application consist of? It consists of

  1. HTML/JSP pages and other resources such as images/javascript files/stylesheets that need to be reachable via URLs.
  2. Additional files such as java servlets, utility classes and jars for use in servlets/JSPs and deployment descriptors that should not be reachable via URLs.

The latter are stored under a special folder named WEB-INF. Both are then archived in JAR whose extension is modified as WAR to distinguish it as a java web application.

Similarly, RAR files are JAR files used to package resource adapter modules as defined under the J2EE Connector Architecture (JCA) and SAR files are the ones used to package JMX-enabled services in JBoss.

Just as all rivers are destined to go merge with the sea, all these archives that relate to a single enterprise application may be packaged under one EAR.

© 2025 解惑

本主题由Anders Noren提供向上 ↑