<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-19691</id>
	<title>Nabble - Java/J2EE Developers</title>
	<updated>2009-11-02T08:08:19Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Java-J2EE-Developers-f19691.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Java-J2EE-Developers-f19691.html" />
	<subtitle type="html">Discuss Java/J2EE and new cutting edge technologies, employment opportunities, market rates and other areas of interest for Java/J2EE professionals.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26157718</id>
	<title>Copy files from Webserver</title>
	<published>2009-11-02T08:08:19Z</published>
	<updated>2009-11-02T08:08:19Z</updated>
	<author>
		<name>sandeep_khurana</name>
	</author>
	<content type="html">I want to copy a file kept on a webserver. i tried copying it through URLConnection but the speed at which the gets copied is very slow (atleast 10 times slow) than what I get from copying it through a Browser (IE or Firefox).&lt;br&gt;&lt;br&gt;

the code is:&lt;br&gt;
url = &lt;font color=&quot;navy&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/font&gt; URL(url);
				urlConn = url.openConnection();
&amp;nbsp;&lt;br&gt;
				in = &lt;font color=&quot;navy&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/font&gt; BufferedInputStream(urlConn.getInputStream());&lt;br&gt;
				
				fos = &lt;font color=&quot;navy&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/font&gt; FileOutputStream(&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/font&gt; File(localFile));&lt;br&gt;

&amp;nbsp;
				&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;byte&lt;/b&gt;&lt;/font&gt;[] readBytes = &lt;font color=&quot;navy&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/font&gt; &lt;font color=&quot;navy&quot;&gt;&lt;b&gt;byte&lt;/b&gt;&lt;/font&gt;[BUFFER_SIZE];&lt;br&gt;
&amp;nbsp;
				&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/font&gt; iCurrentBytes;
				&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;while&lt;/b&gt;&lt;/font&gt; (&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/font&gt;) &lt;font color=&quot;navy&quot;&gt;{&lt;/font&gt;

					&lt;br&gt;iCurrentBytes = in.read(readBytes, 0, BUFFER_SIZE);
&amp;nbsp;
					&lt;br&gt;&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt; (iCurrentBytes &amp;lt; 0)&lt;font &lt;br&gt;color=&quot;navy&quot;&gt;{&lt;/font&gt;
						&lt;br&gt;&lt;font color=&quot;navy&quot;&gt;&lt;b&gt;break&lt;/b&gt;&lt;/font&gt;;
					&lt;br&gt;&lt;font color=&quot;navy&quot;&gt;}&lt;/font&gt;
					
					&lt;br&gt;fos.write(readBytes, 0, iCurrentBytes);
				&lt;br&gt;&lt;font color=&quot;navy&quot;&gt;}&lt;/font&gt;

				&lt;br&gt;fos.flush();
&lt;br&gt;&lt;br&gt;&lt;br&gt;
BufferSize is 8K. it takes around 38 sec. for 75 MB of file over a webserver hosted on my PC. the same takes 5 sec. hardly if i download the same from IE or firefox.&lt;br&gt;&lt;br&gt;

I have tried the following combinations while getting the metrics:&lt;br&gt;
1. downloading the file first from IE then from the java code.&lt;br&gt;
2. downloading another 75 MB file first from java code and then from IE&lt;br&gt;

in both the cases the browser took 8-10 times less time. I did this because I thought it was a caching issue but no help.&lt;br&gt;&lt;br&gt;

Is there something that I am missing.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Copy-files-from-Webserver-tp26157718s19691p26157718.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26092510</id>
	<title>jitendra work1</title>
	<published>2009-10-28T03:43:02Z</published>
	<updated>2009-10-28T03:43:02Z</updated>
	<author>
		<name>jitu123</name>
	</author>
	<content type="html">Exploring the thoughts is the best way to invent new ideas...might be this opportunity will open new doors in your life. We give the feel of this to all its member. We are giving helping hands to make the future of India bright. If you take everything in your life granted....then you are doing a big mistake...Don't hesitate to come forward for any help and suggestion from other people. We are giving a helping hand to all those persons who look forward in his life for more details log on www.healthylivingpvtltd.com or e-mail to:enquiry@enbloc.biz (Id No. - ) &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-J2EE-Job-opportunities-f19696.html&quot; embed=&quot;fixTarget[19696]&quot; target=&quot;_top&quot; &gt;Java/J2EE Job opportunities&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jitendra-work1-tp26092510s19691p26092510.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26088450</id>
	<title>Why is my Java Access Call Erroring</title>
	<published>2009-10-27T19:38:46Z</published>
	<updated>2009-10-27T19:38:46Z</updated>
	<author>
		<name>srbruno</name>
	</author>
	<content type="html">I am new to Java and need to know how to correct this function call parameter passing compiling error. &amp;nbsp;Any ideas?
&lt;br&gt;&lt;br&gt;List.java compiles and here is the code.
&lt;br&gt;//----------------------------------------------------------------------------
&lt;br&gt;// List.java
&lt;br&gt;//----------------------------------------------------------------------------
&lt;br&gt;class List
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;private class Node
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;int col;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; double val;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Node next, prev;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Node (int c, double v) { col = c; val = v; next = prev = null; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; public String toString() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return String.format (&amp;quot; (%2d, %5.2f)&amp;quot;, col, val);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; public boolean equals(Node E) { return (this.val == E.val); }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;private Node front, back, current;
&lt;br&gt;&amp;nbsp; &amp;nbsp;private int row, length;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;List(int r) { front = back = current = null; row = r; length = 0; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;void insertAfterLast(Node N)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;Node node = new Node(N.col, N.val);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ( this.length == 0 )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { this.front = this.back = node;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;node.prev = this.back;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.back.next = node;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.back = node;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.current = node;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.length++;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;public String toString()
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;String str = &amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for(Node N = front; N != null; &amp;nbsp;N = N.next)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;nbsp;if ( N == front ) { str = String.format (&amp;quot;%3d:&amp;quot;, row); }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;str += N.toString() + (N.next==null?&amp;quot;\n&amp;quot;:&amp;quot;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return str;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;ListTest.Java does not compile. &amp;nbsp;Here are the error and code.
&lt;br&gt;&lt;br&gt;-bash-3.00$ javac ListTest.java
&lt;br&gt;ListTest.java:20: non-static variable this cannot be referenced from a static context
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Entry Ea = new Entry(0, 0.0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^
&lt;br&gt;ListTest.java:24: insertAfterLast(List.Node) in List cannot be applied to (ListTest.Entry)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A.insertAfterLast(Ea);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^
&lt;br&gt;ListTest.java:26: insertAfterLast(List.Node) in List cannot be applied to (ListTest.Entry)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.insertAfterLast(Ea);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^
&lt;br&gt;ListTest.java:28: insertAfterLast(List.Node) in List cannot be applied to (ListTest.Entry)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.insertAfterLast(Ea);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^
&lt;br&gt;4 errors
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;//----------------------------------------------------------------------------
&lt;br&gt;// ListTest.java - A test client for the List ADT
&lt;br&gt;//----------------------------------------------------------------------------
&lt;br&gt;class ListTest
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;private class Entry
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;int col;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; double val;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Entry next, prev;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Entry Constructor
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Entry (int c, double v) { col = c; val = v; next = prev = null; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;public static void main(String[] args)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;int i;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; List A = new List(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; List B = new List(2);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Entry Ea = new Entry(0, 0.0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for(i=1; i&amp;lt;=4; i++){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ea.col = i;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ea.val = Double.parseDouble(Integer.toString(i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A.insertAfterLast(Ea);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ea.val = Double.parseDouble(Integer.toString(10-2*i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.insertAfterLast(Ea);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ea.val = Double.parseDouble(Integer.toString(9-2*i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.insertAfterLast(Ea);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot; &amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Print Lists A and B which have been initialized&amp;quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;A = &amp;quot; + A);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;B = &amp;quot; + B);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-is-my-Java-Access-Call-Erroring-tp26088450s19691p26088450.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26053212</id>
	<title>Need help / review of Java Class Data Structure code</title>
	<published>2009-10-25T17:11:51Z</published>
	<updated>2009-10-25T17:11:51Z</updated>
	<author>
		<name>srbruno</name>
	</author>
	<content type="html">I need to know if my data structure classes have been properly created to accomplish the following:
&lt;br&gt;&lt;br&gt;I am trying to represent a matrix as a 1-dimensional array of Lists. &amp;nbsp;Each List will represent one row of the Matrix, but only the non-zero entries will be stored. &amp;nbsp;List elements must store the matrix entries and its column location. For example, the matrix below would have the following representation as an array of Lists.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0.0 &amp;nbsp; 4.0 &amp;nbsp; 5.0 &amp;nbsp; |
&lt;br&gt;M = &amp;nbsp;| 3.0 &amp;nbsp; 0.0 &amp;nbsp; 0.0 &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 1.0 &amp;nbsp; 0.0 &amp;nbsp; 2.0 &amp;nbsp; |
&lt;br&gt;&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; &amp;nbsp;1: (1, 1.0) (3, 2.0)
&lt;br&gt;Array of Lists &amp;nbsp;= &amp;nbsp;2: (1, 3.0)
&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; &amp;nbsp;3: (2, 4.0) (3, 5.0)
&lt;br&gt;&lt;br&gt;I have created two classes in different ADT files: &amp;nbsp;The Matrix class and the List class. &amp;nbsp;The goal is to create a two dimensional matrix as an array of Lists of Entry Objects. &amp;nbsp;More specifically, the Matrix will be an array of deque linked list of Entry Objects. &amp;nbsp;Only non-zero entries will be stored in the Matrix class. &amp;nbsp;Therefore, the linked list (representing the rows of the matrix) is dynamically created since the entries of the matrix can be entered in any order. &amp;nbsp;Entries are identified by their row, column, and value attributes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Matrix.java code:
&lt;br&gt;class Matrix
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;private class Entry
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;int col;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; double val;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Entry Constructor
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Entry (int c, double v) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.col = c; this.val = v;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;List.java code:
&lt;br&gt;class List
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;private class Node
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;Object obj;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Node next, prev;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Node Constructor
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Node (Object o) { this.obj = o; next = prev = null; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;// List Fields
&lt;br&gt;&amp;nbsp; &amp;nbsp;private Node front, back, current;
&lt;br&gt;&amp;nbsp; &amp;nbsp;private int row, length;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// List Constructor
&lt;br&gt;&amp;nbsp; &amp;nbsp;List(int r)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{ &amp;nbsp;front = back = current = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.row = r; this.length = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help---review-of-Java-Class-Data-Structure-code-tp26053212s19691p26053212.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25971709</id>
	<title>How to auto start Java application form browser</title>
	<published>2009-10-20T01:48:38Z</published>
	<updated>2009-10-20T01:48:38Z</updated>
	<author>
		<name>Marcin Z</name>
	</author>
	<content type="html">Hello, 
&lt;br&gt;&lt;br&gt;&amp;nbsp; I would like to create &amp;quot;desktop&amp;quot; application that is started similarly as &lt;a href=&quot;http://www.WebEx.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.WebEx.com&lt;/a&gt;&amp;nbsp;directly from web browser. Do you know what technology is employed into WebEx to achieve this goal in all web browsers (Internet Explorer, Safari, Fire fox) ? It is not simple Java Web Start. What are other options for me instead of JWS ?
&lt;br&gt;&lt;br&gt;Thank you and best regards, 
&lt;br&gt;&amp;nbsp; Marcin&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-auto-start-Java-application-form-browser-tp25971709s19691p25971709.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25757015</id>
	<title>Call a program on remote machine</title>
	<published>2009-10-05T14:10:03Z</published>
	<updated>2009-10-05T14:10:03Z</updated>
	<author>
		<name>kjaladi</name>
	</author>
	<content type="html">Hi, I am sorry if I am posting this question in a wrong forum. 
&lt;br&gt;&lt;br&gt;Could someone please provide me any reference on how we can connect to a remote machine and run a program using java?
&lt;br&gt;&lt;br&gt;I am new to Java, my question may sound basic. thanks for your time.
&lt;br&gt;&lt;br&gt;thanks.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Call-a-program-on-remote-machine-tp25757015s19691p25757015.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25727961</id>
	<title>java arrays</title>
	<published>2009-10-03T04:38:38Z</published>
	<updated>2009-10-03T04:38:38Z</updated>
	<author>
		<name>asp2801</name>
	</author>
	<content type="html">i have two arrays which will take numbers and no. of rows and columns fron method getArr()
&lt;br&gt;ifter that i want to ensure when no. of rows of first array = no. of rows of second matrix 
&lt;br&gt;&lt;br&gt;(and columns also) further code should be executed.
&lt;br&gt;code is:
&lt;br&gt;&lt;br&gt;int a[][] = getArr();
&lt;br&gt;int b[][] = getArr();
&lt;br&gt;int a1,a2,a3,a4;
&lt;br&gt;a1 = a.length; a2 = b.length;
&lt;br&gt;a3 = a[a1].length; a4 = b[a2].length;
&lt;br&gt;if( &amp;nbsp;(a1!=a2) || (a3!=a4) )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println (&amp;quot;Error in dimensions&amp;quot;); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;I'm getting ArrayOutOfBound exception
&lt;br&gt;is any wrong with above code ?&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java-arrays-tp25727961s19691p25727961.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25624909</id>
	<title>Upload javabean code needed.(That would take any file size)</title>
	<published>2009-09-26T05:45:18Z</published>
	<updated>2009-09-26T05:45:18Z</updated>
	<author>
		<name>Ifeanyi</name>
	</author>
	<content type="html">I have problem with file upload &amp;nbsp;that would take any file size in my javabean. I need a valid upload code and the any corresponding jsp for it&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upload-javabean-code-needed.%28That-would-take-any-file-size%29-tp25624909s19691p25624909.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25274179</id>
	<title>Re: String converting into Currency(Double)</title>
	<published>2009-09-03T04:33:10Z</published>
	<updated>2009-09-03T04:33:10Z</updated>
	<author>
		<name>Hagen Bognitz</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;you can tried like this:
&lt;br&gt;&amp;lt;code&amp;gt;
&lt;br&gt;String input = &amp;quot;1,158.67&amp;quot;; // your input string
&lt;br&gt;String modString = input.replace( &amp;quot;,&amp;quot;, &amp;quot;&amp;quot; );
&lt;br&gt;System.out.println( modString );
&lt;br&gt;&amp;lt;/code&amp;gt;
&lt;br&gt;&lt;br&gt;Output: 1158.67
&lt;br&gt;&lt;br&gt;now you can parse it to double.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/String-converting-into-Currency%28Double%29-tp24216475s19691p25274179.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25177038</id>
	<title>Lookup of EJB's deployed on Glassfish V3 fails from Eclipse RCP</title>
	<published>2009-08-27T11:01:08Z</published>
	<updated>2009-08-27T11:01:08Z</updated>
	<author>
		<name>Shahid123</name>
	</author>
	<content type="html">Trying to access an EJB deployed in glassfish v3 from Simple Eclipse RCP while I am including all the required jar files like appserv-rt.jar, appserv-ext.jar, appserv-deployment.jar, javaee.jar and gf-client.jar in Runtime classpath. From a simple java client I am able to lookup the ejb's just by after including gf-client.jar in classpath.
&lt;br&gt;&lt;br&gt;I am getting the following error. I am getting the same errors in simple java client if I not including gf-client.jar
&lt;br&gt;&lt;br&gt;&lt;br&gt;javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is java.lang.ClassCastException]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:164)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.naming.InitialContext.lookup(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.cord.server.mail.mainapp.handlers.StopMailserverHandler.execute(StopMailserverHandler.java:51)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:619)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:605)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent(CommandContributionItem.java:595)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.cord.server.mail.mainapp.Application.start(Application.java:20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
&lt;br&gt;Caused by: java.lang.ClassCastException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:258)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:136)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:220)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:159)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 36 more
&lt;br&gt;Caused by: java.lang.ClassCastException: Object is not of remote type com.sun.enterprise.naming.SerialContextProvider
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:250)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 40 more
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks &amp; Regards
&lt;br&gt;Shahid K.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Must-have-Java-J2EE-technologies-f19692.html&quot; embed=&quot;fixTarget[19692]&quot; target=&quot;_top&quot; &gt;Must have Java/J2EE technologies&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lookup-of-EJB%27s-deployed-on-Glassfish-V3-fails-from-Eclipse-RCP-tp25177038s19691p25177038.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25136623</id>
	<title>InputStream to File Object</title>
	<published>2009-08-25T08:29:16Z</published>
	<updated>2009-08-25T08:29:16Z</updated>
	<author>
		<name>Ashok Deivasigamani</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I have a jar, inside which I have a list of xml files in a folder.
&lt;br&gt;I used ClassLoader.getResourcesAsStream on that folder to get the byteInputStream of that folder.
&lt;br&gt;&lt;br&gt;How can I create a File Object for the retrieved byteInputStream. If we can create a File Object, can I be able to retrieve the xml files in that File Object.
&lt;br&gt;&lt;br&gt;Will this approch work, If we were to deploy this project as a war in a server
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InputStream-to-File-Object-tp25136623s19691p25136623.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24914820</id>
	<title>Re: general exception handling (jsf)</title>
	<published>2009-08-11T03:04:58Z</published>
	<updated>2009-08-11T03:04:58Z</updated>
	<author>
		<name>hrbaer</name>
	</author>
	<content type="html">I'm still having this problem.
&lt;br&gt;Does anybody has an idea?!?!
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;hrbaer wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;I'm not sure if this is the right forum but I'll give it a try ;)
&lt;br&gt;&lt;br&gt;I'm having a general question about the error handling.
&lt;br&gt;I have to deal with gui-exceptions (f.ex. during validation) but also with buisniss and/or server exceptions (f.ex. during processing some business logic or getting a hibernate exception because of a missaranged mapping)
&lt;br&gt;&lt;br&gt;Displaying and handling the gui exception is not the problem. But how to handle the other ones?
&lt;br&gt;&lt;br&gt;What I'm thinking of is a solution which catches all the business-exceptions and handle it (formatting for the gui, etc.). So I can throw an NullPointerExcpetion in my service method (no validation error) and feel confident that this exception gets catched in a central class and becomes handled.
&lt;br&gt;&lt;br&gt;Right now I'm trying with an abstract managed bean which covers all my managed beans. But I don't know what kind of method I have to implement to catch every exceptions...
&lt;br&gt;Another solution I was thinking of is to implement some listener.
&lt;br&gt;&lt;br&gt;I read that (in myfaces) you can declare an own ErrorHandler by adding the following lines in the deployment descriptor:
&lt;br&gt;&lt;br&gt;&amp;lt;context-param&amp;gt;
&lt;br&gt;&amp;lt;param-name&amp;gt;org.apache.myfaces.ERROR_HANDLER&amp;lt;/param-name&amp;gt;
&lt;br&gt;&amp;lt;param-value&amp;gt;my.project.ErrorHandler&amp;lt;/param-value&amp;gt;
&lt;br&gt;&amp;lt;/context-param&amp;gt;
&lt;br&gt;&lt;br&gt;Is there a similar solution for richfaces? And which method do I have to implement in this class to catch the exceptions?
&lt;br&gt;&lt;br&gt;I'm running out of ideas. So thanks in advance for any kind of help!!
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/general-exception-handling-%28jsf%29-tp24790714s19691p24914820.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24790714</id>
	<title>general exception handling (jsf)</title>
	<published>2009-08-03T06:20:11Z</published>
	<updated>2009-08-03T06:20:11Z</updated>
	<author>
		<name>hrbaer</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm not sure if this is the right forum but I'll give it a try ;)
&lt;br&gt;&lt;br&gt;I'm having a general question about the error handling.
&lt;br&gt;I have to deal with gui-exceptions (f.ex. during validation) but also with buisniss and/or server exceptions (f.ex. during processing some business logic or getting a hibernate exception because of a missaranged mapping)
&lt;br&gt;&lt;br&gt;Displaying and handling the gui exception is not the problem. But how to handle the other ones?
&lt;br&gt;&lt;br&gt;What I'm thinking of is a solution which catches all the business-exceptions and handle it (formatting for the gui, etc.). So I can throw an NullPointerExcpetion in my service method (no validation error) and feel confident that this exception gets catched in a central class and becomes handled.
&lt;br&gt;&lt;br&gt;Right now I'm trying with an abstract managed bean which covers all my managed beans. But I don't know what kind of method I have to implement to catch every exceptions...
&lt;br&gt;Another solution I was thinking of is to implement some listener.
&lt;br&gt;&lt;br&gt;I read that (in myfaces) you can declare an own ErrorHandler by adding the following lines in the deployment descriptor:
&lt;br&gt;&lt;br&gt;&amp;lt;context-param&amp;gt;
&lt;br&gt;&amp;lt;param-name&amp;gt;org.apache.myfaces.ERROR_HANDLER&amp;lt;/param-name&amp;gt;
&lt;br&gt;&amp;lt;param-value&amp;gt;my.project.ErrorHandler&amp;lt;/param-value&amp;gt;
&lt;br&gt;&amp;lt;/context-param&amp;gt;
&lt;br&gt;&lt;br&gt;Is there a similar solution for richfaces? And which method do I have to implement in this class to catch the exceptions?
&lt;br&gt;&lt;br&gt;I'm running out of ideas. So thanks in advance for any kind of help!!&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/general-exception-handling-%28jsf%29-tp24790714s19691p24790714.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24747133</id>
	<title>response.sendRedirect() working but doesn't redirect my page</title>
	<published>2009-07-30T13:53:55Z</published>
	<updated>2009-07-30T13:53:55Z</updated>
	<author>
		<name>Greg Corradini</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I'm into what seems to be a minor problem. But I can't resolve it.
&lt;br&gt;&lt;br&gt;I'm running Apache Tomcat 5.5 locally and FireFox 3.0. I have an HTML form POST data to a servlet that updates a database and then redirects traffic to a JSP page. The response.sendRedirect seems to be working if I watch FireBug. For example, after the POST the client receives a 302 response with a response HEADER for the JSP page I'm redirecting it to. Then the client fires off a GET request for the JSP page and receives a 200 OK mesasge. However, the page doesn't redirect. It remains on the HTML form. Any ideas?
&lt;br&gt;&lt;br&gt;Thanks to all that have advice&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/response.sendRedirect%28%29-working-but-doesn%27t-redirect-my-page-tp24747133s19691p24747133.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24715159</id>
	<title>Debugging tools available for memory leak and jvm crash</title>
	<published>2009-07-29T01:58:41Z</published>
	<updated>2009-07-29T01:58:41Z</updated>
	<author>
		<name>SaravananD</name>
	</author>
	<content type="html">Is there any Debugging tools available for memory leak and jvm crash. I need to see for our application where applet is loaded in IE and we want to see any memory leak is happening and sometimes for jvm crash.
&lt;br&gt;&lt;br&gt;Your help is highly appreciated on this &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Debugging-tools-available-for-memory-leak-and-jvm-crash-tp24715159s19691p24715159.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24689992</id>
	<title>Java and SQL Server</title>
	<published>2009-07-27T16:34:06Z</published>
	<updated>2009-07-27T16:34:06Z</updated>
	<author>
		<name>StephenDelport</name>
	</author>
	<content type="html">Hi there
&lt;br&gt;&lt;br&gt;We have a Java application that resides on a Tomcat server and attaches to our SQL Server database.
&lt;br&gt;Every so often the application slows down to a crawl.
&lt;br&gt;We have been monitoring all our services and other counters such as RAM, CPU and page filing and nothing seems out of the ordinary.
&lt;br&gt;Whenever the slow down happens I contact the SQL admin and ask if the system looks good.
&lt;br&gt;He reports that all counters all low and there is nothing on the server that is ringing any bells.
&lt;br&gt;I then ask him to restart the SQL Server and SQL Agent services which he duely does and voila! the application speeds up and starts perfoming properly.
&lt;br&gt;&lt;br&gt;So how is it that there is nothing wrong on the SQL server but restaring the services fixes the problem?
&lt;br&gt;&lt;br&gt;I was wondering if it had something to do with the Tomcat service that connects to the SQL box.
&lt;br&gt;Perhaps there is connection pooling or something that gets reset whenever the SQL services are restarted.
&lt;br&gt;&lt;br&gt;can anyone offer some advice?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Steven&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Java-and-SQL-Server-tp24689992s19691p24689992.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24307852</id>
	<title>Working with MSOffice files in Java</title>
	<published>2009-07-02T07:34:22Z</published>
	<updated>2009-07-02T07:34:22Z</updated>
	<author>
		<name>Serengety</name>
	</author>
	<content type="html">My team came across a Java solution which can do the following:
&lt;br&gt;&lt;br&gt;- replace strings in DOC files as in your example
&lt;br&gt;- convert DOC, XLS or PPT to PDF
&lt;br&gt;- read/write Excel files using simplified API like getCell and setCell
&lt;br&gt;- show/hide Excel sheets(like secondary calculations)
&lt;br&gt;&lt;br&gt;It is available on this page: &lt;a href=&quot;http://www.dancrintea.ro/doc-to-pdf/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dancrintea.ro/doc-to-pdf/&lt;/a&gt;&lt;br&gt;&lt;br&gt;The downside is that it needs OpenOffice also,
&lt;br&gt;but the good part is that I can do all the above operations over ms office files.
&lt;br&gt;&lt;br&gt;If possible, please share your possible tools and experience on processing MS Office files with Java.
&lt;br&gt;Thanks.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Working-with-MSOffice-files-in-Java-tp24307852s19691p24307852.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24216475</id>
	<title>String converting into Currency(Double)</title>
	<published>2009-06-26T01:05:03Z</published>
	<updated>2009-06-26T01:05:03Z</updated>
	<author>
		<name>nani2ratna</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I want to convert String to Currency.
&lt;br&gt;But i get the string in different formats.
&lt;br&gt;For example sometimes I get 1,158.67 and sometimes i get 1158.67.
&lt;br&gt;Both strings in need to convert to double by using parseDouble.
&lt;br&gt;&lt;br&gt;Is there any util methods for this.
&lt;br&gt;&lt;br&gt;Thanks and Regards
&lt;br&gt;RS.K&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/String-converting-into-Currency%28Double%29-tp24216475s19691p24216475.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24009194</id>
	<title>Code for square root</title>
	<published>2009-06-12T21:48:50Z</published>
	<updated>2009-06-12T21:48:50Z</updated>
	<author>
		<name>Howdoyoudo123</name>
	</author>
	<content type="html">Can someone please write a program in java that finds the square root of the number that is entered and for each line of code please write what the code does. Make sure its basic and not something advance. &lt;img class='smiley' src='http://old.nabble.com/images/smiley/smiley_good.gif' /&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Code-for-square-root-tp24009194s19691p24009194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23948846</id>
	<title>What are the best ajax/javascript/css framework/libraries out there for java these days?</title>
	<published>2009-06-09T11:32:34Z</published>
	<updated>2009-06-09T11:32:34Z</updated>
	<author>
		<name>mystic123</name>
	</author>
	<content type="html">What are the best ajax/javascript/css framework/libraries out there for java these days? GWT? Anything else? Basically something to do the type of ajax/dynamic functionality you'd see in wordpress, or like the grails ui stuff, but separate to be used with spring/hibernate.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What-are-the-best-ajax-javascript-css-framework-libraries-out-there-for-java-these-days--tp23948846s19691p23948846.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23942143</id>
	<title>Re: Simple question about boolean euations in JAVA</title>
	<published>2009-06-09T05:45:32Z</published>
	<updated>2009-06-09T05:45:32Z</updated>
	<author>
		<name>rambtechit</name>
	</author>
	<content type="html">String s = &amp;quot;true||false&amp;quot;;
&lt;br&gt;String[] vals = s.split(&amp;quot;\\|\\|&amp;quot;);
&lt;br&gt;Object a = (Object)vals[0];
&lt;br&gt;Boolean b = (Boolean)a;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Simple-question-about-boolean-euations-in-JAVA-tp23832589s19691p23942143.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23832589</id>
	<title>Simple question about boolean euations in JAVA</title>
	<published>2009-06-02T06:32:47Z</published>
	<updated>2009-06-02T06:32:47Z</updated>
	<author>
		<name>Glitch Machorevsky</name>
	</author>
	<content type="html">How do I go from this:
&lt;br&gt;String a &amp;nbsp;= &amp;quot;(true) || false&amp;quot;;	
&lt;br&gt;to this:
&lt;br&gt;System.out.println ((true) || false);
&lt;br&gt;?
&lt;br&gt;&lt;br&gt;&lt;br&gt;What I am asking is, how do I compute/parse the String so it can be calculated as a boolean expression.
&lt;br&gt;&lt;br&gt;THANK YOU!
&lt;br&gt;&lt;br&gt;PS
&lt;br&gt;I have found this as a possible solution: &lt;a href=&quot;http://jboolexpr.sourceforge.net/example.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jboolexpr.sourceforge.net/example.htm&lt;/a&gt;&lt;br&gt;However, I need something that does not involve implementing jar files and that is much much simpler. Something like:
&lt;br&gt;String a = &amp;quot;true || false&amp;quot;;
&lt;br&gt;boolean b = (boolean) a;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Simple-question-about-boolean-euations-in-JAVA-tp23832589s19691p23832589.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23817409</id>
	<title>downloading any type of file using servlet in IE (urgent)</title>
	<published>2009-06-01T09:02:15Z</published>
	<updated>2009-06-01T09:02:15Z</updated>
	<author>
		<name>atanud</name>
	</author>
	<content type="html">In my application , I want to download any type of files with &lt;b&gt;download dialog box &lt;/b&gt;where the content of the binary files are kept in oracle database under the blob format.
&lt;br&gt;While I am trying to download the file from a portlet (using servlet), it opens the contents in browser page for known type file(.doc,.txt,.html etc), &lt;b&gt;instead of giving an option for download in IE&lt;/b&gt;&amp;nbsp;. 
&lt;br&gt;&lt;br&gt;I am using IE 7.0.
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&lt;br&gt;Please find the servlet class
&lt;br&gt;***************************
&lt;br&gt;&lt;br&gt;public class DownloadReportServlet extends HttpServlet {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void doPost(HttpServletRequest req, HttpServletResponse res) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doGet(req, res);		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void doGet(HttpServletRequest req, HttpServletResponse res) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TCMDao dao = (TCMDao) DAOFactory.getDAO(&amp;quot;tcm-dao&amp;quot;);		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String uid = req.getParameterValues(&amp;quot;uid&amp;quot;);
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ReportDto report = (ReportDto) dao.get(uid);		
&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; &amp;nbsp; SimpleDateFormat dateFormat=new SimpleDateFormat(&amp;quot;dd_MM_yyyy_HH_mm_ss_SSS&amp;quot;);
&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; &amp;nbsp; String generartedTime = &amp;nbsp;dateFormat.format(report.getGenerationTime().getTime());
&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; &amp;nbsp; System.out.println(&amp;quot; Generated Time : &amp;quot; + generartedTime);
&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; &amp;nbsp; System.out.println(&amp;quot; Report Name : &amp;quot; + report.getName());
&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; &amp;nbsp; report.setFilename(report.getName() + &amp;quot;_&amp;quot; + generartedTime);			
&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; &amp;nbsp; 
&lt;br&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; res.setHeader(&amp;quot;Content-Disposition&amp;quot;, &amp;quot;attachement; filename=&amp;quot;
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + report.getFilename()+&amp;quot;.&amp;quot;+ report.getReportType());
&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; &amp;nbsp; res.setContentType(&amp;quot;application/octet-stream&amp;quot;);&lt;/b&gt;&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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OutputStream os = res.getOutputStream();
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InputStream is = report.getData();
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int read = 0;
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] bytes = new byte[1024];
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while((read = is.read(bytes)) != -1) {
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; os.write(bytes, 0, read);
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; os.flush();
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; os.close();
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is.close();
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (IOException ioe) {
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ioe.printStackTrace();
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;Thanks in Advance.
&lt;br&gt;&lt;br&gt;Atanu&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Must-have-Java-J2EE-technologies-f19692.html&quot; embed=&quot;fixTarget[19692]&quot; target=&quot;_top&quot; &gt;Must have Java/J2EE technologies&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/downloading-any-type-of-file-using-servlet-in-IE-%28urgent%29-tp23817409s19691p23817409.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23506709</id>
	<title>I am trying to build a Sudoku GUI using JFC and Swing but I don't see how I can use the basic components to achieve the Sudoku grid which is the most important facet of the GUI. Any help on this subject will be greatly appreciated.</title>
	<published>2009-05-12T10:43:42Z</published>
	<updated>2009-05-12T10:43:42Z</updated>
	<author>
		<name>TalEl</name>
	</author>
	<content type="html">&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/I-am-trying-to-build-a-Sudoku-GUI-using-JFC-and-Swing-but-I-don%27t-see-how-I-can-use-the-basic-components-to-achieve-the-Sudoku-grid-which-is-the-most-important-facet-of-the-GUI.-Any-help-on-this-subject-will-be-greatly-appreciated.-tp23506709s19691p23506709.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23486285</id>
	<title>Table view on web Page</title>
	<published>2009-05-11T09:01:28Z</published>
	<updated>2009-05-11T09:01:28Z</updated>
	<author>
		<name>XML User</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I need to show the data on webpage as a tabular fashion like excel on a web page.
&lt;br&gt;&lt;br&gt;Means, user can see all rows of the table and can update any rows and delete them like in excel or microsoft works database. This should be shown on a web page. Data should be saved to the Oracle DB.
&lt;br&gt;Usercase change the size of row or column and update rows or colums. Jst like you are adding/updating/deleting data on excel/access db/ works db.
&lt;br&gt;&lt;br&gt;If anyone out there know, how to implement this then please let me know.
&lt;br&gt;&lt;br&gt;I am using Struts 1.2, Tomcat 5.0 , Hibernate 3.2 , Elcipse 3.1, and Oracle 9i as backend.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Table-view-on-web-Page-tp23486285s19691p23486285.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23477008</id>
	<title>Exception in thread &quot;AWT-EventQueue-0&quot; java.util.NoSuchElementException: Vector Enumeration</title>
	<published>2009-05-10T21:34:38Z</published>
	<updated>2009-05-10T21:34:38Z</updated>
	<author>
		<name>mthalis</name>
	</author>
	<content type="html">i'm developing swing application using netbeans 6.5. one of my form this error happen.
&lt;br&gt;Inside showCutomerData &amp;nbsp;method there is a table and i assign values for table fields, and it happen using therad it show below
&lt;br&gt;&lt;br&gt;&lt;br&gt;/// table 
&lt;br&gt;public void showCutomerData(int states) {
&lt;br&gt;try { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CustomerQuery custQue1 = new CustomerQuery(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ResultSet rs1 = null; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String data[][] = new String[custQue1.customerCount(states)][2]; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rs1 = (ResultSet) custQue1.viewCustomer(states); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int x = 0; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (rs1.next()) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data[x][0] = rs1.getString(&amp;quot;customerNo&amp;quot;);
&lt;br&gt;&amp;nbsp;		data[x][1] = rs1.getString(&amp;quot;customerName&amp;quot;); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x++; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String tableHeader[] = {&amp;quot;Customer No &amp;quot;, &amp;quot;Cutomer Name&amp;quot;}; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DefaultTableModel model = new DefaultTableModel(data, tableHeader) {
&lt;br&gt;&amp;nbsp;	@Override public boolean isCellEditable(int x, int y) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false; } }; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabViewCus.setModel(model);
&lt;br&gt;&amp;nbsp;	TableColumn colou1 = tabViewCus.getColumnModel().getColumn(0); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TableColumn colou2 = tabViewCus.getColumnModel().getColumn(1); 
&lt;br&gt;} catch (Exception ex) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JOptionPane.showMessageDialog(null, ex);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//System.out.println(ex); }
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;here is thread code and call above method every 1 seconds.
&lt;br&gt;&lt;br&gt;//theard 
&lt;br&gt;public void run() {
&lt;br&gt;&amp;nbsp;	while (true) {
&lt;br&gt;&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; &amp;nbsp; showCutomerData(1); 
&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; &amp;nbsp; } catch (Exception e) {
&lt;br&gt;&amp;nbsp;			System.out.println(e);
&lt;br&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread.sleep(1000); 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (Exception e) { 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(e);
&lt;br&gt;&amp;nbsp;				} 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp;} 
&lt;br&gt;&lt;br&gt;&lt;br&gt;so after executing this code below exception throws,
&lt;br&gt;&lt;br&gt;//----------------------------------------------------------------------------------------------
&lt;br&gt;Exception in thread &amp;quot;AWT-EventQueue-0&amp;quot; java.util.NoSuchElementException: 
&lt;br&gt;Vector Enumeration at java.util.Vector$1.nextElement(Vector.java:305) 
&lt;br&gt;at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(BasicTableHeaderUI.java:755)
&lt;br&gt;at javax.swing.JComponent.getPreferredSize(JComponent.java:1632) 
&lt;br&gt;at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:78) 
&lt;br&gt;at java.awt.Container.preferredSize(Container.java:1581) 
&lt;br&gt;at java.awt.Container.getPreferredSize(Container.java:1566) 
&lt;br&gt;at javax.swing.JComponent.getPreferredSize(JComponent.java:1634) 
&lt;br&gt;at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:702) 
&lt;br&gt;at org.jvnet.substance.SubstanceScrollPaneUI$AdjustedLayout.layoutContainer(SubstanceScrollPaneUI.java:551) 
&lt;br&gt;at java.awt.Container.layout(Container.java:1398) 
&lt;br&gt;at java.awt.Container.doLayout(Container.java:1387) 
&lt;br&gt;at java.awt.Container.validateTree(Container.java:1485) 
&lt;br&gt;at java.awt.Container.validate(Container.java:1457) 
&lt;br&gt;at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:670) 
&lt;br&gt;at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127) 
&lt;br&gt;at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) 
&lt;br&gt;at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) 
&lt;br&gt;at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
&lt;br&gt;&lt;br&gt;&lt;br&gt;//----------------------------------------------------------------------------------------------
&lt;br&gt;Exception in thread &amp;quot;AWT-EventQueue-0&amp;quot; java.lang.ArrayIndexOutOfBoundsException: 0 &amp;gt;= 0 
&lt;br&gt;at java.util.Vector.elementAt(Vector.java:427) 
&lt;br&gt;at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277) 
&lt;br&gt;at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTableHeaderUI.java:654) 
&lt;br&gt;at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(BasicTableHeaderUI.java:698) 
&lt;br&gt;at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(BasicTableHeaderUI.java:727) 
&lt;br&gt;at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(BasicTableHeaderUI.java:758) 
&lt;br&gt;at javax.swing.JComponent.getPreferredSize(JComponent.java:1632) 
&lt;br&gt;at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:78) 
&lt;br&gt;at java.awt.Container.preferredSize(Container.java:1581) 
&lt;br&gt;at java.awt.Container.getPreferredSize(Container.java:1566) 
&lt;br&gt;at javax.swing.JComponent.getPreferredSize(JComponent.java:1634) 
&lt;br&gt;at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:702) 
&lt;br&gt;at org.jvnet.substance.SubstanceScrollPaneUI$AdjustedLayout.layoutContainer(SubstanceScrollPaneUI.java:551) 
&lt;br&gt;at java.awt.Container.layout(Container.java:1398) 
&lt;br&gt;at java.awt.Container.doLayout(Container.java:1387) 
&lt;br&gt;at java.awt.Container.validateTree(Container.java:1485) 
&lt;br&gt;at java.awt.Container.validate(Container.java:1457) 
&lt;br&gt;at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:670) 
&lt;br&gt;at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127) 
&lt;br&gt;at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) 
&lt;br&gt;at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) 
&lt;br&gt;at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) 
&lt;br&gt;at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) 
&lt;br&gt;&lt;br&gt;plz help me,what are those errors,i used several try catch but i couldn't catch those exception
&lt;br&gt;thanks..
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Exception-in-thread-%22AWT-EventQueue-0%22-java.util.NoSuchElementException%3A-Vector-Enumeration-tp23477008s19691p23477008.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23456635</id>
	<title>Re: Regarding usage of configuration files</title>
	<published>2009-05-08T20:12:40Z</published>
	<updated>2009-05-08T20:12:40Z</updated>
	<author>
		<name>dhawken</name>
	</author>
	<content type="html">This should not be a performance/code design question.
&lt;br&gt;&lt;br&gt;There should not be a performance concern with using multiple files. There is nothing precluding your properties management class(es) from being able to access multiple files - in fact, they probably should. &amp;nbsp;No matter how many files you have, they should each only be loaded into memory once per jvm. &amp;nbsp;
&lt;br&gt;&lt;br&gt;You could in theory still have one static class that handles all requests for properties. &amp;nbsp;It may have multiple maps inside, corresponding to the properties file organization you choose. &amp;nbsp;Whether you have multiple files or one, the code that accesses properties should know nothing about that.
&lt;br&gt;&lt;br&gt;On that subject of organization you choose, that is about the only decision here. &amp;nbsp;If you really feel that your properties do not easily break down into multiple modules, then perhaps go with one. &amp;nbsp;My feeling is go with multiple, although that's just for an organization and maintenance point of view.
&lt;br&gt;&lt;br&gt;just my thoughts&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Regarding-usage-of-configuration-files-tp23313267s19691p23456635.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23435616</id>
	<title>Re: Car Java Question</title>
	<published>2009-05-07T14:25:43Z</published>
	<updated>2009-05-07T14:25:43Z</updated>
	<author>
		<name>dhawken</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I must then test removing the passengers. like so:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public boolean removePassenger(Person person){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (method) It receives a person and removes it as a passenger. If the 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; person is also the driver, then the driver seat becomes available
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (that is, it is set to “null”). The method fails if the person is 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; “null”, or if he/she is not a passenger.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Any and all help is greatly appreciated! &amp;nbsp; If there is any important information I left out that you need to answer the question let me know.
&lt;br&gt;Thanks,
&lt;br&gt;CGagnon
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Hey, why an Array for the &amp;quot;holder&amp;quot; of passengers? &amp;nbsp;Do you need to keep track of which seat a person is a passenger is in? (array loc could indicate seat). &amp;nbsp;Even still, I would probably recommend a parameterized List or Collection. &amp;nbsp;The insertion and removal criteria can be handled automatically by overriding equals() on Person, and the using contains(), insert(), remove() etc and the like on whatever List/Collection you choose. &amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Car-Java-Question-tp23296144s19691p23435616.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23393196</id>
	<title>Time out while printing</title>
	<published>2009-05-05T11:21:49Z</published>
	<updated>2009-05-05T11:21:49Z</updated>
	<author>
		<name>monesseldeur</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I've made a small webapplication (JSP and servlets) which sole function is to print pdf-files on request. To centralize printing, users print from one location whenever printers are available.
&lt;br&gt;&lt;br&gt;The amount of printjobs can vary from a single job to dozens. Even so the number of pages printed can vary from a single one up to some hundreds of pages.
&lt;br&gt;&lt;br&gt;Everything works well for the &amp;quot;small&amp;quot; jobs, but when I start printing multiple large files the first one is allright, but the second produces unreadable characters. I suppose I get some kind of session time out when printing the jobs as the jobs are handled one-by-one.
&lt;br&gt;&lt;br&gt;How do I solve this problem? I've thought about using a new thread for every printjob. Does anyone has any other sugesstions?
&lt;br&gt;&lt;br&gt;Thanks a lot and looking forward for your answers.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Time-out-while-printing-tp23393196s19691p23393196.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23313267</id>
	<title>Regarding usage of configuration files</title>
	<published>2009-04-30T03:05:17Z</published>
	<updated>2009-04-30T03:05:17Z</updated>
	<author>
		<name>sreedharl</name>
	</author>
	<content type="html">Hi All, I need to take a design level decission in using configuration files and request to provide your inputs on this. 
&lt;br&gt;&lt;br&gt;My product is having a single configuration file covering the basic configurations. While using this for a project the no of lines in this configuration file is exceeding 4000 lines. 
&lt;br&gt;&lt;br&gt;So my collegues comming back and suggesting to have this configuration file to be splitted into mutiple. 
&lt;br&gt;&lt;br&gt;But my concern here is that if we split the configuration files, it will be difficult in handling mutiple files and tracking on what configuration goes into which of configuration files will be very difficult
&lt;br&gt;&lt;br&gt;Also to my view its better to have a single configuration file as this file gets loaded only once into memory and that way increase performance when compared with using many configuration files.
&lt;br&gt;&lt;br&gt;Request to provide your thoughts on the same.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Sreedhar
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Regarding-usage-of-configuration-files-tp23313267s19691p23313267.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23313262</id>
	<title>Regarding usage of configuration files</title>
	<published>2009-04-30T03:04:38Z</published>
	<updated>2009-04-30T03:04:38Z</updated>
	<author>
		<name>sreedharl</name>
	</author>
	<content type="html">Hi All, I need to take a design level decission in using configuration files and request to provide your inputs on this. 
&lt;br&gt;&lt;br&gt;My product is having a single configuration file covering the basic configurations. While using this for a project the no of lines in this configuration file is exceeding 4000 lines. 
&lt;br&gt;&lt;br&gt;So my collegues comming back and suggesting to have this configuration file to be splitted into mutiple. 
&lt;br&gt;&lt;br&gt;But my concern here is that if we split the configuration files, it will be difficult in handling mutiple files and tracking on what configuration goes into which of configuration files will be very difficult
&lt;br&gt;&lt;br&gt;Also to my view its better to have a single configuration file as this file gets loaded only once into memory and that way increase performance when compared with using many configuration files.
&lt;br&gt;&lt;br&gt;Request to provide your thoughts on the same.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Sreedhar
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Regarding-usage-of-configuration-files-tp23313262s19691p23313262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23296144</id>
	<title>Car Java Question</title>
	<published>2009-04-29T10:07:49Z</published>
	<updated>2009-04-29T10:07:49Z</updated>
	<author>
		<name>CGagnon</name>
	</author>
	<content type="html">I am trying to make a program that will first create a car which is an array and then load passengers into the car. &amp;nbsp;Now for the part I am having trouble with. &amp;nbsp;Before I can put the passenger (which is passed in from a test class) into the car I must first check to see if the person is already in the car, if they are, I don't put them in, if they aren't already in the car I need to find and empty seat and put them in it. &amp;nbsp;This is what I have so far for the loading.
&lt;br&gt;&lt;br&gt;public class Car
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; private Person[] Passengers;
&lt;br&gt;&amp;nbsp; &amp;nbsp; private int maxcap;
&lt;br&gt;&amp;nbsp; &amp;nbsp; private int occupancy;
&lt;br&gt;&amp;nbsp; &amp;nbsp; private Person Driver;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; public Car(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (constructor) It creates a small car seating 4 people.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Passengers = new Person[4];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxcap = 4;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;occupancy = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Driver = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; public Car(int aCapacity){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (constructor) It creates a car whose capacity is set by 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the parameter given. If the parameter is not from 4 to 8 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then the closest value should be used; for example, if an 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; occupancy value of 2 is given then the car’s occupancy will 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; be set to 4.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(aCapacity &amp;lt;= 4){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxcap = 4;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if(aCapacity &amp;gt;= 8){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxcap = 8;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Passengers = new Person[maxcap];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; occupancy = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Driver = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; public int getCapacity(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (method) It returns the maximum capacity of the car.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return maxcap;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; public int getOccupancy(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (method) It returns the current number of passengers.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return occupancy;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; public boolean addPassenger(Person person){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (method) It adds a person as a passenger. The method fails if the 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; person to add is “null”, if the person is a passenger already, or 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if there is no room left in the car to add it.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(person==null){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (occupancy &amp;lt; maxcap){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int i=0;i&amp;lt;maxcap;i++){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int j=0;j&amp;lt;maxcap;j++){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(Passengers[j]==person){
&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; &amp;nbsp; return false;
&lt;br&gt;&amp;nbsp; &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; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(Passengers[i]==null){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Passengers[i] = person;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&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; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;I must then test removing the passengers. like so:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public boolean removePassenger(Person person){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (method) It receives a person and removes it as a passenger. If the 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; person is also the driver, then the driver seat becomes available
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (that is, it is set to “null”). The method fails if the person is 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; “null”, or if he/she is not a passenger.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Any and all help is greatly appreciated! &amp;nbsp; If there is any important information I left out that you need to answer the question let me know.
&lt;br&gt;Thanks,
&lt;br&gt;CGagnon&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Car-Java-Question-tp23296144s19691p23296144.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23142072</id>
	<title>google api in java for geocoding</title>
	<published>2009-04-20T11:16:21Z</published>
	<updated>2009-04-20T11:16:21Z</updated>
	<author>
		<name>anubhavxp</name>
	</author>
	<content type="html">Hi I am looking for a geocoding api in java for google maps? where i can enter the apporx address and get their lat n long. Any inputs? &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/google-api-in-java-for-geocoding-tp23142072s19691p23142072.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22659827</id>
	<title>Eclipse and projects</title>
	<published>2009-03-23T06:10:49Z</published>
	<updated>2009-03-23T06:10:49Z</updated>
	<author>
		<name>devarde</name>
	</author>
	<content type="html">I have one project that I am using Java3D, but in my machine I have two OSs, Linux (Slackware 12.2) and Windows (Vista). I have Eclipse installed on both, but I want to setup the project to include on Classpath the jars of java3D, but I want this configuration works equal on both systems. The path I have to the Jars on Windows is something like that E:/AnotherFolder/Windows/Java3dJars the path for Linux is something like that /mnt/temp/AnotherFolder/Linux/Java3dJars Detail: E: and /mnt/temp are the SAME directory, because E: is a partition alone to share with both systems, therefore, E:/AnotherFolder/Windows/Java3dJars is equal to /mnt/temp/AnotherFolder/Windows/Java3dJars Is there any possibility for me doing that?
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-Questions-f19697.html&quot; embed=&quot;fixTarget[19697]&quot; target=&quot;_top&quot; &gt;Java Questions&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Eclipse-and-projects-tp22659827s19691p22659827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22620767</id>
	<title>Java / J2EE Developer -3 years in Chennai</title>
	<published>2009-03-20T06:55:13Z</published>
	<updated>2009-03-20T06:55:13Z</updated>
	<author>
		<name>Surendran</name>
	</author>
	<content type="html">Urgent Requirement: Java / J2EE Developer -3 years 
&lt;br&gt;&lt;br&gt;Exp &amp;nbsp; &amp;nbsp;: 3 Years,
&lt;br&gt;&lt;br&gt;Salary : More then current CTC,
&lt;br&gt;&lt;br&gt;Location &amp;nbsp;: Chennai.
&lt;br&gt;&lt;br&gt;Company &amp;nbsp;: CMM - Level
&lt;br&gt;&lt;br&gt;Java/J2EE - EJB,JSP,Servlet,RMI,Corba,JINI,SOAP
&lt;br&gt;&lt;br&gt;Server : &amp;nbsp;Weblogic/Websphere/Tomcat.
&lt;br&gt;&lt;br&gt;OS &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp;Unix/Linux /Sunsolaris.
&lt;br&gt;&lt;br&gt;IDE &amp;nbsp; &amp;nbsp; : &amp;nbsp;Netbean / Eclipse / JCreater
&lt;br&gt;&lt;br&gt;Report : &amp;nbsp;Jasper Report
&lt;br&gt;&lt;br&gt;Framework &amp;nbsp; : Struts.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Contact Person : Sarathi
&lt;br&gt;&lt;br&gt;Send your Profile : Surendran@exfidus.com
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Java-J2EE-Job-opportunities-f19696.html&quot; embed=&quot;fixTarget[19696]&quot; target=&quot;_top&quot; &gt;Java/J2EE Job opportunities&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Java---J2EE-Developer--3-years-in-Chennai-tp22620767s19691p22620767.html" />
</entry>

</feed>
