Friday, May 9, 2008

Spring Framework problem : SqlReturnResultSet() not returned

One more problem with servicemix and spring is in DAO classes, when you make any private static class of StoreProcedure, then in its constructor you must declare SqlReturnResultSet before you declare SqlParameter.Otherwise you will not be able to find return data from StoredProcedure execution.Check the code below,
public MySp(JdbcTemplate jdbcTemplate){
super(jdbcTemplate,"sp_mysp");
declareParameter(new SqlReturnResultSet("strRs",rsMyResultSet));
declareParameter(new SqlReturnResultSet("strRs1",rsMyResultSet1));
declareParameter(new SqlParameter("myId", Types.INTEGER));
compile();
}
so keep in mind while using Spring DAO support.Must declare resultsets first.

servicemix problems: NormalizedMessage getContent,copyPropertiesAndAttachments()

Though servicemix is widely used and very nice ESB framework, it has some basic problems.The one i am talking about here is very little thing but it can be annoying if you forget this or don't know this.

While creating and sending NormalizedMessage object from any data, after doing that if you read data using NormalizedMessage.getContent() method and send the message object with exhchange to deliveryChannel, using DeliveryChannelImpl.send(MessageExchange) method, then you will get null exception in DeliveryChannelImpl class.

Yes this is true.I don't know why, but it removes content from the message object.Only the content is removed and the properties are still there.

You can read properties from it in same component as many times as you want.If you are forwarding same message to next component, properties will automatically goes.But if you read content once, you must set it again :(.

Also remember that if you need to make new MessageExchange, then you must copy all properties and attachments using TransformComponentSupport.copyPropertiesAndAttachments(outExchange,inMsg,outMsg) method.Then all your data from one message will be copied to another message.

So keep checking this if you getting null Exceptions while sending message through DeliveryChannel.

50 - cool blog designs

Well i was just browsing around the net for some cool blog designs and i stumbled across this site.
SmashingMagazine

These blog designs are unique and very nice. Apart from some orthodox design templates there are also some complex and artistic designed ones too.

So just check out this website and pick one for your blog.

Pick your template here

Thursday, May 8, 2008

TorrentSpy must pay $110 million to MPAA

A clear message to all torrent websites hosted on the US soil was sent all over the world today: A federal judge is hitting the shuttered TorrentSpy service with a $111 million penalty for facilitating the infringement of thousands of copyrighted works. U.S. District Judge Florence -Marie Cooper in Los Angeles, ruling in a case brought by the Motion Picture Association of America, said site operator Justin Bunnell and associates must pay the maximum $30,000 for "each of the 3,699 infringements shown." The case, producing what is among the largest fines in copyright history, was bolstered after the MPAA allegedly paid a hacker $15,000 for internal TorrentSpy e-mails and correspondence.

via rlsLog

Bluetooth: A risk for privacy!


Worried about your civil liberties and privacy? Then it may come as a shock to discover that you have unwittingly been allowing your phone to signal your every move.

Bluetooth, a wireless link built into many cellphones, makes our movements trackable by anyone equipped with a PC and an appropriate receiver. Vassilis Kostakos at the University of Bath in the UK placed four Bluetooth receivers in the city's centre. Over four months, his team tracked 10,000 Bluetooth phones and was able to "capture and analyse people's encounters" in pubs, streets and shops.

Bluetooth is now more of a privacy threat than the more frequently publicised RFID chips, Kostakos says.
"If people are worried, they should turn off the Bluetooth function on their mobile phones."
via NewScientistTech

BT's 'Blackberry for consumers'


BT is trying to introduce consumers to the delights of Blackberry-style mobile email and web access.

Dubbed BT Total Broadband Anywhere, the service provides the company's broadband customers with a "free" HTC Windows Mobile smartphone to take outside of the home.

The smartphone will hook up to any BT Wi-Fi hotspot - including 80,000 BT FON hotspots - to make calls, download emails or surf the web. When outside of a hotspot zone, the smartphone reverts to dawdling GPRS on the Vodafone network.

BT is attempting to play-up the simplicity of the device, claiming that it is simple for users to synchronise their BT email, VoIP telephone service and calendar. "
This is not a niche play,"
Warren Buckley, BT's group director of mobile and convergence told PC Pro at this afternoon's launch event.
"Having email and calendar access is not something consumers are used to. In testing, that was something consumers were very attracted to."
via pcPro

Firefox extension: 'Read it Later'

Read it Later is a handy Firefox extension that enables you save links to interesting websites that you have come across, without littering your bookmarks with nonessential items. The program offers two new toolbar buttons and a right-click option to your Firefox toolbar, which can be used to quickly add the current page or link to your Read it Later collection and to browse your saved page links. Your Read it Later items are stored in a designated bookmark folder so they are kept separate from your regular bookmarks. In addition to the bookmark features, the program also integrates with a wide variety of social networking sites and allows you to share interesting content with your online communities.