<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3824924850990617151</atom:id><lastBuildDate>Fri, 25 Oct 2024 05:12:21 +0000</lastBuildDate><category>flex</category><category>UI</category><category>ajax</category><category>javascript</category><category>actionscript</category><category>css</category><category>flare</category><category>java</category><category>performance</category><category>references</category><category>web</category><category>.net</category><category>2d</category><category>3d</category><category>AI</category><category>Lazy loading</category><category>LivePipe</category><category>RPC services</category><category>Tree</category><category>activemq java example</category><category>activemq openjms</category><category>async io</category><category>birdeye</category><category>c</category><category>cassandra</category><category>charting</category><category>cloud</category><category>cool flex apps</category><category>couchdb</category><category>crud</category><category>data-visualization</category><category>dojo</category><category>extjs</category><category>flash media server</category><category>guidelines</category><category>hbase</category><category>jms tutorial quick summary</category><category>jobs</category><category>jpa jta jdo hibernate spring</category><category>jquery</category><category>light weight</category><category>mongodb</category><category>mysql</category><category>nosql</category><category>papervision</category><category>perl</category><category>prototype</category><category>rapid development</category><category>redis</category><category>scalability</category><category>simple</category><category>sql</category><category>tomcat debug java</category><category>visual studio</category><title>Software Design &amp;amp; Development</title><description>Building Enterprise applications</description><link>http://flexinputs.blogspot.com/</link><managingEditor>noreply@blogger.com (Gautam)</managingEditor><generator>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-5628318986002093139</guid><pubDate>Mon, 17 Oct 2011 09:12:00 +0000</pubDate><atom:updated>2011-10-17T02:12:38.151-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">async io</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">performance</category><category domain="http://www.blogger.com/atom/ns#">scalability</category><title>Java Async IO Package</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #4c4d4f; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 19px;&quot;&gt;We need Async IO Package for sheer performance and scalability!&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #4c4d4f; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 19px;&quot;&gt;Performance and scalability are key attributes of the IO system for IO-intensive applications. IO-intensive applications are typically, although not exclusively, server-side applications. Server-side applications are characterized by the need to handle many network connections to many clients and also by the need to access many files to serve requests from those clients. The existing standard Java facilities for handling network connections and files do not serve the needs of server-side applications adequately. The java.io and java.net packages provide synchronous IO capabilities, which require a one-thread-per-IO-connection style of design, which limits scalability since running thousands of threads on a server imposes significant overhead on the operating system. The New IO package, java.nio, addresses the scalability issue of the one-thread-per-IO-connection design, but the New IO select() mechanism limits performance.&lt;/span&gt;</description><link>http://flexinputs.blogspot.com/2011/10/java-async-io-package.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-5785022861695706697</guid><pubDate>Mon, 17 Oct 2011 08:20:00 +0000</pubDate><atom:updated>2011-10-17T01:20:35.299-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cassandra</category><category domain="http://www.blogger.com/atom/ns#">couchdb</category><category domain="http://www.blogger.com/atom/ns#">hbase</category><category domain="http://www.blogger.com/atom/ns#">mongodb</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">nosql</category><category domain="http://www.blogger.com/atom/ns#">redis</category><category domain="http://www.blogger.com/atom/ns#">sql</category><title>SQL Vs NoSQL</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;The advantage of a relational database is the ability to relate and index information. Most key-value systems don&#39;t provide that.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;Does switching to nosql really make sense for the intended use case?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;You have kind of missed the point. The point is, you don&#39;t have an index. You don&#39;t have a centralized list of records, or the ability to relate it together in any easy way. What makes nosql key-value stores so quick is that you store and retrieve what you need in a name-based approach. You need that blurb on someone&#39;s profile page? Just go fetch it. No need to maintain a table with everything in it. This being said, NoSQL has a number of novel structure which make many usecases trivially easy, e.g. Redis is a data-structure oriented DB well-suited to rapidly building anything with queues. MongoDB is a freeform document database which stores documents as JSON.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;Not everything really needs to be tabular.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;There&#39;s advantages and disadvantages. Sometimes using a mix of both can also make sense. SQL for most, and something along the lines of CouchDB for random things that have no need to be clogging up an SQL table.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;You can liken a key-value system to making an SQL table with two columns, a unique key and a value. This is quite fast. You have no need to do any relations or correlations or collation of data. Just find the value and return it. This is an oversimplification, NoSQL databases do have a lot of nifty functions beyond simple K,V stores.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;You&#39;ll find a simple K,V store is also fast in SQL databases. I&#39;ve used it in place of actual key-value systems before NoSQL databases matured a bit.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;I do not think scientific data is well suited to a nosql implementation, but if you look at HBase, it may well suit a scientist&#39;s needs.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;The efficiency comes from the following areas:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;1. The database has far fewer functions: there is no concept of a join and lessened or absent transactional integrity requirements. Less function means less work means faster, on the server side at least.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;2. Another design principle is that the data store lives in a cloud of servers so your request may have multiple respondents. These systems also claim the multi-server system improves fault tolerance through replication.&lt;/span&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2011/10/sql-vs-nosql.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-3664951789996265130</guid><pubDate>Sat, 17 Sep 2011 12:16:00 +0000</pubDate><atom:updated>2011-09-17T05:16:51.862-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">activemq java example</category><title>ActiveMQ Java Example</title><description>&amp;nbsp;private static ActiveMQConnectionFactory connectionFactory;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static Connection connection;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static Session session;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static Destination destination;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static boolean transacted = false;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BrokerService broker = new BrokerService();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; broker.setUseJmx(true);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; broker.addConnector(&quot;tcp://localhost:61616&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; broker.start();&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setUp();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createProducerAndSendAMessage();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Simulating a huge network delay :)&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread.sleep(4000);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createConsumerAndReceiveAMessage();&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //TODO: Find out how to get rid of the exceptions thrown when stopping the broker&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; broker.stop();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static void setUp() throws JMSException {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connectionFactory = new ActiveMQConnectionFactory(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ActiveMQConnection.DEFAULT_USER,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ActiveMQConnection.DEFAULT_PASSWORD,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ActiveMQConnection.DEFAULT_BROKER_URL);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection = connectionFactory.createConnection();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection.start();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; session = connection.createSession(transacted, Session.AUTO_ACKNOWLEDGE);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; destination = session.createQueue(&quot;mmy first active mq queue&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static void createProducerAndSendAMessage() throws JMSException {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageProducer producer = session.createProducer(destination);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextMessage message = session.createTextMessage(&quot;Hello World!&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Sending message: &quot; + message.getText());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; producer.send(message);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static void createConsumerAndReceiveAMessage() throws JMSException, InterruptedException {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection = connectionFactory.createConnection();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection.start();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageConsumer consumer = session.createConsumer(destination);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyConsumer myConsumer = new MyConsumer();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection.setExceptionListener(myConsumer);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; consumer.setMessageListener(myConsumer);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; private static class MyConsumer implements MessageListener, ExceptionListener {&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; synchronized public void onException(JMSException ex) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;JMS Exception occured. &amp;nbsp;Shutting down client.&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.exit(1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void onMessage(Message message) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (message instanceof TextMessage) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextMessage textMessage = (TextMessage) message;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Received message: &quot; + textMessage.getText());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (JMSException ex) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Error reading message: &quot; + ex);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Received: &quot; + message);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2011/09/activemq-java-example.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-4483222494778832542</guid><pubDate>Sat, 17 Sep 2011 12:09:00 +0000</pubDate><atom:updated>2011-09-17T05:09:08.675-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">activemq openjms</category><title>ActiveMQ &amp; Open JMS</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;ActiveMQ is an open source, Apache 2.0 licensed Message Broker and JMS 1.1 implementation and Enterprise Integration Patterns provider which integrates seamlessly into Geronimo, light weight containers and any Java application.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-size: 13px;&quot;&gt;ActiveMQ provides bridging functionality to other JMS providers that implement the JMS 1.0.2 and above specification.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;A JMS bridge can be co-located with an ActiveMQ broker or run remotely. In order to support JMS 1.0.2 there is separation between Queues and Topics.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;Features:&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;/div&gt;• Supports a variety of Cross Language Clients and Protocols from Java, C, C++, C#, Ruby, Perl, Python, PHP&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• OpenWire (cross language Wire Protocol to allow native access to ActiveMQ) for high performance clients in Java, C, C++, C#&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Stomp support so that clients can be written easily in C, Ruby, Perl, Python, PHP, ActionScript/Flash, Smalltalk to talk to ActiveMQ as well as any other popular Message Broker&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• full support for the Enterprise Integration Patterns both in the JMS client and the Message Broker&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Supports many advanced features such as Message Groups, Virtual Destinations, Wildcards and Composite Destinations&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Fully supports JMS 1.1 and J2EE 1.4 with support for transient, persistent, transactional and XA messaging&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• &lt;b&gt;Spring Support&lt;/b&gt; so that ActiveMQ can be easily embedded into Spring applications and configured using Spring&#39;s XML configuration mechanism&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Tested inside popular J2EE servers such as &lt;b&gt;Geronimo, JBoss 4, GlassFish and WebLogic&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Includes JCA 1.5 resource adaptors for inbound &amp;amp; outbound messaging so that ActiveMQ should auto-deploy in any J2EE 1.4 compliant server&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• &lt;b&gt;Supports pluggable transport protocols&lt;/b&gt; such as in-VM, TCP, SSL, NIO, UDP, multicast, JGroups and JXTA transports&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Supports very fast persistence using JDBC along with a high performance journal&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Designed for &lt;b&gt;high performance clustering&lt;/b&gt;, client-server, peer based communication&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• &lt;b&gt;REST API&lt;/b&gt; to provide technology agnostic and language neutral web based API to messaging&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• &lt;b&gt;Ajax to support web streaming support&lt;/b&gt; to web browsers using pure DHTML, allowing web browsers to be part of the messaging fabric&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• CXF and &lt;b&gt;Axis Support&lt;/b&gt; so that ActiveMQ can be easily dropped into either of these web service stacks to provide reliable messaging&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Can be used as an in memory JMS provider, ideal for unit testing JMS Can be used as an in memory JMS provider, ideal for unit testing JMS&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;OpenJMS is an open source implementation of Sun Microsystems&#39;s Java Message Service API 1.1 Specification&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;Features:&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Point-to-Point and publish-subscribe messaging models&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Guaranteed delivery of messages&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Synchronous and asynchronous message delivery&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Persistence using JDBC&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Local transactions&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Message filtering using SQL92-like selectors&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Authentication&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Administration GUI&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• XML-based configuration files&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• In-memory and database garbage collection&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• &lt;b&gt;Automatic client disconnection detection&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Integrates with Servlet containers such as Jakarta Tomcat&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Support for TCP, RMI, HTTP and SSL protocol stacks&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 10pt;&quot;&gt;• Support for large numbers of destinations and subscribers&lt;/div&gt;&lt;/span&gt;</description><link>http://flexinputs.blogspot.com/2011/09/activemq-open-jms.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-6363470092824927551</guid><pubDate>Sun, 07 Aug 2011 07:00:00 +0000</pubDate><atom:updated>2011-08-07T02:16:12.361-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cloud</category><category domain="http://www.blogger.com/atom/ns#">crud</category><category domain="http://www.blogger.com/atom/ns#">rapid development</category><title>Rapid development</title><description>&lt;div&gt;In today&#39;s cloud environment, where multi-tier architecture is a must, one has to optimize code between both internal &amp;amp; interactive layers.&lt;/div&gt;&lt;div&gt;Most successful software products are those which invest on software infrastructure development such that 90% of development &amp;amp; enhancement tasks are automated and there is not much maintanance cost in the long run.&lt;/div&gt;&lt;div&gt;Here I would like to come up with a strategy which caters to both mobile &amp;amp; desktop devices:&lt;/div&gt;&lt;div&gt;1. Middle-layer that is lean &amp;amp; configurable. All business logic goes here.&lt;/div&gt;&lt;div&gt;2. Use a relational database to initially build the schema. Once the database grows and can&#39;t scale, should have the ability to move database tables into file or some other high performance i/o. The infrastructure design should be such that it should facilitate for migration from database to file storage without affecting the middle-layer.&lt;/div&gt;&lt;div&gt;3. Provide database transactions that will be processed reliably. Should confirm to ACID (atomicity, consistency, isolation, durability) properties.&lt;/div&gt;&lt;div&gt;4. Supporting high-performance api to convert binary data into xml, json or any other data format depending on end-user&#39;s device (mobile, desktop)&lt;/div&gt;&lt;div&gt;5. A basic CRUD (Create, Read, Update and Delete) framework that an architect should provide for building an enterprise application. Ensure all basic validations are taken care of at the middle-layer. Should support creation of UI code automatically for all targeted devices.&lt;/div&gt;&lt;div&gt;6. Naming conventions should be strictly followed for better readability &amp;amp; maintainability of the code.&lt;/div&gt;&lt;div&gt;7. Middle layer should be fault tolerant and also be able to handle transactions normally in such a way that even if front-end passes the data without validating it (if javascript is not supported) it should still work normally.&lt;/div&gt;&lt;div&gt;7. JUnit for Java, Jasmine for javascript should be used. &lt;/div&gt;&lt;div&gt;8. Use the most compressed data format where ever possible. With javascript now coming up with typed arrays ensure you don&#39;t hog your network with redundant data (https://developer.mozilla.org/en/javascript_typed_arrays). Don&#39;t use propreitary data formats.&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2011/08/rapid-development.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-693368995306722708</guid><pubDate>Sat, 18 Sep 2010 03:32:00 +0000</pubDate><atom:updated>2011-09-17T01:51:21.760-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">tomcat debug java</category><title>Issue in debugging Tomcat 6 Remote Java application on Eclipse 3.4.2</title><description>This is a very simple task. But people get stuck with a timeout issue while the debugger tries to connect to the java vm. Hence have posted this...&lt;br /&gt;
&lt;br /&gt;
create a bat file with below content in your tomcat/bin folder. use this to start your tomcat server.&lt;br /&gt;
rem&amp;nbsp;(if it doesn&#39;t connect, try 8000)&lt;br /&gt;
set JPDA_ADDRESS=8787&lt;br /&gt;
set JPDA_TRANSPORT=dt_socket&lt;br /&gt;
catalina.bat jpda start&lt;br /&gt;
&lt;br /&gt;
In eclipse go to debug configuration &amp;amp; select remote java application. use localhost if server is local, &amp;amp; set the appropriate port (8787 or 8000 whicever works)</description><link>http://flexinputs.blogspot.com/2011/09/issue-in-debugging-tomcat-6-remote-java.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-3812252236933290186</guid><pubDate>Wed, 08 Sep 2010 06:28:00 +0000</pubDate><atom:updated>2011-09-17T01:53:17.126-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">dojo</category><category domain="http://www.blogger.com/atom/ns#">extjs</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>jquery vs dojo vs extjs</title><description>When building web 2.0 applications there is always this confusion about which is the best library to use.&lt;br /&gt;
&lt;div&gt;After a lot of research on jquery, dojo and extjs, here is my thoughts:&lt;/div&gt;&lt;div&gt;1. I recommend ExtJs if you don&#39;t want to spend time &amp;amp; energy in fixing bugs &amp;amp; extending components. Also ExtJs gives components for mobile. Else jQuery. jQuery is free, open source software, dual-licensed under the MIT License and the GNU General Public License, Version 2.[4] jQuery&#39;s syntax is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications. Used by over 31% of the 10,000 most visited websites, jQuery is the most popular JavaScript library in use today.&lt;/div&gt;&lt;div&gt;2. Ext includes interoperability with jQuery and Prototype&lt;/div&gt;&lt;div&gt;3. Dojo can be used in javascript-based Adobe AIR applications. It has been modified to meet AIR&#39;s security requirements.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Javascript code is difficult to maintain compared to Adobe Flex. Hence I don&#39;t prefer to modify most of the components. I prefer to make the most of any javascript library that is open source and has the right component for my application.&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2010/09/jquery-vs-dojo-vs-extjs.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-8279921299558974034</guid><pubDate>Thu, 17 Dec 2009 15:46:00 +0000</pubDate><atom:updated>2011-09-17T04:55:31.704-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jms tutorial quick summary</category><title>Overview of Java Messaging</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Messaging is a method of communication between software components or applications. A messaging system is a peer-to-peer facility: A messaging client can send messages to, and receive messages from, any other client. Each client connects to a messaging agent that provides facilities for creating, sending, receiving, and reading messages.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;A JMS application is composed of the following parts:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;A JMS provider is a messaging system that implements the JMS interfaces and provides administrative and control features.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;JMS clients are the programs or components, written in the JavaTM programming language, that produce and consume messages.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Messages are the objects that communicate information between JMS clients.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Administered objects are preconfigured JMS objects created by an administrator for the use of clients. The two kinds of administered objects are destinations and connection factories.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Native clients are programs that use a messaging product&#39;s native client API instead of the JMS API. An application first created before the JMS API became available and subsequently modified is likely to include both JMS and native clients.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;JMS API can be used in some of the following ways:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Consume messages asynchronously with a message-driven bean&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Produce messages from an application client&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Produce messages from a session bean&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Access an entity bean from a message-driven bean&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Produce and consume messages on more than one system&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;An enterprise application provider is likely to choose a messaging API over a tightly coupled API, such as remote procedure call (RPC), under the following circumstances.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The provider wants the components not to depend on information about other components&#39; interfaces, so that components can be easily replaced.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The provider wants the application to run whether or not all components are up and running simultaneously.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The application business model allows a component to send information to another and to continue to operate without receiving an immediate response.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;For example, components of an enterprise application for an automobile manufacturer can use the JMS API in situations like these:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The inventory component can send a message to the factory component when the inventory level for a product goes below a certain level so that the factory can make more cars.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The factory component can send a message to the parts components so that the factory can assemble the parts it needs.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Performs a JNDI lookup of the ConnectionFactory and Destination&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Look up connection factory and destination. If either does not exist, exit. If you look up a TopicConnectionFactory or a QueueConnectionFactory&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Creates a Connection and a Session:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Connection connection = &amp;nbsp; connectionFactory.createConnection(); Session session = connection.createSession(false, &amp;nbsp; Session.AUTO_ACKNOWLEDGE);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Creates a MessageProducer and a TextMessage:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;MessageProducer producer = session.createProducer(dest); TextMessage message = session.createTextMessage();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Sends one or more messages to the destination:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;for (int i = 0; i &amp;lt; NUM_MSGS; i++) { &amp;nbsp; message.setText(&quot;This is message &quot; + (i + 1)); &amp;nbsp; System.out.println(&quot;Sending message: &quot; + &amp;nbsp; &amp;nbsp; message.getText()); &amp;nbsp; producer.send(message); }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Sends an empty control message to indicate the end of the message stream:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;producer.send(session.createMessage());&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Finally close the connection using connection.close() in the finally clause.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;A sequence of how queue and topic would be used:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Queue name is jms/ControlQueue&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Queue name is jms/Queue&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Topic name is jms/Topic&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Connection factory name is jms/DurableConnectionFactory&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; SENDER: Created client-acknowledge session&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; SENDER: Sending message: Here is a client-acknowledge message&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; RECEIVER: Created client-acknowledge session&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; RECEIVER: Processing message: Here is a client-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; RECEIVER: Now I&#39;ll acknowledge the message&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;PUBLISHER: Created auto-acknowledge session&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;SUBSCRIBER: Created auto-acknowledge session&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;PUBLISHER: Receiving synchronize messages from jms/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;ControlQueue; count = 1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;SUBSCRIBER: Sending synchronize message to jms/ControlQueue&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;PUBLISHER: Received synchronize message; &amp;nbsp;expect 0 more&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;PUBLISHER: Publishing message: Here is an auto-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message 1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;PUBLISHER: Publishing message: Here is an auto-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message 2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;SUBSCRIBER: Processing message: Here is an auto-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message 1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;PUBLISHER: Publishing message: Here is an auto-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message 3&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;SUBSCRIBER: Processing message: Here is an auto-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message 2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;SUBSCRIBER: Processing message: Here is an auto-acknowledge&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;message 3&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2011/09/overview-of-java-messaging.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-6233599317760942551</guid><pubDate>Wed, 29 Apr 2009 04:56:00 +0000</pubDate><atom:updated>2009-04-28T22:06:11.712-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">flex</category><category domain="http://www.blogger.com/atom/ns#">Lazy loading</category><category domain="http://www.blogger.com/atom/ns#">Tree</category><title>Lazy-loaded tree example</title><description>mx:application mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot; creationcomplete=&quot;creationCompleteHandler()&quot;&lt;br /&gt;&lt;br /&gt;            import mx.utils.ObjectProxy;&lt;br /&gt;            import mx.events.TreeEvent;&lt;br /&gt;            import mx.collections.ArrayCollection;&lt;br /&gt;            private var myEvent:TreeEvent;&lt;br /&gt;           &lt;br /&gt;            [Bindable]&lt;br /&gt;            private var acSiteTreeList:ArrayCollection;&lt;br /&gt;           &lt;br /&gt;            private function creationCompleteHandler():void {&lt;br /&gt;                var obj:Object;&lt;br /&gt;                acSiteTreeList = new ArrayCollection ();&lt;br /&gt;                for(var i:int = 0; i &lt; 3; i++) {&lt;br /&gt;                    obj= new Object();&lt;br /&gt;                    obj[&quot;type&quot;] = &quot;something&quot;;&lt;br /&gt;                    obj[&quot;children&quot;] = new ArrayCollection();&lt;br /&gt;                    //fetch is a property in the dataprovider to check if I have fetched the child nodes previously&lt;br /&gt;                    obj[&quot;fetch&quot;] = false;&lt;br /&gt;                    obj[&quot;label&quot;] = &quot;name &quot; + i.toString();&lt;br /&gt;                    acSiteTreeList.addItem(obj);&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;           &lt;br /&gt;            private function setView(event:TreeEvent):void {&lt;br /&gt;                if(event.item.type == &quot;something&quot; &amp;amp;&amp;amp; event.item.fetch == false) {&lt;br /&gt;                    myEvent = event; //(myEvent is of type TreeEvent)&lt;br /&gt;                    //update the dataprovider&lt;br /&gt;                    var obj:ObjectProxy;&lt;br /&gt;                    var item:Object;&lt;br /&gt;                    var children:ArrayCollection;&lt;br /&gt;                    for(var i:int = 0; i &lt; acSiteTreeList.length; i++) {&lt;br /&gt;                        obj= new ObjectProxy();&lt;br /&gt;                        obj[&quot;type&quot;] = &quot;something&quot;;&lt;br /&gt;                        //obj[&quot;children&quot;] = new ArrayCollection(bloggersArray);&lt;br /&gt;                        //fetch is a property in the dataprovider to check if I have fetched the child nodes previously&lt;br /&gt;                        obj[&quot;fetch&quot;] = false;&lt;br /&gt;                        obj[&quot;label&quot;] = &quot;node &quot; + i.toString();&lt;br /&gt;                        item = myEvent.item;&lt;br /&gt;                        children = item.children;&lt;br /&gt;                        item.fetch = true;&lt;br /&gt;                        children.addItem(obj);&lt;br /&gt;                        acSiteTreeList.itemUpdated(item);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;    mx:canvas width=&quot;100%&quot; height=&quot;100%&quot;&lt;br /&gt;        mx:tree id=&quot;treeSiteList&quot; dataprovider=&quot;{acSiteTreeList}&quot; x=&quot;204&quot; y=&quot;10&quot; height=&quot;582&quot; width=&quot;394&quot; itemopen=&quot;setView(event)&quot;       &lt;br /&gt;    mx:Canvas&lt;br /&gt;mx:Application</description><link>http://flexinputs.blogspot.com/2009/04/lazy-loaded-tree-example.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-5536564041305459</guid><pubDate>Mon, 20 Apr 2009 13:47:00 +0000</pubDate><atom:updated>2009-04-20T06:55:32.549-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">flash media server</category><title>Wowza Media Server - Really hot!</title><description>&lt;p&gt;&lt;strong&gt;The Wowza Media Server is a upcoming, commercial alternative to Adobe&#39;s Flash Media Server with some unique features such as FastForward and Rewind.&lt;/strong&gt;&lt;/p&gt; The Wowza Media Server (WMS) is a Java 5 (aka 1.5) server application that can be extended using Java on the server side and Flash on the client side using the Flash Media Server client side ActionScript API. The software supports Live streaming (using ON2 Live), Video on Demand with Fast Forward, rewind and prepend operations, multiuser Video Chats (video, audio and text) as well as Video Recording.&lt;br /&gt;&lt;br /&gt;This addition brings more competition to the Flash Video space where Adobe&#39;s &lt;a href=&quot;http://www.adobe.com/products/flashmediaserver/&quot; target=&quot;_blank&quot;&gt;&lt;u&gt;Flash Media Server&lt;/u&gt;&lt;/a&gt; and &lt;a href=&quot;http://www.osflash.org/red5&quot; target=&quot;_blank&quot;&gt;&lt;u&gt;Red5&lt;/u&gt;&lt;/a&gt; currently represent the outer limits.&lt;br /&gt;&lt;br /&gt;Wowza Pro10: FREE&lt;br /&gt;Perfect for development and personal use, the Wowza Pro10 edition supports a maximum of 10 concurrent connections and does not have MPEG-TS ingest capabilities. Otherwise, the Pro10 edition contains the full features and functionality of the Wowza Pro Unlimited with MPEG-TS edition.   &lt;br /&gt;&lt;br /&gt;Wowza Pro Unlimited with MPEG-TS: Single License     $995&lt;br /&gt;The Wowza Pro Unlimited with MPEG-TS edition has no per-server connection capacity limit and is the best option for commercial deployments. While the Wowza Pro Unlimited with MPEG-TS edition does not limit the number of connections, connection capacity will depend on your choice of hardware, internet connection bandwidth and specific application.</description><link>http://flexinputs.blogspot.com/2009/04/wowza-media-server-really-hot.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-4275272584327854226</guid><pubDate>Sun, 05 Apr 2009 05:02:00 +0000</pubDate><atom:updated>2009-04-04T22:06:00.129-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">flex</category><category domain="http://www.blogger.com/atom/ns#">visual studio</category><title>Adobe Flex for .NET developers</title><description>One of the announcements from Adobe’s recent annual developer conference that should be of particular interest to .NET developers is the release of a free plug-in for Microsoft Visual Studio, which provides support for building rich Internet applications (RIAs) using Adobe&#39;s Flex framework. The release of the Ensemble &lt;span style=&quot;font-weight: bold;&quot;&gt;Tofino plug-in&lt;/span&gt; will be important to the many enterprise development teams that have standardized on Visual Studio as their primary integrated development environment (IDE), but who want to take advantage of the ubiquitous Flash Player for deploying a RIA.&lt;br /&gt;With increasing end-user expectations in relation to the quality, expressiveness and performance of web-based applications, developers need to focus more attention on the “richness” of the user experience. Whilst AJAX-style techniques can be used to enrich the user interface, plug-in based technologies like Flash Player is extending the capabilities of the browser, to offer media playback, enhanced graphics and faster code-execution performance.&lt;br /&gt;The only thing that you need to do to enable Flex development within your Visual Studio environment is to install the Ensemble Tofino plug-in, available free from &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.ensemble.com/&quot;&gt;http://www.ensemble.com/&lt;/a&gt;. At the time of writing, the plug-in is in an early stage of release, and currently includes the ability to create, compile and debug applications.</description><link>http://flexinputs.blogspot.com/2009/04/adobe-flex-for-net-developers.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-8951746560904541359</guid><pubDate>Sat, 04 Apr 2009 20:04:00 +0000</pubDate><atom:updated>2011-09-17T05:12:32.240-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">2d</category><category domain="http://www.blogger.com/atom/ns#">3d</category><category domain="http://www.blogger.com/atom/ns#">actionscript</category><category domain="http://www.blogger.com/atom/ns#">AI</category><category domain="http://www.blogger.com/atom/ns#">flare</category><category domain="http://www.blogger.com/atom/ns#">flex</category><category domain="http://www.blogger.com/atom/ns#">papervision</category><title>AI &amp; UI - Thinking beyond...</title><description>Can we build code that can think on its own?&lt;br /&gt;
For example, can we build a component that can learn from the inputs that it gets?&lt;br /&gt;
I was trying to build a component that can handle additional events based on user inputs. This component can adapt to user&#39;s requirement by changing from a 2d to a 3d component on its own.&lt;br /&gt;
UI has come a long way and today&#39;s user&#39;s expect the UI to hold the data within it and expect the UI to &quot;analyze&quot; this data and display appropriate responses through data visualizations to tell the users what action to take!&lt;br /&gt;
Talking about 2d to 3d and vise-versa, I believe the marriage between flare and papervision could create the best of the 2d and 3d worlds!&lt;br /&gt;
Building a new component that takes ideas from flare and papervision and has Artificial Intelligence embedded makes it mouth watering!</description><link>http://flexinputs.blogspot.com/2009/04/ai-ui-thinking-beyond.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-1974905503185792340</guid><pubDate>Sat, 04 Apr 2009 19:27:00 +0000</pubDate><atom:updated>2009-04-04T12:39:41.123-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">actionscript</category><category domain="http://www.blogger.com/atom/ns#">flex</category><category domain="http://www.blogger.com/atom/ns#">light weight</category><category domain="http://www.blogger.com/atom/ns#">performance</category><category domain="http://www.blogger.com/atom/ns#">simple</category><title>Original = Light weight = High Performance</title><description>The fact of the matter is we as developers look for great open source frameworks and libraries that can make our lives easier.&lt;br /&gt;The vision should always be on scalability and performance but for some reason all these free libraries are making us lose focus on the plain fact that we can build ultimate stuff that can be much better than all these that exist for free.&lt;br /&gt;The problem is using these libraries limit our ability think beyond what exists!&lt;br /&gt;The idea is that by creating a component on our own using simple logic creates unbelievably great stuff! All the actionscript code for 2d, 3d and data visualization are great but there is much more than we see.&lt;br /&gt;All I suggest is enjoy creating stuff than just re-using the &quot;elephants&quot;!!!</description><link>http://flexinputs.blogspot.com/2009/04/light-weight-high-performance.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-5413667156033914450</guid><pubDate>Sat, 04 Apr 2009 17:59:00 +0000</pubDate><atom:updated>2009-04-04T10:59:44.624-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">LivePipe</category><title>LivePipe UI</title><description>LivePipe UI is a suite of high quality widgets and controls for web 2.0 applications built using the Prototype JavaScript Framework. Each control is well tested, highly extensible, fully documented and degrades gracefully for non JavaScript enabled browsers where possible. MIT licensed and actively maintained.</description><link>http://flexinputs.blogspot.com/2009/04/livepipe-ui.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-83991109412713963</guid><pubDate>Sat, 04 Apr 2009 17:23:00 +0000</pubDate><atom:updated>2009-04-04T12:24:54.764-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">c</category><category domain="http://www.blogger.com/atom/ns#">flex</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">jobs</category><category domain="http://www.blogger.com/atom/ns#">perl</category><title>Openings Jobs in Flex, Java, Perl &amp; C Programming</title><description>We have some openings for the following positions:&lt;br /&gt;&lt;br /&gt;1. Strong in Java/J2EE skills with 1 to 5 yrs experience.&lt;br /&gt;2. Strong C skills with 4-5 yrs experience.&lt;br /&gt;3. JavaScript, AJAX and Adobe Flex with 1-4 yrs experience&lt;br /&gt;4. Strong in Perl or any other scripting language. Should have worked on automated testing. Around 2-4 yrs experience in testing.&lt;br /&gt;5. Designer for creating content (especially icons) for our web application, product and company website. Should be good in Photoshop, Fireworks or any other Image editor and should be very creative.&lt;br /&gt;&lt;br /&gt;Location: Bangalore&lt;br /&gt;&lt;br /&gt;mail your resumes to: aditya7773@gmail.com</description><link>http://flexinputs.blogspot.com/2009/04/openings-in-java-flex-c-perl.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-461957065209133701</guid><pubDate>Sat, 04 Apr 2009 17:02:00 +0000</pubDate><atom:updated>2009-04-04T10:11:11.491-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">prototype</category><title>Prototype JavaScript</title><description>&lt;div id=&quot;sell&quot;&gt;              &lt;p class=&quot;embold&quot;&gt;&lt;a href=&quot;http://www.prototypejs.org/&quot;&gt;Prototype &lt;/a&gt;is a JavaScript Framework that aims to ease development of dynamic web applications.&lt;/p&gt;              &lt;p&gt;http://www.prototypejs.org/&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://prototypejs.org/&quot;&gt;prototype.js&lt;/a&gt; is a      JavaScript library initially written by &lt;a href=&quot;http://www.conio.net/&quot;&gt;Sam Stephenson&lt;/a&gt;.      This amazingly well thought and well written piece of &lt;strong&gt;standards-compliant&lt;/strong&gt; code takes a lot of     the burden associated with creating rich, highly interactive web pages that characterize the Web 2.0 off      your back.&lt;/p&gt;&lt;p&gt;Developers familiar with the Ruby     programming language will notice an intentional similarity between Ruby&#39;s      built-in classes and many of the extensions implemented by this library. That&#39;s     not surprising since prototype.js is a spinoff and is directly influenced by the      requirements of the &lt;a href=&quot;http://www.rubyonrails.org/&quot;&gt;Ruby on Rails&lt;/a&gt; framework.        &lt;/p&gt;&lt;p&gt;     As far as browser support goes, prototype.js tries to support Internet Explorer (Windows) 6.0+,     Mozilla Firefox 1.5+, Apple Safari 1.0+, and Opera 9+. Supporting these browsers also cause some other     browsers that share their rendering engines to be supported as well, like Camino, Konqueror, IceWeasel,     Netscape 6+, SeaMonkey, etc.    &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2009/04/prototype-javascript.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-6130800700075345749</guid><pubDate>Sat, 04 Apr 2009 14:29:00 +0000</pubDate><atom:updated>2009-04-04T07:39:15.149-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">birdeye</category><category domain="http://www.blogger.com/atom/ns#">charting</category><category domain="http://www.blogger.com/atom/ns#">data-visualization</category><category domain="http://www.blogger.com/atom/ns#">flare</category><category domain="http://www.blogger.com/atom/ns#">flex</category><title>Flex Data Visualization &amp; Charting</title><description>There are some cool open source projects that are creating ripples in flex. I find the best of all to be Flare. Flare is very flexible and light-weight. It provides foundation classes to create ultimate data-visualization components with useful animations, transitions and effects.&lt;br /&gt;There is another such project called BirdEye. This is pretty cool but still not as great as Flare. However the vision of this project is to create an end-to-end solution for data-visualization. Not the fun stuff that developers would like to reuse.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://flare.prefuse.org/&quot;&gt;Flare&lt;/a&gt;:&lt;br /&gt;Flare is an ActionScript library for creating visualizations that run in the Adobe Flash Player. From basic charts and graphs to complex interactive graphics, the toolkit supports data management, visual encoding, animation, and interaction techniques. Even better, flare features a modular design that lets developers create customized visualization techniques without having to reinvent the wheel.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://code.google.com/p/birdeye/&quot;&gt;BirdEye&lt;/a&gt;:&lt;br /&gt;&lt;a name=&quot;Overview&quot;&gt;BirdEye is a community project to advance the design and development of a comprehensive open source information visualization and visual analytics library for Adobe Flex. The actionscript-based library enables users to create multi-dimensional data visualization interfaces for the analysis and presentation of information.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have fun with all the cool data-visualization stuff!</description><link>http://flexinputs.blogspot.com/2009/04/flex-data-visualization-charting.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-1483883966183998859</guid><pubDate>Wed, 17 Sep 2008 09:52:00 +0000</pubDate><atom:updated>2011-09-17T02:56:03.139-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jpa jta jdo hibernate spring</category><title>Spring &amp; HIbernate</title><description>Here I would like to recommend the best combination which is Spring with Hibernate for an Enterprise application which confirms to OOPS philosophy.&lt;br /&gt;
&lt;br /&gt;
Before we go in-depth about the topic, some facts about using an ORM:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Advantages:&lt;br /&gt;
Speeds-up Development - eliminates the need for repetitive SQL code.&lt;br /&gt;
Reduces Development Time.&lt;br /&gt;
Reduces Development Costs.&lt;br /&gt;
Overcomes vendor specific SQL differences - the ORM knows how to write vendor specific SQL so you don&#39;t have to.&lt;br /&gt;
&lt;br /&gt;
Disadvantages:&lt;br /&gt;
Loss in developer productivity whilst they learn to program with ORM.&lt;br /&gt;
Developers loose understanding of what the code is actually doing - the developer is more in control using SQL.&lt;br /&gt;
ORM has a tendency to be slow.&lt;br /&gt;
ORM fail to compete against SQL queries for complex queries.&lt;br /&gt;
&lt;br /&gt;
For Hibernate, Spring framework provides first-class support with lots of IoC convenience features, addressing many typical Hibernate integration issues. All of these support packages for O/R (Object Relational) mappers comply with Spring&#39;s generic transaction and DAO exception hierarchies. There are usually two integration styles: either using Spring&#39;s DAO &#39;templates&#39; or coding DAOs against plain Hibernate/JDO/TopLink/etc APIs.&lt;br /&gt;
&lt;br /&gt;
Spring framework is based on Java Bean configuration management with Inversion of control principle (IoC). Spring uses its IoC container as the principal building block for a comprehensive solution that reflects all architectural features. Its unique data access system with a simple JDBC framework improves its productivity with less error. Its AOP program written in standard Java provides better transaction management services and also enables it for different applications.&lt;br /&gt;
&lt;br /&gt;
Following are the modules of the Spring Core Container:&lt;br /&gt;
Beans, Core, Context, Expression Language&lt;br /&gt;
&lt;br /&gt;
Dependencies are satisfied through the following:&lt;br /&gt;
&lt;br /&gt;
1. Constructor Injection&lt;br /&gt;
2. Setter Injection&lt;br /&gt;
3. Interface Injection&lt;br /&gt;
&lt;br /&gt;
Configure the spring bean configuration file&lt;br /&gt;
Create bean entries for the following:&lt;br /&gt;
jsp view resolver, datasource, sessionfactory &amp;amp; other domain specific dao &amp;amp; controller beans.&lt;br /&gt;
&lt;br /&gt;
Hibernate Mapping for the DAO object will be in the &lt;dao_name&gt;.hbm.xml file&lt;br /&gt;
&lt;br /&gt;
Use a seperate DAO class to interact with the database.&lt;br /&gt;
Use a MultiActionController class to handle the web requests. &lt;br /&gt;
Add hibernate annotations to Bean classes, if you want to add any database related constraints.&lt;br /&gt;
&lt;/dao_name&gt;&lt;/div&gt;&lt;div&gt;Example:&lt;br /&gt;
&lt;br /&gt;
@Id&lt;br /&gt;
@GeneratedValue&lt;br /&gt;
@Column(name=&quot;USER_ID&quot;)&lt;br /&gt;
public Long getId() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return id;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Ensure all DAO classes implement an interface so that save &amp;amp; retrieve methods can be implemented on them.&lt;br /&gt;
Use Hibernate Template to access the database in the DAO object.&lt;br /&gt;
this.hibernateTemplate = new HibernateTemplate(sessionFactory);&lt;br /&gt;
hibernateTemplate.saveOrUpdate(user);&lt;br /&gt;
return hibernateTemplate.find(&quot;from User&quot;);&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Hibernate Template is thread safe and reusable. You need not manually open and close Session, Hibernate Template will do that for you.&lt;br /&gt;
&lt;br /&gt;
The specific say User Controller class will extend MultiActionController class. The UserDAOImpl instance is injected using setter injection.&lt;br /&gt;
&lt;br /&gt;
In the jsp page we use Spring Form tags to display the form fields and jstl tags to display the list of users. In the add method we call the saveUser() method and redirect the control to the &quot;list.htm&quot; url. This will invoke the list() method. In the list method you add two things to the modelMap, the user list to display the list of users and an instance of the user object to bind the form fields in the userForm.jsp page.&lt;br /&gt;
&lt;br /&gt;
In the jsp page we use Spring Form tags to display the form fields and jstl tags to display the list of users.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2011/09/spring-hibernate.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-7355407237062213613</guid><pubDate>Fri, 29 Jun 2007 02:41:00 +0000</pubDate><atom:updated>2007-06-28T20:13:29.644-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cool flex apps</category><title>Coolest thing in Flex???</title><description>Does anyone know whats the coolest Flex app running the show?&lt;br /&gt;&lt;br /&gt;These are some of my short reviews on some of the cool Flex apps:&lt;br /&gt;&lt;br /&gt;Design Color Themes - &lt;a href=&quot;http://kuler.adobe.com/&quot;&gt;http://kuler.adobe.com/&lt;/a&gt;&lt;br /&gt;Fantastic! For people who don&#39;t have much experience in choosing colors this is the place!!&lt;br /&gt;&lt;br /&gt;Scrap blog - &lt;a href=&quot;http://www.scrapblog.com/builder/?isLoged=false&quot;&gt;http://www.scrapblog.com/builder/&lt;/a&gt;&lt;br /&gt;It gives a lot of presentation tools to make the blog look great... I liked the template feature. Nice a way to present your blog!! This one is for the artists out there!&lt;br /&gt;&lt;br /&gt;The Amgen Tour of California - &lt;a href=&quot;http://www.amgentourofcalifornia.com/docroot/tourtracker2/index.html&quot;&gt;http://www.amgentourofcalifornia.com/docroot/tourtracker2/index.html&lt;/a&gt;&lt;br /&gt;- Doesn&#39;t load fast enough. Colors used aren&#39;t very great though. UI is just ordinary. Need to appreciate the effort for getting such a flex app developed in a month&#39;s time.</description><link>http://flexinputs.blogspot.com/2007/06/coolest-thing-in-flex.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-4200582842848237650</guid><pubDate>Wed, 18 Apr 2007 18:36:00 +0000</pubDate><atom:updated>2007-04-18T11:37:28.492-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">UI</category><title>Item Renderer</title><description>&lt;a href=&quot;http://blogs.adobe.com/aharui/item_renderers/&quot;&gt;http://blogs.adobe.com/aharui/item_renderers/&lt;/a&gt;</description><link>http://flexinputs.blogspot.com/2007/04/item-renderer.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-5833051157632455205</guid><pubDate>Wed, 18 Apr 2007 05:09:00 +0000</pubDate><atom:updated>2007-04-17T22:10:24.439-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">css</category><title>Gradient Background for Box via CSS</title><description>.gradientStyle {&lt;br /&gt;    borderStyle: applicationControlBar;&lt;br /&gt;    fillColors:  #FF0000, #0000FF;&lt;br /&gt;    fillAlphas: 1, 1;&lt;br /&gt;    highlightAlphas: 0,  0;&lt;br /&gt;}</description><link>http://flexinputs.blogspot.com/2007/04/gradient-background-for-box-via-css.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-7491966238424221465</guid><pubDate>Mon, 16 Apr 2007 06:13:00 +0000</pubDate><atom:updated>2007-04-17T22:11:42.740-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">guidelines</category><title>Best practices when designing a component</title><description>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;p&gt;Use the following practices when you design a component:&lt;/p&gt;          &lt;p&gt; * Keep the file size as small as possible.&lt;br /&gt;&lt;br /&gt;           * Make your component as reusable as possible by generalizing functionality.&lt;br /&gt;&lt;br /&gt;           * Use the Border class rather than graphical elements to draw borders around objects.&lt;br /&gt;&lt;br /&gt;           * Use tag-based skinning.&lt;br /&gt;&lt;br /&gt;           * Assume an initial state. Because style properties are on the object, you can set initial settings for styles and properties so your initialization code does not have to set them when the object is constructed, unless the user overrides the default state.&lt;br /&gt;&lt;br /&gt;           * When defining the symbol, do not select the Export in First Frame option unless it is absolutely necessary. Flash loads the component just before it is used in your Flash application, so if you select this option, Flash preloads the component in the first frame of its parent. The reason you typically do not preload the component in the first frame is for considerations on the web: the component loads before your preloader begins, defeating the purpose of the preloader.&lt;br /&gt;&lt;br /&gt;           * Always implement an init() method and call the super.init() method, but otherwise keep the component as lightweight as possible.&lt;br /&gt;&lt;br /&gt;           * Use the invalidate() and invalidateStyle() methods to invoke the draw() method instead of calling the draw() method explicitly.&lt;/p&gt;          &lt;p&gt;&lt;a href=&quot;http://www.adobe.com/support/documentation/en/flex/1_5/createcomponents/createcomponents26.html&quot;&gt;For More&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;                     &lt;/p&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2007/04/best-practices-when-designing-component.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-6443107491073788522</guid><pubDate>Sat, 14 Apr 2007 19:31:00 +0000</pubDate><atom:updated>2007-04-17T22:14:48.182-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">references</category><title>Flex Security</title><description>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://www.eweek.com/article2/0,1895,2110554,00.asp&quot;&gt;AJAX JSON Security Issues&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2007/04/flex-security.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-3496792192952210117</guid><pubDate>Sat, 14 Apr 2007 18:59:00 +0000</pubDate><atom:updated>2007-04-17T22:17:08.168-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">RPC services</category><title>Multiple HTTPService Requests</title><description>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;p&gt;HTTPService requests can be operated in async mode but what happens if  the state of your database requires serialization of requests or what  happens if you need to debug your server-side code and you are doing  this through the use of some kind of log file - async server requests  can make debugging a problem even if you have some kind of debugging  system that lets you step through your server side code. Found that my async HTTPService requests were failing sometimes for  odd reasons until they were run serially one after another  through a single HTTPService Object. Chose to run the requests one after another to  facilitate debugging and maintaining my database state.     Keep  in mind when requests are being run async it may be possible for a  subsequent request to be run out of order, in case it matters what  order the requests need to be run in.&lt;br /&gt;&lt;/p&gt;          &lt;p&gt; Build a REST Serialization mechanism that guarantees   queue-up requests as deep as reqd and then execute them serially  since that is the way the REST backend needs the requests in order to  maintain database state. &lt;/p&gt;          &lt;p&gt; Using several HTTPService calls to plain old REST API&#39;s on the&lt;br /&gt;&lt;br /&gt;backend.  If the end user clicks some of the UI controls multiple times quickly,  many calls to these services get queued up, and it can take a long  time for all the data to be retrieved.   For ex. clicking on a list box item sends requests to refresh all the  data, and if the user were to use the keyboard to quickly scroll  through the listbox, many many calls would get queued up.  Tried setting the concurrency=&quot;last&quot; on the httpservices, but it  appears the only effect of that is to make the UI change only when the  last dataset is received, but still all the service calls continue to  be queued and there is a long delay after making many calls.  Also tried &amp;lt;httpservice&amp;gt;.disconnect() and .cancel() before making  any new backend call but it didn&#39;t appear to have any effect as far as  preventing many calls from getting queued up.&lt;br /&gt;&lt;br /&gt;                                &lt;/p&gt;          &lt;p&gt; The maximum number of concurrent HTTP connections allowed   to a web server is controlled by the browser. The HTTP 1.1 specification   suggests a limit of 2 connections per host, but this requires further   consideration if persistent connections are to be used. Some browsers can   be configured to accept more, but your users will more than likely have the   default settings. IE honors the 2 connections per host suggestion (but to change   this you have to edit the registry, see MaxConnectionsPerServer).   Firefox sets this value to 8 but does still limit persistent connections to   2 (you can change these settings via about:config).      If you were dealing with a closed network or intranet   application, you may be able to change your company&#39;s IT policy and roll out   different default settings, but for public applications There are lots of other tricks that one can use to optimize HTTP   requests (e.g. idempotent GET requests you benefit from pipelining etc)... but   my point is that there&#39;s a bit more to consider than a bunch of   simultaneous requests. &lt;/p&gt;          &lt;p&gt; Yes, once one of the previous requests   completes (either by a fault or result) the next outstanding request can   proceed. Note that you can make use of multiple CNAMEs   to increase the number of requests made concurrently per host   (e.g. Google Maps uses &lt;a href=&quot;http://mt0.google.com/&quot;&gt;mt0.google.com&lt;/a&gt; through &lt;a href=&quot;http://mt3.google.com/&quot;&gt;mt3.google.com&lt;/a&gt; to get 8 concurrent   connections to load map data).      Persistent / &quot;reusable&quot; / &quot;keep alive&quot; connections are the   default behavior for HTTP 1.1 your connections are being re-used for multiple   requests already. The period for a persistent connection however is typically   much smaller than, say, the life of a J2EE session. Keep alive is merely a hack   to optimize the situation when multiple requests are made to the same host in a   short period of time. If you had a UI that was comprised of 25 individual   assets then you wouldn&#39;t want to re-establish 25 connections and perform the   usual HTTP handshake for each request (and it would be even worse for HTTPS   based connections). HTTP that makes use of &quot;keep alive&quot; should still be   considered a stateless situation.      A completely different approach for &quot;persistent   connections&quot; is the style used by COMET servers and chunked encoding. Here the   client immediately establishes a connection to the server on receiving data and   the server holds on to the connection until new data is available to push back   to the client. This does, however, impact on the number of simultaneous   connections that a server can handle because it ties up threads on the   server. &lt;/p&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2007/04/multiple-httpservice-requests.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3824924850990617151.post-9069073530947598264</guid><pubDate>Sat, 14 Apr 2007 18:22:00 +0000</pubDate><atom:updated>2007-04-17T22:17:49.202-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">UI</category><title>CursorManager, DisplayObject, Sprite, Movie Clip</title><description>&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The cursor is basically treated as if its a DisplayObject, which in  practice means that its a Sprite, MovieClip, Bitmap or Shape. Most of  the examples I&#39;ve seen use embedded assets, most often a bitmap. But it  can be any class that can sit on the display list.&lt;br /&gt;&lt;br /&gt; Of course, you&#39;re not able to access your specific instance of  the class as the CursorManager creates it internally and its not  exposed. So, you have to be tricky. Either you create a class that&#39;s a  monostate (all of the instances of the class share a common state) or  have your custom class listen for some particularly events that you&#39;re  able to get into the display list and to your class. Personally, I&#39;d go  for the monostate (more predictable).&lt;br /&gt;&lt;br /&gt; You&#39;ll need to create a class that inherits from  DisplayObject, Sprite would be a good choice. In your class, I&#39;d add a  static member that stores the current &quot;size&quot; or &quot;scale&quot;. And in the  ENTER_FRAME event, have your sprite copy that value into the sprite&#39;s  scaleX and scaleY members. Basically, it&#39;s manual binding (you could  probably do some more traditional binding as well, but I&#39;m assuming  here that you&#39;d probably be using ENTER_FRAME anyway for some  animation).&lt;br /&gt;&lt;br /&gt; Pass off your custom cursor sprite class to the CursorManager  to use... internally, it will construct an instant as necessary (based  on priority of cursors, etc.). On your end, just modify the static  state (scale) as necessary. The result will be a cursor that resizes  (because the CursorManager&#39;s instance of the class is using the same  static state that you&#39;re manipulating).&lt;br /&gt;&lt;br /&gt; If you&#39;re embedding an SWF, just embed it and use it inside of  your custom class (add it as a child, etc.).&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://flexinputs.blogspot.com/2007/04/cursormanager-displayobject-sprite.html</link><author>noreply@blogger.com (Gautam)</author><thr:total>0</thr:total></item></channel></rss>