Nijeesh Balan

Ranch Hand
+ Follow
since Oct 09, 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 Nijeesh Balan

It has been quite sometime since i refreshed my j2ee. I was having a discussion with one of my friends. I was telling him that if one has local ejb's and then later on decides that the server has to be clustered and the ejb / web layers are going to be in separate servers. I told him, the code has to be modified to change the local ejbs to remote ejb's (i.e) EJBLocalHome has to be changed to EJBHome so on and so forth. But he strongly denied it. he says it should just be a matter of changing the ejb-jar.xml.
Can somebody clarify?
Thank you very much Ernest for referring the Sun's tutorial. However,when I was going through the tutorial there was a mention of

The KnockKnockClient program also specifies the port number 4444 when creating its socket. This is a remote port number--the number of a port on the server machine--and is the port to which KnockKnockServer is listening. The client's socket is bound to any available local port--a port on the client machine. Remember that the server gets a new socket as well. That socket is bound to a local port number (not port 4444) on its machine. The server's socket and the client's socket are connected


I din't quite clearly understand what this actually meant. Does this mean for each port there can be multiple sockets(so to say, local port numbers) in each machine?
So when would Server / Client would receive an exception "Port already used up" ?
Hi All,
I was running the examples supplied by Javaworld - Socket. In this example, there is a server and client program.
I have the server running in one jvm
I start the client on another jvm post requests to server. I get the feedback from the server and the client program ends. Now, if i start the client again then the server doesn't respond back.
If i kill the server and start over again everything works properly
Any ideas what the problem is? I always thought if the socket is closed by a client then the socket is freed for further requests. Did i get something wrong?
Hi All,
We have set "testOnBorrow" parameter to TRUE for Connection Pool. The validation query is executed multiple times. Eventhough the query is not much costly, I just wanted to get your opinions, if this is really required. (i.e) to check if the connection is valid everytime when we borrow it from the pool?
Won't it throw an exception by nature(when we try to execute regular queries) if the connection object had gone stale / invalid for whatever reason. It seems to me, the validationQuery doesn't solve much purpose.
Please let me know your thoughts on this.
I cannot change the folder settings . Since it is not under my control.
18 years ago
Hi All,
I want to execute a exe from command line through java. I have the following code snippet..

But it throws the following error, when i read the errorstream from the process
'C:\Program' is not recognized as an internal or external command
Do anyone have a better way of doing this?
18 years ago
Thank you very much...
[ March 02, 2004: Message edited by: Nijeesh Balan ]
18 years ago
Thanks for the reply Geoffrey...
But the problem is I cannot change class Test1. I have the accessiblity to make modifications only in Test2.
18 years ago
Hi All,
I have a situation here... say there are two classes Test1.java and Test2. java
I want to find the classs[es] which created the Test2 object. Is it possible to find this from ClassLoader etc.,?


Any help would be appreciated.
18 years ago
Hi All,
We have a huge java application. Sometimes we experience database locking problems which we feel is because of db commit / rollback not being handled properly in the code. Is there a way, that this can be detected? some wrapper class or something of that sort which can log if db commit or rollback has not been invoked for insert/update/delete statements.. it would be helpful if u can give some example code.
we have a multi-threaded program which uses log4J. So when the information is logged it is intermingled in the logfile and becomes difficult to track which thread executed what.
Is it possible to achieve some level of coherence?
Or is it atleast possible to do some customization(say, add thread no.,) before writing to the log file to track (something unique to a thread).
Any help would be highly appreciated.
Hi,
I am using Eclipse 2.1, JBoss 3.2.1 and Lomboz plugin. I was trying add a ejb finder method using @ejb.finder tag in the Bean class..
When i try to deploy the bean, it throws the following exception.

but when i looked at the ejb-jar.xml, it has the query tag with the method parameters and the ejb-ql. I don't understand y this exception is popping up. Any clues?
this is wat i defined in the bean class.
18 years ago
The communication is planned to happen through sockets.
Hi All,
We are developing a J2EE project. In our system we have to interact with the Mainframe system and it has been decided the data communication between the application server and Mainframe is through XML. Can you suggest a good framework for this kind of requirement?
Any help would be appreciated.
Hi All,
We have a set of html and swf files. which is the best way to distribute those files to different servers?
If you have some inputs please let me know.
is it better to create a self-extractable zip file.. will it b secured?
18 years ago