Monday, February 23, 2009

JBoss 4.2 class loading problems

By default Jboss 4.2 does non-scoped class loading i.e. all EARs share the same class loader. This is non-J2EE but default way of doing things in JBoss. If you want an EAR to have its own class-loader (you wan different versions of the same library in different EARs), you need to include jboss-app.xml with following configuration:


<jboss-app>
<loader-repository>
${package-name}:archive=${unique-name}
</loader-repository>
</jboss-app>

An example:
<jboss-app>
<loader-repository>
com.shital:archive=test1
</loader-repository>
</jboss-app>


This needs to be done for each EJB which needs a scoped class loader. Make sure that unique-name in above example is unique for each EAR!

This file should be packaged in the same dir as application.xml.

Sunday, December 14, 2008

For rent: 3 BR +Servant's quarter Off Bannerghata Road, Opp IIM-B

Adarsh Palm Retreat 3 Br Apartment with servant's quarter for rent. Excellent Evershine Modular Kitchen and designer wardrobes. 3 bed/3bath - 2 BRs with attached bath. Servant's quarter with toilet. Rent Rs 30K/month. (negotiable). Brokers excuse.

Available: Immediately.

Location: Off Bannerghata Road, Behind Wockhardt Hospital, Opp IIM-B. Close to HSBC, HoneyWell and Accenture.

Apartment has common facilities like Club house, Swimming pool, Kids Play area, Sun deck, Barbeque plaza, Landscape garden, Squash court, Health club, Badminton court. etc. Facilities to be ready in 2 months.

Contact: smblr75@gmail.com (M) 9845438441

Checkout the interiors.

Wednesday, August 6, 2008

Resizeable Textarea - A great firefox plugin

https://addons.mozilla.org/en-US/firefox/addon/3818

Allows you to adjust the size of the textarea in Firefox. Absolutely mandatory if you are into social blogging or working on twiki.

Tuesday, July 8, 2008

GMail conversation view in Outlook

Guess this must be old news by now but finally I set-up my outlook to show conversation view which is such a great feature in GMail. Of-course Outlook natively supports conversation view on a per folder basis but that's not useful as you will loose out on your replies which are in a different folder e.g. "Sent Items". I found a great article which shows how to mimic GMail's functionality (more or less) in Outlook.
See Dan's post on coversation view in Outlook.

Thanks Dan!

Wednesday, May 21, 2008

GPL vs LGPL

Developers always have question about legality of using an open source library in a commercial product. This particular article very clearly settles that question at-least for GPL and LGPL licenses.

Wednesday, May 7, 2008

Some tips regarding Mutual Fund investments (Specifically for India)

I recently answered an internal mail in Yahoo! asking for tips to invest in Mutual funds for a first time investor. I thought to share it with a wider audience (oh yeah!)

First the legal disclaimer: Pursue this at your own risk.

  1. There are two broad types: Equity and Debt. Experts recommend mixing up the two for lower volatility. If you can stomach high risk, go all equity route.
  2. Don't invest in sector specific funds. Go for diversified funds (for equity funds). Again for lower risk.
  3. There are three types based on market caps of the invested companies: Large cap, mid cap, small cap. Large caps, of-course, are considered safer but generate lower returns (generally). Small caps are exactly reversed in their behavior.
  4. Never invest in one go. This is the most important tip. If you had invested all you money in mid Jan of this year, you would have lost 30-40% in 2 months time. There are Systematic investment plans or SIPs(all MFs have it). They allow you to invest a fixed amount (through cheques or ECS) on a regular basis (weekly, monthly, quarterly). If you a chunk of money to invest, divide it up and invest at-least over a year.
  5. Don't invest in NFO (new fund offerings). Rather invest in established and proven funds. Sites like Value Research and Moneycontrol will let you compare returns of all MFs over varying periods of time. Do spend some time doing that. Remember if you invest through brokers (like your bank), they will always recommend NFOs as that has more commission.
  6. Look at the star ratings given by these MF sites. They are helpful to give you a head start.
  7. Don't invest in too many funds. Restrict yourself to a few good ones. If a fund makes up a very small part of your portfolio, it does not make any difference even if it performs phenomenally. On the other hand more than a certain number of funds don't lower your risk any further.
  8. You can save upto 1 Lac in ELSS funds. Read about them.
  9. If you can spare some time and money, browse through magazines like Outlook money or Mutual fund insight.
  10. Never compare NAVs. NAV of 10 is not better or worse than NAV of 100. There is no equivalent of IPO in MF. NFOs don't offer any advantage over established funds.
  11. Don't churn your portfolio frequently. There are entry and exit costs associated.
  12. Long term capital gain tax in equity funds is zero. So try staying invested in equity funds for at-least a year.
  13. No short term gains. Enter with a long term approach.
  14. Use brokers which allow you to buy/sell online. This will save a lot of hassles for you. Check the online coverage of the broker. Most of them will allow you to buy any MF through paper forms but cover only limited MFs in their online service. If you do some investing through online and some offline, you will end-up with lots of hassles.
  15. Use online portfolio tools provided by MF review sites (Value Reserach, Money Control etc). They are very useful.

Monday, April 14, 2008

Yahoo!

Well, my timing couldn't much more perfect :-) I joined Yahoo just as Microsoft announced the bid for Yahoo! Will they, won't they ... it's a million dollar question. Reminds me of the Chinese curse: "May you live in interesting times".