This week's book giveaway is in the Functional programming forum.
We're giving away four copies of Functional Design and Architecture and have Alexander Granin on-line!
See this thread for details.
Win a copy of Functional Design and Architecture this week in the Functional programming forum!

C Balajee

Greenhorn
+ Follow
since Oct 18, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by C Balajee

I think the First Pattern is a Builder and the Second is a Decorator.
The Second Cannot be Template Because If the Builder would have Extended the Template then the house would have already been in order.

Nice puzzle..

cheers
Balajee
Is the good Free XML Editor plugin for eclipse,
It should provide features like formatting, auto element completion, Tree based view..
Can any one suggest any plugin???
Is the good Free XML Editor plugin for eclipse,
It should provide features like formatting, auto element completion, Tree based view..
Can any one suggest any plugin???
Thank you Blake,
That article really helped
regards
C Balajee
19 years ago
I want to compile a .Java file into a . Class file at runtime.
Is it possible???
I want to do this through java only.
thanks for the ammswers in advance
C Balajee
19 years ago
Hi All,
I have this following requirement. I have a url for and Image. I want to write an Java Program which will make an URL Connection to that file read that file and recreate it in my hard disk.
I have written the following program..
but The file created on my drive is blurred... Its not recreating the full GIF Image..
Please do help..
My Code.
=======================================
public static void main(java.lang.String[] args)
{
// Insert code to start the application here.
System.out.println("Started the process");
System.getProperties().put("proxySet", "true");
System.getProperties().put("proxyHost", "MyproxyServer");
System.getProperties().put("proxyPort", "81");
try
{
URLConnection urlConn =
new URL("http://site.com/3572f15.gif")
.openConnection();
InputStreamReader isr = new InputStreamReader(urlConn.getInputStream());
OutputStreamWriter osw =
new OutputStreamWriter(new FileOutputStream("C:/oracle/img.gif"));
if (contentLength == -1)
{
//do nothing.
}
else
{
char buffer[] = new char[contentLength];
isr.read(buffer);
osw.write(buffer);
osw.flush();
}
isr.close();
osw.close();
System.out.println("Completed the process");
}
catch (Exception e)
{
System.out.println("Error Occurred " + e.toString());
e.printStackTrace();
}
}
==============================
thanks in advance..
C Balajee
[ February 12, 2002: Message edited by: C Balajee ]
19 years ago
I have installed Websphere 3.5 on RedHat Linux 6.2
I wanted to deploy EJB's on to this application server.
I have EJB jar files(Not Deployed Jar) of my session beans.
I use the "Create EJB" wizard to create my session bean.
As soon as i select my jar file for install. I an asked for "whether i require WLM?" I don't require WLM so i only opt for "Deploy Only".
After i do this a popup shows that
"EJB Jar Deployed Sucessfully"
But on the property sheet it still says
"Enterprise Bean Deploying..."
the above message remains forever and no bean is added to the container.
But if i try the same procedure with a Deployed Jar file of the bean, the process goes ahead.
I would be really grateful if any one can help me out on this.
regards
C Balajee
19 years ago
This is my correct post..
You can try the following code in other JSP's or servlets..
session.getAttribute("email");
this will return an object which you need to cast to your connection pool.
the variable "session" is readily available with JSP Pages..
But in servlet you need to call
requestObject.getSession(true/false)
Hope this helps...
regards
C Balajee
sorry for the inconvinience..
Hi Bosun,
I also aggree that closing the conection will in turn close the statement and the resultset.
By "closing" you must mean that that the particular statement/resultset is not available for further use..
My query is what will happen if a reference to the closed resultset still exists in the memory..??
Will the connection pool manager of WebSphere release the connection for further use??
regards
C Balajee

Note..
Disregard the previous post that was meant for a different thread..
sorry Guys,
I posted the wrong reply in the wrong thread...
regards
C Balajee
Hi Bosun,
I also aggree that closing the conection will in turn close the statement and the resultset.
By "closing" you must mean that that the particular statement/resultset is not available for further use..
My query is what will happen if a reference to the closed resultset still exists in the memory..??
Will the connection pool manager of WebSphere release the connection for further use??
regards
C Balajee
You can try the following code in other JSP's or servlets..
session.getAttribute("email");
this will return an object which you need to cast to your connection pool.
the variable "session" is readily available with JSP Pages..
But in servlet you need to call
requestObject.getSession(true/false)
Hope this helps...
regards
C Balajee
Hi,
I have this following query ...
I have a Connection wrapper class which when instantiated gets a connection from a datasource and stores it into a class level variable.
Throughout the lenghth of my transaction i use this connection to execute my database queries.
I have also written a wrapper for the "Resultset" Generated from execution of a query. This class takes "java.sql.ResultSet" object in its constructor and stores it into a "class level variable" and thyen retreives data from the resultset to populate an hash table.
Now the problem is
As my transaction is completed i close the connection in my connection wrapper class by and explicit call to the "close()" method of the connection object.
But the resultset wrapper that i created early still resides in the memory and so does the "class level reference" to the resultset object.
Now i want to ask
If by closing the connection do i effectively close the resultset object too?(Eventhough there are references still in the memory to it)
If so then the connection now needs to be released?
But if i look at my database server i see that no connection is released..... And this leads to a shortage of connections and no further connections are available to me.(Eventhough no work is currently going on.).
Does the references to the resultset object create these problems???
looking for ward to any help and suggestions
regards
C Balajee
Hi,
Can you specify which appServer are you using it may be possible that you would require to append the jar file in the class path of the appserver rather than tghe web application.
Description of the appserver would be helpful.
If you are niot sure about that an easy way is there.
Extract the jar file into the webapplication's "servlets" directory.
This may also solve your problem.
regards
C Balajee
Its giving me
"invalid escape sequence" error
when i try to run this snippet of code
Is there any other way...
Thanks again.
20 years ago