jYog.com - Articles http://jyog.com/taxonomy/term/1/0 en Tomcat 6.0 comet support and asynchronous servlets http://jyog.com/articles/tomcat_comet_support_asynchronous_servlets.html <p>Comet support allows a servlet to process IO asynchronously, recieving events when data is available for reading on the connection , and writing data back on connections asynchronously.</p> <p>Comet applications can deliver data to the client at any time, not only in response to user input. The data is delivered over a single, previously-opened connection. This approach reduces the latency for data delivery significantly.</p> <p><strong>Tomcat 6.0 comet support</strong></p> <li><strong>CometEvent</strong></li> <p><a href="http://jyog.com/articles/tomcat_comet_support_asynchronous_servlets.html">read more</a></p> http://jyog.com/articles/tomcat_comet_support_asynchronous_servlets.html#comments Articles Sun, 09 Sep 2007 04:52:08 -0500 sudhir_nimavat 8 at http://jyog.com New Features In Servlet 3.0 - JSR 315 http://jyog.com/articles/servlet3.0_new_features.html Proposed New Features Of Servlet 3.0 - JSR 315 </br> </br> <li><h4>Web framework pluggability.</h4> <ul> <li>Almost all of the Java based web frameworks build on top of servlets. Most web frameworks today plugin either through servlets or through web.xml. Annotations to define some of the servlets, listeners, filters will help in making this possible. Programatic access to web.xml and dynamic changes to configuration of a webapp are desired features. This JSR will aim to provide the ability to seamlessly plugin different web frameworks into web appplications. </ul> <p><a href="http://jyog.com/articles/servlet3.0_new_features.html">read more</a></p> http://jyog.com/articles/servlet3.0_new_features.html#comments Articles Mon, 03 Sep 2007 09:20:28 -0500 sudhir_nimavat 7 at http://jyog.com Whats coming up in Java SE 7 http://jyog.com/articles/java7_new_features.html <p>Summary Of Proposed JSRs for Java SE 7 Platform</p> <p>JSR 277: Java Module System</p> <p>JSR 294: Improved modularity support in the Java programming language</p> <p>JSR 295: Beans binding</p> <p>JSR 303: Bean validation</p> <p>JSR 292: Supporting Dynamically Typed Languages</p> <p>JSR 296: Swing application framework</p> <p>JSR 203: More new I/ O APIs for the Java Platform (NIO.2)</p> <p>JSR 220: Enterprise JavaBeans™ 3.0</p> <p>JSR 255: JMX specification, version 2.0</p> <p>JSR 262: Web services connector for JMX agents</p> <p>JSR 260: Javadoc™ Tag Technology Update</p> <p>JSR(s) TBD Java Language changes</p> <p><a href="http://jyog.com/articles/java7_new_features.html">read more</a></p> http://jyog.com/articles/java7_new_features.html#comments Articles Sat, 01 Sep 2007 04:58:02 -0500 sudhir_nimavat 6 at http://jyog.com A common SQLServer connection error http://jyog.com/SQLServer_JDBC_Error_establishing_socket <p>I have seen many developers struggling with exception "SQLServer 2000 Driver for JDBC Error establishing socket" When connecting to SQLServer 2000 using JDBC.</p> <p>Here is the stacktrace of the exception thrown when connecting to SQLServer.</p> <p><code><br /> Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.<br /> at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)<br /> at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)<br /> at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)</p> <p><a href="http://jyog.com/SQLServer_JDBC_Error_establishing_socket">read more</a></p> http://jyog.com/SQLServer_JDBC_Error_establishing_socket#comments Articles Sat, 25 Aug 2007 02:24:53 -0500 sudhir_nimavat 5 at http://jyog.com Article : Named Parameters for PreparedStatement http://jyog.com/Named_Parameters_for_PreparedStatement <p>Adam Crume has written <a href="http://www.javaworld.com/javaworld/jw-04-2007/jw-04-jdbc.html"> Named Parameters for PreparedStatement </a> for JavaWorld.com. He has developed a custom JDBC statement called NamedParameterStatement.</p> <p>In past if you have worked with JDBC than you may know that keeping track of the indices of PreparedStatement is very difficult for larger queries having tens of parameters.<br /> If you needs to insert or delete a parameter in the middle of a query, you must renumber all the parameters following it.</p> <p><a href="http://jyog.com/Named_Parameters_for_PreparedStatement">read more</a></p> http://jyog.com/Named_Parameters_for_PreparedStatement#comments Articles Sat, 04 Aug 2007 06:45:52 -0500 sudhir_nimavat 3 at http://jyog.com Why Java hosting costs so much? http://jyog.com/why_java_hosting_costs_so_much <p>First question, which may arise in your mind is ,despite of being a Java developer &amp; a big fan of Java, why have I hosted my own site on a php host?. The only reason is cost.Java is too much costly when it comes to hosting a privately-held/budget-aware website, now days hosting a site is a matter of around 1.5 to 6 dollar, but its for php or .Net not for Java,One could get a fairly good shared hosting package for around 1.5-6$ per month for php .Net, but when it comes to Java, its unbelivable.</p> <p>Why so?</p> <p><a href="http://jyog.com/why_java_hosting_costs_so_much">read more</a></p> http://jyog.com/why_java_hosting_costs_so_much#comments Articles Wed, 01 Aug 2007 05:41:55 -0500 sudhir_nimavat 2 at http://jyog.com