Jay Ram

Ranch Hand
+ Follow
since Dec 13, 2005
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 Jay Ram

Thanks again for your response Don.
9 years ago
Thanks for the response Don.

The reason I was not using FileOutputStream is because if I understand right, I have to give a file name in that case. Since this is an online application, I dont want to create files in the server. I just want to receive it as bytes and pass it to the calling application.

Please let me know if there is a way I can do this without explicitly using a file name..

thanks.
9 years ago
I wrote a small snippet to achieve this.. Can anybody comment if this looks okay..
Or shd I use a different OutputStream..

I am also trying to get info on how my calling app writes the data to the stream.. All I know for now is that I'll get a pdf file thro an OutputStream.

Thanks.
--------------------------

>
9 years ago
Hello,
I have a method that I need to call that would return a pdf image. But instead of anything being returned from the method, the method writes to a outputstream that is passed as a parameter.

The method signature:
public void getPDFFile(inputParams, OutputStream stream)

My problem is I am again a intermediate application where I need to read the stream and pass it to my calling app as byte array. My calling app cannot pass the outputStream.

How can I achieve this?
Can BufferedOutputStream be useful for this?

Appreciate any help on this..

Thanks.
9 years ago
Hello,
I am trying to call a webservice using SSL. I generated a test client using RAD6 which generated the code and the necessary deployment descriptors

My ibm-webservicesclient-ext.xmi and ibm-webservicesclient-bnd.xmi look like this.




where ssl/MYSSL is the SSl cerificate configured int he server. This is called from a webmodule in my application.
The SSL certificate is configured correctly as I have another call using the same certificate from an ejb module of my application which works fine.

My problem is when I am making a call to the webservice, the SSl name I have specified is not passed. On looking at the server traces, I see that the default SSl setting is being passed; not the one I have set in the descriptor.

In my application logs, I get an error:
WSWS3713E: Connection to the remote host xxx.yyy.yyy.com failed.Received the following error: Handshake terminated SSL engine: CLOSED

Can any of you please look at this and let me know if I am missing something.

Please let me know if you need any more information.

Thanks,
Raji.

11 years ago
I looked at the java console; no errors for the applet there.. No errors int he server logs/application logs. I see nothing useful in the event viewer..

I looked in the task manager to see if it is taking too much memory / CPU.. Doesn't look like..

Anything else I can look at?

The weird thing is sometimes, it crashes; sometimes not.. It is very unpredictable..

Thanks a lot Eric for your time..

-Jay.
Hello,
I have an application which opens a popup window and the popup window has an applet in it..

The popup window works fine; but sometimes, 1 out of 5 times, when the popup window is opened, it looks like it is opening and then all of a sudden, both the parent and the child window closes automatically...

Any idea why..

Thanks for listening..

-Jay.
Thats a good idea. Will do that.

Thanks!

-Jaya.
Eric,
The solution you had propesed seems to work; but sometime, the parent and the child window closes by itself.. Any clue why this would happen..
My code now is



Thanks a lot for your time..

-Jay.
Thanks for your immediate response Eric. I'll try this.

Thanks,
Jay.
Hello,
I am trying to open a popup window. I am getting a javascript error saying body is null or not an object..
The twist is it doesnt happen all the time.. it happens may be 1 out of 5 times..
Can anybody please help?

Thanks,
Jay.

Hi,
I need a enum object; but the values in the enum may vary dynamically from time to time according to the values in the database.

Can a Enum class be dynamically created? If so, Can you please provide a small example.

Thanks,
Jay.
12 years ago
I am using db2. Will my sql affect db2?

if so, whats the alternative?

Pls advise.

Thanks,
Jay.
select * from account where ltrim(rtrim(acct_no)) like '123'

works!!

Thank you all who took time to look at this.

-Jay.
Thanks for the quick response.
The problem is I am using sqlj and i have 6 optional criterias like this.

So, in that case, i'll have to multiple sqls.

Thats the reason I was asking..

-Jay.