An Sush

Ranch Hand
+ Follow
since Jan 17, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by An Sush

Hi,

I am new to portal world and totally new to JSF (although have very basic knowledge) as well. I have to develop couple of JSF portlets to be run on Weblogic portal server. If someone has link or resource to a simple "hello world" JSF portlet deployd/configured on weblogic, please share me the same. I am in dire need to get the portlet up and running.

Appreciate the help.

Thanks,
An
13 years ago
Hi,
I am new to spring batch framework. I have to implement batch in my application so as to download records to a flat file in case search results are more than 5000. The restrictions are I have to avoid making any db changes as datamodel is freezed. I was going through the spring batch documentation and found that few metadata tables like Batch_Job_Execution, Batch_Job_Instance, Batch_Job_Params and Batch_Step_Execution are mandatory.
Cant I get rid of these tables and still implement batch? Kindly reply soon
Thanks,
An
14 years ago

Paul Clapham wrote:Who says the difference is 2 days? It's more like 1.0416667 days by my calculation.

But maybe An Sush doesn't like my calculation. That's no problem, it just means that An Sush has to define the correct calculation. But until that's done we can only post guesses here, and that isn't very helpful.



I guess going with Priety's approach is fine..Dividing by 3600 will give me the exact days that have passed by after a time and not the calendar date...
Just out of curosity..suppose we had to go with the other way around where finding the calendar date difference is the prime target and actual time has no significance...how can this be implemented so that it works for all the scenarios (date, time, leap year, month all taken into consideration)
15 years ago
Hi All,
I have two date fields in database and I get them in my java as java.sql.Timestamp type variable. What is the best way to find the days difference between the 2 timestamp variables? (find no of days in between the 2 timestamp variables)?
Thanks,
An
15 years ago

Vinod K Singh wrote:What is specific about WAS? Did you tried generic webservices tutorials? They should work on WAS as well. Find out the web services related supported by the WAS version you are trying.



Well honestly i didn't find any WebServices tutorial online....so I am not sure if WAS implementation is different or same...please guide me to some docs
15 years ago
Hi All,
I know its very basic question and may annoy lot of boarders. But I was hunting net and couldn't find proper documentation/help to write/develop webservices code for WAS server. Please paste me the links which will help me in generating WS code.
Thanks,
An
15 years ago
Hi all,
I am using latest eclipse (3.5) Galileo which comes with WAS 6.0 runtime support..when i clicked New Server>Download additional server adapters, it doesnt search for WAS 6.1
Any help me letting me configure WAS 6.1 on eclipse will be highly appreciable
Thanks,
An

Rob Prime wrote:
Please http://faq.javaranch.com/java/UseRealWords



I appreciate the Forum's initiative to promote usage of real words and avoid short forms..
But policing this way is no way out..I am sure you will find better work.
15 years ago
Hi All,
What does the following line of code means?

Does it load some system library or native code?
Wat is test in the above code? some dll file? (on windows) and is there no need to mention the file extension?
Shd i have this dll (or whatever file ext) places in my classpath while executing the java class? or is there some other mechanism?
15 years ago

Misha Ver wrote:How about adding print="yes" attribute to your call?

<sql driver="com.ibm.db2.jcc.DB2Driver" password="db2inst1" url="jdbc:db2://localhost:50000/itsdb" userid="db2inst1" output="/root/Desktop/testConn_out_2.log">



Thanks for the help!!! it worked
15 years ago

Misha Ver wrote:Does this code return any values without ANT?


Do you have a permissions to write to /root/Desktop/testConn_out_2.log ?

Remove "output" attribute and see if ANT would return anything


Here is the output:

Yes its creating the file /root/Desktop/testConn_out_2.log if not present so i obviously have permissions. Even if i turn off output, results dont change
15 years ago
Hi All,
I know this is a basic question but I am struggling to get the output of <sql> task in ant.

I have the above task and I run a simple query to get me the db2 version. On running the task, console prints:

Buildfile: /root/Desktop/build/build.xml
test:
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully
BUILD SUCCESSFUL
Total time: 10 seconds


And the output file testConn_out_2.log is blank. I even tried passing the same sql as <transaction> node (commented out above) but without luck.
Please help me in running this simple sql and read the output of the sql to some variable inside the task itself

Thanks in anticipation,
An
15 years ago
I have read and tried whats given in javaworld. I wonder its not because of buffer overflow but because Runtime isnt able to recognize sqlplus command.
So as a workaround i created a shell script (.bat for windows) and then wrote the sqlplus command in the script file
then i ran the script file using Runtime.exec(). It ran fine finally
15 years ago
I have to run a sql command on sqlplus inside java. So i have this simple sql:

Now, I run this sql using Runtime.exec:


This hangs somewhere and doesnt output anything.. I even tried uncommenting the following line
but no use

When i check the process, i see that its still running:


Kindly help me. It seems the process is still active and hence no output comes. I have given exit in the sql file still no use

In short, I want to run a sqlplus sql script using Runtime.exec()
15 years ago
Hi All,
I have a file which i want to replace with another one. Say /opt/IBM/installedApps/WebApplication.ear is to be replaced by /root/Desktop/NewFile.ear. Is there simple File operation to do so?
Or the only way is to delete the existing file, create a new file with the same name and read byte by byte from NewFile.ear and write in the newly created file?
15 years ago