Jolly Ag

Greenhorn
+ Follow
since Oct 30, 2002
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 Jolly Ag

Hi
im getting a strange problem while using exec() method of Runtime .
Im trying execute a java process thru exec() but if i assigned return tpye(Process) of exce() then my java process doesnt start ..means
if i use Process process =Runtime.getRuntime().exec("java A")then A doesnt start but if i use like ...
Runtime.getRuntime().exec("java A") then A gets started ..
???
tx
17 years ago
Hi
I am getting following mesg when i try to lookup jdbc resource ..
"Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial "
I declare jdbc resource in server.xml as follows
<Resource name="jdbc/Loneifso817DS" auth="Container"
type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/Loneifso817DS">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc racle:thin:192.168.1.222:1521:suresh8i</value>
</parameter>
<parameter>
<name>username</name>
<value>survey</value>
</parameter>
<parameter>
<name>password</name>
<value>survey</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
i think i need to specify jndi props
Can somebody pls help me out
Tx
17 years ago
... ya its right to touch the jsp to get correct response ,but i want to know that if time stamp get decreased than why it doesnt complied again ,i mean is there any resion behind this type of implementation ?
tx again
17 years ago
Hi Friends ,
Im facing a problem in Tomcat ,
if I replace a jsp with old time stamp than i still get response from old jsp ,its because jsp only gets compiled when its modification time gets increased but if modification time gets decreased than no compilation again !!!
i like to know why its happen so ,,its a bug or else .
Tx
17 years ago
sorry man to post my question in two groups .
Actually my mean to say "incomplete input stream"
is that suppose the Process gives 10 lines of mesg & suppose it takes 2 sec for it & when i try to read it than it give sometime 5 lines ,sometimes 6 lines and sometimes all lines ie it is very uncertain in case of NT (although im using sleep before reading them(mesg)),,,but in case of Linux it alwyas give me all lines of mesg.
thanx.
17 years ago
Hi friends
I'm facing a strange problem,,, as im starting a process thru Runtime.exec(),which return me this Process object ,this process is a server which takes some time to start completely ,now im getting this process input stream thru process.getInputStream() after using Thread.sleep(x)so that my process can be started completely ,
This works nice on linux(means it gives me complete inputstream) but when i try to execute it on NT it gives me uncomplete inputstream and its vary time to time .
can anybody please help me out ..
Tx.
17 years ago
Hi friends
I'm facing a strange problem,,, as im starting a process thru Runtime.exec(),which return me this Process object ,this process is a server which takes some time to start completely ,now im getting this process input stream thru process.getInputStream() after using Thread.sleep(x)so that my process can be started completely ,
This works nice on linux(means it gives me complete inputstream) but when i try to execute it on NT it gives me uncomplete inputstream and its vary time to time .
can anybody please help me out ..
Tx.
17 years ago
tx. Sam
I suppose if will be better rather than switch
18 years ago
Thanx Nayan
but performance wise which is better choice
18 years ago
Hi Friends
Actually i have hundreads of cases , out of them multiple can be true ... my confusion is that wheather i shud use switch of if ... can somebody please tell me .
tx
18 years ago
Hi Friends ;;
I have a problem that i want to write something into Standard Input stream of a java program from another java program ,can anybody give me any idea abt this.
Tx.
18 years ago
Hi Friends
I need to call a java program from another java program ...can u friends please tell me how i can do it .
Tx.
18 years ago
Hi Friends,,
Here I have some confusion that what r the differences(iff any) between General bean and Bean that use in JSP as never use General Bean .
Thanx in Advance
18 years ago
JSP
Hi friends
I have made entity bean and also written down ejb-jar.xml,jaws.xml . what else i need to deply it on jboss . Please give me some idea abt this .
thanx
Hi Friends ,,
Will u ppl please tell me why session bean doesnt have unsetEntityContext() .
thanx