Manoj Singh

Ranch Hand
+ Follow
since Aug 10, 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 Manoj Singh

HI,

We have a webservice hosted on weblogic which sends decsions to another vendor . Recently the vendow started supporting French Characters so we decided to internationalize our service. For that we set the system property weblogic.webservice.i18n.charset=utf-8 property in startWeblogic.sh . But for some reason the vendor is complaining that we are sending a ISO-8859-1 character encoding and so he is not able to parse the response correctly. Can someone help me as to where else and how can we make sure that we are sending a UTF-8 encoding in our SOAP messages.

Thanks
Manoj
15 years ago
First of all Thanks for your reply.... what u r saying is that it is possible to create a stand alone Listener .... what I am not able to understand is how will that program get the message....I mean there is no concept of container here ....do I have to run that program at intervals or make a cron job which runs it or what ?
15 years ago
HI,

I am in a situation where I have to write a java Program which listens on an MQ Queue. The functionality should be same as that of an MDB. I could have gone for an MDB but due to lack of resources cannot have an app server on the box where this java program will be deployed. I know this can be done but need some references to be able to do that. I will really appreciate if some one can point me in the right direction.

Also I need to know where can I download IBM's latest MQ API for Java.

Thanks
Manoj
15 years ago
I am running into an IO error which is something like this
<b>build.xml [290] IO error scanning directory C:\routeOne\src\wsdd\syncdiag</b>
<b> Line 290 for my build.xml is this ....
<pre><copy todir="${dist-syncdiag}/WEB-INF">
<fileset dir="${routeone.SYNC_WSDD_LOC}">
<include name="web.xml"/>
<include name="${routeone.WSDD_FILE}"/>
</fileset>
</copy>
</pre>
</b>
I have no idea why am I getting this...someone please help me..
Thanks
Manoj
16 years ago
Hi guys !
This is the exception I am getting while attempting to connect to a DB2 database...

SQL Exception caught: COM.ibm.db2.jdbc.net.DB2Exception: [IBM][JDBC Driver] CLI0614E Error sending to the socket, server is not responding. SQLSTATE=08S01

Can anyone tell where exactly the problem lies...I mean my code or something to do with the server ???
ThanX
Manoj
Hi Yogen !
Thanks mate !! it worked !
Manoj
Yes you can ! you just have to use two different Connection objects .

Originally posted by Yogen Vadnere:
check for case sensitivity also


Yogen !
All the values in this particular column are digits so that issue doesn't apply here.
ThanX
HI !
I must mention this that when I am just substiting value[0] with a some harcoded value say "53435" which exists in the table ..it is working perfectly. So that's why I thought there is some problem with the equals only !!!
ThanX
Manoj

Originally posted by Yogen Vadnere:
I guess following code will work..
while (rsConstituent.next()) {
String num = rsConstituent.getString("Constituent_Id");
int tempInt = java.util.Arrays.binarySearch(value,num)
if(tempInt < 0)
System.out.println("Not found");
else
System.out.println("found at "+tempInt);
}


HI Yogen !
I did try your code but it is just printing Not found for all the rows, where as I am sure I have atleast 10 records which should match.
ThanX
Manoj

Originally posted by shilpa kulkarni:
What is not working, I mean, what is the error?
You can use the equals() method with String, String is an object.


The error is that the loop is not working the way it is intended to ...for instance even if the value[0] is same as num it is still going to the else block...???
Thanks Shilpa !

HI Guys !~
Before looking at the code below let me explain somethings here.
I am parsing a flat file and storing values for each column(of single line) in a temporary array called "value[]".
Now I have to insert these values in my database depending on the fact that the record exists or not in the database.
So I am comparing the first column value, which is contained in value[0] with the primary key field value of my
relevant table("Constituent_Id" in this case). If it exist it skips that line in flat file and if doesn't than inserts
that record.
Now my problem is very basic here, the code which I am using for finding out whether the key value is already there in the database is given below but it's not working. One reason which I feel is that method 'equals()' can only be used with Object parameters, where as 'value[0]' is String here..I don't know if I am correct but I cannot figure out how to go about. Please give me some clue on how to do it?
The main idea is to get the loop working properly after that I can put in any statement within the if block

while (rsConstituent.next()) {
String num = rsConstituent.getString("Constituent_Id");
if (num.equals(value[0])) {
out.println(num);
} else {
out.println("no");
out.println("This is:" + value[0]);
}
}


LEGEND: value[] -- is a String array


ThanX
Manoj
HI Tony !
Thanks for the help ! Now it is working ..as I changed "forward" to "include", though the parameters which I am passing still remain the same !! and so does everything else.
ThanX again
Manoj
18 years ago
HI guys !
I am passing my control from a servlet to a jsp page using RequestDispatcher..this is the code I am using..
RequestDispatcher rd = getServletContext().getRequestDispatcher("/jsp/parseResult.jsp");
rd.forward(request,response);
I am getting this error :
javax.servlet.ServletException: non-HTTP request or response
please advise me onnhow to slove this problem ! I would appreciate any help !
ThanX
Manoj
[This message has been edited by Manoj Singh (edited October 08, 2001).]
18 years ago
Hi guys !
Can any one tell me where to store my applet class in order to access it in my jsp page(in Visual Age for Java). I have tried most of the directories.
ThanX
Manoj