Win a copy of Spring Boot in Practice this week in the Spring forum!

Mohammad Akon

+ Follow
since Jul 17, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohammad Akon


I have two instances of JBOSS running on two different physical boxes (e.g. and on the same network and JMS is configured to listen on port 10099. I also created a topic. On the servers' front there is a load balancer ( which is actually dispatching all the incoming request to the different boxes in a round robin fashion. I've visibility only to the load balancer not to any of the app servers (I can only send request to it). I used a sample application to send messages to the JMS queue. But I am getting the following error:


The configuration I made:

The client code

Any suggestion on the resolution will be highly appreciated.



P.S. My sincere apology if its a repost. In that case please forward me the original post.
10 years ago

James Sabre wrote:

Paul Clapham wrote:

However if you're trying to extract data from a log file on a timely basis, it would be more practical to modify the logging so that you didn't have to hack the log files. For example if you were using log4j you could use its appender which sends data to a socket, and write a socket listener which would then receive the logs directly.

The Log4j site has appenders for publishing to Multicast (unreliable but pretty fast) and for JMS (reliable). Of course one would need a JMS server to use JMS but there are several free ones out there.

But the problem is I do not have access to the available logger(s). Some the third party applications are generating the log files and I do not know what kind of logger they are using and cannot do any computation with them. All I have are the few log files. And yes, I'll be populating msgs to a remote JMS Queue for further msg consumption.
11 years ago

fred rosenberger wrote:would that work if someone edits the middle of the file? or is that something you don't need to worry about?

The updates are always appended to the end of file (they are log files to be precise).
11 years ago
Hello all,

I am developing an application that is monitoring the files (text files only) within a directory. The monitoring part is fine (thanks to threads on file watch). But is there an "efficient" way to capture the modifications made to those files (I need those changes to for reporting)? By efficiency I tried to mean....not going through the whole file again an again and looking for changes....may be using some sort of time-stamps/tag to identify last read line from the files and then read to the EOF?

May be there are other posts on the same topic but unfortunately I could not find them. Would appreciate if anyone can shed some light.

Thanks in advance.

11 years ago
Hi All,

Not sure if this is the right place for this kind of post!!

I am using Lists.asmx web service within my Java Client to retrieve data ((list of files with their attribute such as Name, author, Date Modified, etc.)) from the sharepoint server. The attributes associated with each list item are displayed as a column header in the sharepoint server. For example:

Sharepoint allows the user to change the column headers, e.g. I can change column header "MyColumn" to "YourColumn".

To do this I am sending the following soap request:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
<GetListItems xmlns="" >
<listName>Test Area</listName>
<Query xmlns:ns2="" xmlns="">
<OrderBy><FieldRef Name="FileLeafRef" /></OrderBy>
<FieldRef Name="ID" /><FieldRef Name="Title" /><FieldRef Name="Editor" /><FieldRef Name="Author" /><FieldRef Name="Modified" /><FieldRef Name="Created" /><FieldRef Name="UniqueId"/>
<QueryOptions xmlns:ns2="" xmlns=""><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns><ViewAttributes Scope="Recursive" />
<Folder>Test Area/</Folder>
</soap:Envelope>Folder>Test Area/</Folder>

And the response I am getting is something like:

<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns="">
<rs:data ItemCount="2">
<z:row ows_GUID="{3C5844E1-4F98-4EE5-A789-1DCCA3E1BF3A}" ows_ContentType="DB Base Content Type" ows_BaseName="key facts 8 April" ows_Modified="2009-03-13 17:31:30" ows_EncodedAbsUrl="https://localhost/site/a.txt" ows__ModerationStatus="0" ows__Level="1" ows_ID="1" ows_owshiddenversion="3" ows_UniqueId="1;#{B7ED8578-227D-4202-B18A-369BFE5F28A0}" ows_FSObjType="1;#0" ows_Created_x0020_Date="1;#2008-12-12 16:18:48" ows_ProgId="1;#" ows_FileLeafRef="1;#a.txt" ows_FileRef="1;#site/Test Area/a.txt" ows_DocIcon="txt" ows_Editor="25657;#mohammad" ows_MetaInfo="1;#vti_parserversion:SR| vti_modifiedby:SR|localhost\\mohammad ContentTypeId:SW|0x010100C777E5E4CC2845A982076CBB472177EA00D40C3F427C6AD44FA3313036C6D99659 vti_title:SW| ContentType:SW|DB Base Content Type test:SW|test vti_author:SR|localhost\\mohammad MyColumn:SW|comment1" ows_Last_x0020_Modified="1;#2009-03-13 17:31:31" />

Now, even if I change "MyColumn" to "YourColumn", with the same soap request I am getting the same response, where as it should give "YourColumn".

Is there anything I can do to get the changed column header?

Any help is appreciated.

Thanks in advance.

13 years ago
Hello kiran,

Thanks. In page1.jsp the attributes (firstName, lastName,....) these attributes are set by a servelet (e.g. previousServelet). SO I guess using "request.getAttribute();" to retrieve the values, in such case, is OK.

Then again, I want the attribute values should be alive or available to the forwarded servelet (someservelet).

Thanks again.

[ May 14, 2008: Message edited by: Mohammad Akon ]
14 years ago
Hi all,

My codes are as follows:


Its printing the values request attributes

in my someservelet code I am trying to get the request attributes but its giving "null":

output comes....

First Name: null

. Apparently, the "request" attribute are not created at all.

Where am I making mistake? How to solve it?

Thanks in advance.


14 years ago
Hi all.........

I have a table "URL" table (list of forwarding urls) in the database. is it possible to use the following codes in the jsps.....

My URLTABLE is something like this
id URLvariable URLvalue
1 google
2 yahoo
3 somewhere

Is it possible to use jstl like parameters within html:form tag?

If its not the right way then what it should be??

I want my application to forward to different URLs based on my choice...and I don't want to change it manually every time. I already wrote codes to update my "URLTABLE" table.

Thanks very much in advance.

[ May 13, 2008: Message edited by: Mohammad Akon ]
14 years ago

I browsed the link. But I need to know, more specifically, is there any web application available (in struts) that will mock the services of paypal. For example, checking the following

1. Credit card no (whether it is 16 digit, not the actual CC number)
2. Expiry Date (mock date)
2. Address, etc. (mock address)

on each purchase.


14 years ago

Has somebody used PayPal inside Struts web application? Is there any demo available with source??

Thanks for hints and examples

14 years ago
Hi all,

I am trying to get the cookie values to display on a page of my web app. It works fine until I try to get any text having a '@' character in it (e.g. '' or 'a@a'). In such case it is printing the first few characters before the '@' symbol. Does anyone have any explanation/suggestions?

I used similar code like this:



Ideas or suggestions are highly appreciated.


[ April 10, 2008: Message edited by: Mohammad Akon ]
14 years ago
you have given too little info to go on. Can you post the code fragments?
14 years ago

I want to add a UPS shipping rate calculator to my web application that should take client's ZIP (either in US or in Canada) and calculate the shipping rate for different services (e.g. ground shipping, next day shipping, express shipping, etc).

Any help/tip/suggestion/example is appreciated.

Thanks in advance.

14 years ago
Hi, I am trying out an example. The codes & configurations are ----->


fragment of editproduct.jsp :- It allows the user to edit a product in the database.

fragment of viewproduct.jsp

When Im loading the editproduct.jsp - its giving me the following error

When I am removing the unbalanced </logic:iterate> tag I am getting the following error:

I appreciate any help/suggestions.


[ February 25, 2008: Message edited by: Mohammad Akon ]
14 years ago
Actually I am trying to create a edit profile page.....

my configurations are as follows:



While trying to load the page I am getting the following error:

[ February 19, 2008: Message edited by: Mohammad Akon ]

[ February 19, 2008: Message edited by: Mohammad Akon ]
[ February 19, 2008: Message edited by: Mohammad Akon ]
14 years ago