amar nath jha

Ranch Hand
+ Follow
since Mar 09, 2006
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 amar nath jha

Ohh I am sorry I posted it in swing forum will take care of this in future
Hi All

I am new to EJB .I am stuck in a scenario. I am explaining the scenario below :

We have a very big resultset having nearly 1027826 records. And we have to process all the records.After processing the records we have to update the status in the database table against the records.And we have to update another table with the status that all the records under this Id have been processesed. So we will have two tables first one Master table having Id and status and second one Chile table having all the child records against the id from the master table.Now if some thing fails then we have to reprocess entire records again.


My approach is to read all the records from database .Iterate over the resultset .Create group of records on the basis of some common fields and then we will pass the groups in form of message to a Message Drive Bean for processging.Our main thread will keep on waiting till all the groups have been processed .Once processing is done we will update the database record. Now to update the master table we have to first confirm that all the child records have been processed i.e 1027826 records .


For this can we have a callback method that our JMS will invoke so that we can notify the main thread(waiting thread) that all the records has been updated.We can put some logic there that all the records have been updated and then we will update master table.

My query is can we add our own callback method with MDB and how to do it.

Thanks
Amar


Hi

Yes, you are correct I have fixed the problem by making dialog parent of another dialog.

Thanks for your help
13 years ago
Hi

In my application we are creating a custom dialog which is having help option . When user click on that help a new non model dialog will get poped up which will explain all the option available in parent dialog . Now problem is that new help dialog is not listening to any event even close (X) button is not working properly . But as soon as we close parent dialog it starts listening to all the events and behave normally .

Both the dialog have same parent frame . is it because of this ?

Please help me to fix this problem.
13 years ago
Hi

We am facing problem with clipboard data .

In our application we are trying to copy data from JTable to MS Excel for user to modify data , to add extra columns or some more rows .Then copy it from excel and paste it in JTable.
Now problem is that while pasting we are getting same old data that was copied from JTable(unmodified data) we are not getting new and modified data.
But if we close my application and restart it and then again try to paste it we get modified data from clipboard .

Please help me to solve this .
14 years ago
Thanks Bill

I am working on this url .

I think this would help me in generaing class and then we can load and compile it to make use of it .

Will reply very soon with the source code .





14 years ago
Hi,
I am cought in a problem .
Here is a scenario ---

We have an interface . User needs to provide implementation of methods in interface in an abstract class . Complete implementation will be provided dynamically at runtime and methods will be called on that implementation .

I am trying to achieve this but am not getting it . I tried this .But class implementation class FooImpl is not abstract . I want to create some thing like FooImpl at runtime .

Please provide me a sample code or some website links to help me achieve this.
14 years ago
Hi ,

I have some doubt regarding

<Context path="/mysite1" docBase="webapps/mysite1"
debug="5" reloadable="true" crossContext="false">
</Context>
If I specify the above tag in tomcats server.xml
will it make my application (mysite1) eligible for hot deployment .
Or is it version specific .
14 years ago
Thanks for your guidence.
14 years ago
Hi,

I am working on an application software that will be executed on windows (I am sure about it).
Now that software has a module which reads an xml file and insert records in database .The size of xml file is really very big so its a time consuming task.To increase the speed of input I set the priority of my windows as high and second time as real time .(Just for trial and it was working fine).

If i use a module in my application that can increase the priority of my application to high /real time just while import module and restore it back to normal state after that module is over.Will it be a good design (I know I am compromising with platform independent feature of my application/java).If its good then which DLL files can I use for this.

Thanks in advance
14 years ago
Hi,
I am facing a problem with my swing application.Some time it gives error message like com\select\MyClass .
Where MyClass is class inside com\select.


Now this message is not only comming for a single class it pops up for different classes in the application.

Please help me to resolve it.
bye
14 years ago
Hi,
We need to run IPConfig/flushdns on client side.How can be achieve it?
One solution is applet but their are security restriction.
Please help me out with any other solution.
Thanks
14 years ago
JSP
Hi,

Thats fine for the server side can we execute such command on client side using jsp.

Thanks
Amarnath Jha
14 years ago
JSP
hi ,

I have to use WSH script in my jsp page any solution.
Thanks in advance.
Bye
14 years ago
JSP