Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Nick St-Peter

Greenhorn
+ Follow
since Feb 12, 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 Nick St-Peter

Hi,

You might want to ask this question in a non-websphere specific forum...

Have a nice day,

Nick
8 years ago
Hi!

I have been using the request metrics websphere sends to the SystemOut.log file to evaluate page performance (does it take less than 3 seconds to be produces, etc...) and find the pages/EJB calls, etc... that took the longest to be processed.

That was fine when I had to do it occasionally and for one server at a time but now I am being asked to produce stats for more than one server daily... Essentially these stats are to be used to see if we meet our SLA (a certain percentage of pages must load under 3 seconds**)

Modifying my small small program would most likely be possible but my boss wants to avoid an in-house solution as much as possible.

I am now trying to find a program that can be automatized and provide me with the stats I am asked to produced.

I doubt one actually exist but I was asked to check if there's an open source one but if there's none a commercial solution would be acceptable too...

Thank you!

Nick


** I know that is not necessarily the best way to evaluate app/page application performance but that the one I was asked to use.
8 years ago
Hi!

I have a JMeter test that used to work with an in-house JSF application which, for some unknown reason, no longer works.

The application in question uses IBM's variant of JSF 1.1 (there are currently no plan to update it).

Even though I knew that the view state information is kept server side I tried added a regex extractor to extract a possible view state client-side and as expected that did not make any difference.

I also have a cookie manager in case this had anything to do with cookies and that did not make any difference either.

I tried resniffing the test using JMeter's proxy feature and that did not work either...

I am now out of ideas, can anybody suggest what I could try next?

Thank you!

Nick
9 years ago
Hi!

Somebody bundled, into an otherwise entirely ASP and vbscript application we use at work, an applet called MenuLynx...

This applet unfortunately doesn't support 1.6 because of a bug it contains which is now detected by an additionnal check that was added in 1.6.

re: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6278745 .

Does anybody knew if a drop-in (or close to) version of this applet which doesn't exhibit this problem exists somewhere on the web?

The thing was apparently released as freeware in 2001 by Bruce Stone of Stoneware Enterprises. Even with this info I haven't been able to track down an updated version of this applet (which I have as .class files only and don't quite how to access it (its API)).

Thank you,

Nick
10 years ago
It most definitely has quirks you won't find elsewhere...

Thank you very much for your help!

Nick
11 years ago
Hi!

I was wondering if there was a way to provide a customized error message when a regex doesn't match with IBM's flavor of JSF (on Websphere 6.1).

Something like "noMatchMessageDetail" with ADF Faces...

I know it would work with a validator (either a separate one or one in the bean) or by using a different message bundle but the validator is somewhat overkill for my needs and replacing the default message by using a different resource bundle produces a message that's too generic...

Thank you for your help!

Nick
11 years ago
JSF

Originally posted by Paul Clapham:
Did you try both of them?

Although I have to say, I wouldn't expect mail clients to render a complicated structure like that consistently anyway. Hotmail and Lotus Notes don't always agree on how to render a message.



I did the multipart/alternative that contains a multipart/related and it worked with everything I tried so far except an old Mozilla mail client.

Talking of Lotus Notes we do use it here and when I sent the multipart/alternative that contains a multipart/related to Lotus Notes and then forwarded it back to that Mozilla mail client it worked and I noticed that Notes had instead sent a multipart/related that contains a multipart/alternative...

With Mozilla Thunderbird both ways work so I don't know if it's a quirk of that old Mozilla mail client or not...

(And both ways seems to work with other MUAs as well)

I must confess that I am a little wary of using one over the other just based on the testing I can do with the MUAs (mail clients) I use (or can use to do some tests) and I must confess that I find the multipart/related that contains the multipart/alternative a little unnatural (but maybe I'm misunderstanding their use).

Thank you for your help!

Nick
11 years ago
Hi!

I have a problem having consistent results (same rendering regardless of MUA) sending an email that has both a text/plain part, a text/html part, a few pictures that the text/html part must show and attach a PDF to the end result...

The problem seems to be related to how I embed each part together...

Is the multipart/related part supposed to contain the multipart/alternative one (which would contain the text/plain and text/html part) and the pictures or is the multipart/alternative part supposed to contain a text/plain part and a multipart/related part which would contain the text/html part and the pictures?

The end result is then put into a multipart/mixed and the PDF file is attached then to it.

I've seen examples of both and I'm wondering which one is the "correct one"...

Thank you!

Nick
11 years ago
Hi,

I never said I agree with doing it that way...

I actually disagree with both the ACL and trying to mess around with the IPs in order to make these ACLs work...

The external network security (what kind of ACL they put over web services and things like that) we have no control over it since it is not on our network, it's on/provided by one of our "partners".

We were able to make that "partner" relax their rules somewhat but not enough to my taste, I am pretty sure even what we were able to get as far as relaxed rules will cause problems in the future..

The reason why I am still looking into trying to change the IP for outbound traffic is because my boss insists on it, not because I actually consider it to be a good idea...

From a technical standpoint I do know that this kind of thing is usually doable though I am not quite sure what would be involved to do it with Websphere/Java. If changing one or more settings in Websphere is all that's required that would still be somewhat acceptable but if each call to an outside service (be it a web service or any other kind of communication) must be redirected somehow then that is no longer acceptable as far as I am concerned... The risks involved (forgetting to do it in some situations for example) would far outweigh the advantages (none, at least on our side, as far as I am concerned).

If it's truly that important to separate the traffic then two (physical) servers should be used (but that will never be done for $ reasons...).

I am involved in both network administration and application maintenance and I know this will be a PITA to work with (for both the techs and the programmers...).

Have a nice day,

Nick
[ February 13, 2008: Message edited by: Nick St-Peter ]
12 years ago
Hi Kyle!

I've not yet started programming anything, I'm trying to figure out if something we were asked to do is actually feasible...

Is it possible (at the Websphere level or elsewhere) to assign an IP address to the outbound traffic made by an application?

Let's say I want to run an application (the same) under two different application servers, server1 and server2 (both of these servers are on the same pc which has two IP addresses).

If the application runs on server1, I want it to use 172.16.1.1, if it runs on server2, I want it to use 172.16.1.2...

I not only want to talk to the two servers using these IP addresses, if I query an external web service I want the web service to see 172.16.1.1 if it's the application in server1 and 172.16.1.2 if it's the application that runs on server2...

The reason is that the external web service will only permit me to talk to the web service the application on server1 must talk to if the traffic comes from 172.16.1.1 and to the web service the applications that runs on server2 must talk to if the traffic comes from 172.16.1.2.

Is there any way to do this?

Thank you very much for your help!

Nick
12 years ago
Hi!

I was wondering if it's possible to bind both the Websphere server and any request it does to one IP?

Binding the server itself to one IP seems possible by changing the wildcard with an IP in the HTTP transports and a few other places but how does one change which IP the code that runs in the server uses?

(Let's say I want to access a web service using Axis or simply to an http request to another site, etc...

Thank you!

Nick
12 years ago
Yhank you very much!!!

This proved to be very useful...

Have a nice weekend!

Nick
13 years ago
Hi!

Is there a known good tutorial showing how to to MVC with Swing?

I'm looking for something that shows code samples and explain how the model, view and controller interact with each other...

I've googled on the Net and I had found something which was closed to what I was looking for but one of my colleagues (who is a web programmer) told me that he doesn't believe what I had found implemented MVC correctly).

The screen I have to do is pretty simple and I could get away with not doing it in a very MVC way but I wanted to do it the right way...

What I found on the web had a separate controller and view but I though I had read that with Swing the controller and view were supposed to be together so I'm no longer quite sure what I'm supposed to do...

As you can guess I'm a newb whose boss told him to write a screen in Swing and I've already took more time on this than I was supposed to do (I had warned him that I was sure that it would take me more time but the bottom line is the same, I've already took more time than I was supposed to)... If I knew how to do Swing I might have been able to do it in the time he gave me but there's way too many things I have to learn at the same time...

Thank you!

Nick
13 years ago
Hi!

Thanks for the reply...

We are using HTTPS which makes using a "sniffer" or "sniffer-like" tool somewhat difficult I believe...

It works now but I needed to patch Axis because the way Axis sends cookies (separatly) is not compatible with the way "something" (SSL accelerator I guess since we didn't have the problem before they activated it) expects to receive cookies (all on the same line, separated with semi-colons). When I was trying to mimic this format Axis was remapping the semi-colon to a comma...

It looks (according to what I read) like neither Axis nor the SSL accelerator/.NET supports the full specs as far as cookies are concerned as it seems like these are all acceptable ways to send cookies...

We're still trying to find alternate solutions as using a patched library is not something we want to do if we can avoid it...

Thank you and have a nice day!

Nick
13 years ago
Hi!

Does anybody know of anything that explains how to communicate with a .NET web service from Java (especially something that deal with cookies and sessions?).

Thanks!

Nick
13 years ago