Kareem Gad

Ranch Hand
+ Follow
since Aug 06, 2001
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 Kareem Gad

I realize this must be quite late, but just in case nobody ever got a work around for this, this is how we figured it out here.

On WLS9.2 you need to create the JMS store / server / queues while the server still does not have any application that is trying to consume these resources. Meaning, you should create all your JMS stuff on the server, do a restart to ensure freshness of the configuration, then deploy your EAR/WAR/JARs that consume the JMS resources.

Note : It was quite a while back but just remembered to update this post when someone asked me from another team.
12 years ago
Hi Manoj,

I am having the same problem and I figured that I need to Initialize the MDB explicitly. It keeps showing me that MDB status is "initializing".

When I tried to Resume or Suspend the MDB, it told me "the destination is not available".

It is strange to say that the destination is not available as my producer can submit successfully to the Queue destination and I confirm that by checking the console and seeing that a new message is now in the queue.

Following are the settings on WLS 9.2:
JMS Module :
Name Type JNDI Name Subdeployment Targets
BatchQueue Queue ebp/jms/qd/BatchQueue JMS eBPJMSServer

Here are my MDB deployment descriptor excerpts:
-- ejb-jar.xml


-- weblogic-ejb-jar.xml



Where else can I look given the above ?
14 years ago
Hi Manoj,

I am having the same problem and I figured that I need to Initialize the MDB explicitly. It keeps showing me that MDB status is "initializing".

When I tried to Resume or Suspend the MDB, it told me "the destination is not available".

It is strange to say that the destination is not available as my producer can submit successfully to the Queue destination and I confirm that by checking the console and seeing that a new message is now in the queue.

Following are the settings on WLS 9.2:
JMS Module :
Name Type JNDI Name Subdeployment Targets
BatchQueue Queue ebp/jms/qd/BatchQueue JMS eBPJMSServer

Here are my MDB deployment descriptor excerpts:
-- ejb-jar.xml


-- weblogic-ejb-jar.xml



Where else can I look given the above ?
14 years ago
Hi all,

Thanks for your suggestions. I have come around resolving this using the approach suggested by Jeanne of redirecting to the action that created the form blank in the first place.

Ofcourse needing to handle clearing the session appropriately when doing so.

-K
15 years ago
I am quite interested to know if there are some general guidelines (better yet frameworks) to follow when in position of getting handed over source code of a completed project by a vendor.

My question does not ask what should the vendor provide during the process, rather how should I as the reciever of the source code archive this. In a practical manner rather than opting for a duplicate process of re-iterating the software specifications & screen shots and so on.

The objective of handing over this source code could range anything from, the need to modify features in the software in the future away from the vendor, to adding new subsystems to the current system perhaps re-using core components of the current system.

I would like someone to elaborate on this discussion, we can share thoughts for the benefit of everyone.
15 years ago
This must be really simple but I just can't get the hang of it.

I have a normal struts form that performs the validate method, if there are errors it returns back to the same jsp page that has the HTML form. Struts being lovely also pre-populates the fields with the data from the Struts Form object now in session.

I need to click on the "reset" or "clear" button on that form and be able to clear out all the fields of the form just like standard HTML reset behaviour.

When I try that the fields that were pre-populated to the HTML form do not clear out. What can i do to overcome this, other than the manual way of having a javascript that can go and clear each and every field in the form manually.

Consider a form with just too many fields to do that !

I hope this has been addressed by someone before..
15 years ago

Originally posted by Paul Sturrock:

And thanks for taking the time to post your solution.



... it's a matter of respect

I get my solutions here in the saloon .. it's the least i can do ...

<--- just being silly
15 years ago
Hi Paul,

No we are using Oracle 10g so the version's not an issue. It's the oracle developer "know-how" here that IS ... which confined us to the only working solution they came up with to show arabic out of windows-1256 encoding.

Anyway... I resolved the issue.. pheeeww ... after 2 long all-nighters!!

Turns out there was a default character set defined on the webserver through which i was accessing the application (deployed on the application server behind) on the staging environment.

The default encoding from the webserver was overriding whatever i set through my application. Let's just say it had the LAST word. So my strings ended up getting double encoded whenever i tried anything.

I fixed that and now all works fine. As i want/expect it to.

Note: for people who might reach this topic in the future I am talking about the AddDefaultCharSet directive which could be set in apache's httpd.conf

If you happen to be using another webserver check the documentation for that webserver on how to set the default encoding.

I'm a happy man
[ September 13, 2006: Message edited by: Kareem Gad ]
15 years ago
Hi All.. it's been a while since i've posted anything (lazy me) ..
I am posting this on the advanced forum as I did not find any other appropriate forum to ask ..

I have a dilemma of encoding .. in short :

A web application is required to save arabic data to an oracle database. Later an oracle report is run to display this data.. should display correctly ofcourse.

Long version:

on my development machine (weblogic8.1 on windows):
-web application using struts reads data input from a normal form, encoding set as windows-1256.
-web application saves data to database as windows-1256
-oracle report runs and reads data correctly. (NLS_LANG setting on Oracle report server is AMERICAN_AMERICA.AR8MSWIN1256)

deploying this same code to staging machine (weblogic8.1 on solaris):
-web application using struts reads data input from a normal form, encoding set as windows-1256.
-web application sees arabic form data as ??? (question marks)
-web application saves data to database as windows-1256 (but ofcourse only question marks get saved)
-oracle report runs and reads data correctly. (naturally just question marks appear) (NLS_LANG setting on Oracle report server is AMERICAN_AMERICA.AR8MSWIN1256)

Obviously on Solaris somehow the windows-1256 encoding is not understood for some reason. Although this page mentions how this encoding is supported with JVM 1.4.2 on all platforms, Solaris included.

I decided not to go down that unknown path of researching the differences between the JVM on my windows machine and on solaris and all the environment variables related.

Instead I decided on the approach of doing everything UTF8 (form -- submitting to struts application -- manipulating within the application) until the last step before writing to the DB, to convert that string from UTF8 to Cp1256 (which is windows-1256) ..

I need to write 1256 into the DB as this is (until further notice from our oracle developers team) the only way to read arabic properly with their current set up. They can't read UTF8 properly and are working on it.

Back to me, I'm having trouble doing that conversion the from UTF8 to Cp1256 of my strings before writing them to the DB.

Any hints ... even on a direction i should follow ?

Much appreciated ..
15 years ago
Got it figured out!

It was a configuration issue on apache for the SSL, where the CA certificate key file was configured with the property name SSLCertificateChainFile, while when we checked previous versions of the configuration we used to put it with the property SSLCACertificateFile when we did that we got it fixed.

Now another error :

In one way or another it says "Certificate missing Basic constraints extensions"

Anyone have any idea why this is happening ?
15 years ago
I know this is a verrry basic problem with SSL but please bear with me.

We have a client that connects to a secure webservice and was working fine till the certificate on the server machine was due to expire so it was renewed and setup on the webserver. The certificate on the webserver is :
+XXX global root
+XXXX Certificate Authority
+XXXXX CA
+www.xx.com


Now on the client machine I just saved the certificate from the browser when accessing the secure page of the server into a .cer file. This saved the "www.xx.com" certificate alone. I imported that using the keytool into the keystore that the client application refers to for the SSL Handshake.

I keep getting the above mentioned error!! I've tried everything from adding the whole chain of certificates onto the client's keystore to make sure I chain all the way to the root one but still nothing.

Any ideas what I am missing or where can i start looking again. Really appreciate anything here
15 years ago
Hi Gagan,

I know what you mean, but for reasons beyond our understanding (usually called "business requirements") they think they need an improvement on the 2 day job. Perhaps when it's faster they might think of using it on a more frequent basis or whatever.

Besides the domain of the problem I'm interested to hear your insights on the general approach towards resolving such an issue.
15 years ago
Each log file is .gz xml document, size of the gz file is 12K. But as I've recollected from the situation after 1month, these log files accumulate from 8 servers to a total size of 1.5Gigs but all in the form of those 12K zipped files.

There's the overhead of unzipping them then reading them (either as plain text or parsing the XML) .. I think if read as plain text will save on the overhead of reading each file but parsing into XML can be very beneficial when analyzing the files at the next stage.

I think it is wise to go for a "measure first" approach at this stage it will certainly provide with alot of input into the overall architecture and approach.

I guess I'll need to measure the overhead of :
- reading the gzip files
- uncompressing it
then either
- reading the xml document as a plain text file
or
- parsing the xml document into a DOM or SAX model whatever

then I need to sample the overhead of the analysis algorithm on
- the plain text array
or
- the xml parsed object


Would you suggest I sample a single file and just do the calculations to reach the expected volume or to just increase the sample.

I know I need to also measure the overhead of sending object references to the multiple actors over the network thru the chosen framework (SALSA).

Anything I missed ?
[ February 12, 2006: Message edited by: Kareem Gad ]
15 years ago
Some info & pre-requisites
-They have a constraint on network shares so log files will have to SSH'd to a single file server before we start
-I've decided to give it a go with SALSA
-the SALSA framework defines "Theaters" & "Actors", read more about them at the SALSA homepage.

The algorithm I have in mind :

- arrange for copying the log files from the 8 servers to a single file server (let's call it FSX).
- a "maestro" application starts identifying the period required for the report.
- "maestro" will identify the list of log files on FSX that are related to this period.
- depending on the number of log files & number of available Theaters the "maestro" will instantiate a proportionate number of file reader threads.[assuming a many-to-one relationship between log files and file readers]
- file readers will read files and prepare them into byte arrays.
- each file reader will create a FileGroupAnalyzer (FGA) actor on available theaters and pass on the byte array of each log file read to that group analyzer.
- the file group analyzer will divide the work to separate FileAnalyzer (FA) actors, which will do the actual work of locating the pattern being searched for and counting it.
- the FGA recieves the responses from each FA and consolidates them preparing them to be sent back to the "maestro"
- the maestro recieves the responses from each FGA and consolidates them and prepares them for being presented appropriately as the requested report.


I need to know what are the downfalls of this approach and where i can tweak/tune it for performance my primary objective.
15 years ago
Hi Bill,
I think you are absolutely right on both counts, first that it is way too slow to report on various virus attacks, secondly they could have just opted for certain weekly reports and then sum up the values every month to reduce the big hassle. BUT after speaking with them about this turns out that the report is only needed once a month.

They apparently have other mechanisms to follow up with virus attacks this is just for administrative purposes.

I'm posting in the next message my view on the approach to take and let me know what you think.
15 years ago