sankha ghosh

Greenhorn
+ Follow
since Jun 12, 2007
sankha likes ...
Opera Spring Flex
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 sankha ghosh

Hello,

I have an application build using Spring BlazeDS integration framework (in plain english: backend Java with Spring and front end Flex). I am using Hibernate.

Previously I had jdk 1.5, BEA WLS 9.2 and the application was running fine both in eclipse integrated server or standalone server where I deployed the application.war file. I was running the server in Windows XP and Windows server 2003 based systems.

Now I need to use jdk 1.6, Oracle WLS 10.3. Initially I had the issue with Hibernate (the popular Hibernate and WLS 10.3 issue with antlr 2.7.6). My new environment is Windows 7 and Windows 2008 R2 (64 bit)

After that my eclipse integrated weblogic is able to run the application and everything is working normally. Then I exported the .war file and trying to deploy it in a standalone WLS domain admin server. This time, I am getting the following error :


I unzipped the war file and found no duplicate files. There should not be any. Can anyone please help me? I am stuck at this point for few days.
10 years ago
All,

Thanks for your tips and reply.

The great news is: I got the solution!!

I have used render event to track of any page loading (or rendering to be more specific) and used modelLocator pattern (Little bit of cairngorm) to identify the state change scenario. I am thinking of putting a more detail description here, once I get some time, so that anyone else like me can get some idea in this kind of scenario.
11 years ago
Thanks again Paul,

Well, let me admit, No, I have not used any pattern like Pure/Cairngorm (because I don't have much idea about them). But then, I am not sure, what exactly you meant when you say "lumps your entire application into one component". Are you talking about the compiled output? In the flex project I have only one application Login.mxml and so I have Login.html and Login.swf file only for this project. Will that be a problem?
Now, regarding the event fire, When I am "Spiking" or cancelling all the changes I made, the objective is to clear all these components I created for each state. I should be return back to the base state, from where I can again resume selecting any submodule. Now I am able to track the spike event and clean up all the beans containing data which I populated when the application started. But in this second round , the creationComplete() methods are not doing anything. So I am curious to know of ways to re-invoke the init() method to re-populate the beans. My init() merthods contains the logic to populate data to be displayed in the screen.
Re-constructing at this point would be very difficult. Its a big and complicated application.
11 years ago
Paul,

Thanks for reply, but this one made me even more confused. I can explain what code I have written, but if now I need to explain.. why I have done it in that specific way..I don't think this thread will ever end.

In your reply, you have 2 questions and one assumption. Let me try to answer for each line:
1. To my limited Flex knowledge, I thought separate state for each submodule would be the best way to go.
2. I have many self coded components which represents these submodules. And once the user spikes or save a whole submodule, Yes, I want to destroy them and recreate them again for the new workflow.
3. This question is vague (I think you also never understood what you meant to say). Yes, I can write my own reset method, but all I want to do, is to call the creationComplete() method again to re-populate the data in the screen. That is the only thing I want to know in this post. Now if I knew how to do that, I would have written a "How-to" tech-blog instead of asking it here.

11 years ago
Hi All,

I am facing a common problem, but somehow couldn't find any solution for that in net!!
We have an application where the front end is Flex. Here, after login, the user is given choice of 4-5 submodules where he/she can do some work. Now after doing changes in the screen, when ready, the user can opt for saving the changes he/she made or to "Spike" the workflow to discard all the changes made in the screen and taken back to the initial screen, where he/she was forwarded after the login.
So at this point, we want to destroy all the changes he/she made in the last session and when he/she selects the same submodule, all the pages/states will be loaded fresh.

But here, I realized that the creationComplete() method is not called again and the old pages (along with all the changes the user made in previous session) are re-loaded.

I tried to search for deleting Flex states/ creationPolicy = none and many other things to achieve this. But nothing is taking me nowhere.

Can anyone provide me some help please?

Here is the code I am using:

<mx:State name="Descriptions" id="descriptions" basedOn="Main">
<mx:AddChild relativeTo="{vbox1}" position="lastChild">
<components:moduleDescriptions id="desc" height="100%">
</components:moduleDescriptions>
</mx:AddChild>
</mx:State>
................ many other such states are there.

if the user select this sub-module:
else if ((menuMainModule.getFocus().tabIndex) == 4) {
currentState = 'Descriptions';
}

Here is code in moduleDescriptions.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
backgroundColor="#80D0CF" xmlns:components="com.test.myapp.view.*" creationComplete="init()">

private function init():void {
module = "DES";
userName = parentApplication.user.name;
..... other code to call the remote method and populate the data for the screen.
}

Now this is being called on the first time the application is loaded. Form next round, this method is not being called and the screen retains the old data.

This is driving me crazy. There has to be some way in Flex to clear the states/screen data and reload again. Someone please help me.
11 years ago
No, I haven't. Actually the requirement is to display the whole list together. The memory should not be a problem.

But since you brought the point, I can think about it. In that case, could you please provide me some idea, how to proceed, and how to use hibernate for that?
Hi All,
I am facing performance issue while trying to fetch all the records (almost 24,000 rows) from 2 tables in oracle.

There are two tables: FinancialEntity and Company. 'FinancialEntity' table contains the foreign key for 'Company' table as 'company_id' which is referenced in id column in Company table. There are company name etc I want to read from company table and from FinancialEntity table, I need to fetch 2/3 columns.

So in my hibernate mapping, in the java bean, I have created one Company Object. Please note, for one financial entity id, there should be only one company only. So in the financialentity.hbm.xml file, I have provided one 'many-to-one' mapping for company. (This I did, based on recommendation found in some website. To me, I thought it would be one-to-one mapping. The reason is not clear to me till now )

When I am running the HQL query as 'from financialentity' it is taking an enormous amount of time. Then I specified the columns from FinancialEntity table and the company object. The performance is better, but since it needs to fetch all the columns for company, it is taking solid 2-3 min to get the whole set of records.

I tried to put the join query, but that is also taking more than 2 minutes just to populate the whole list. While in the Oracle editor, it is taking only 1/2 sec to populate the whole records.

Any suggestion would be highly appreciated.

Please let me know, if you need me to post the snippet from my xml, bean and DAO class.
JDK is backward compatible, I have no doubt. But I need to know whether it is compatible with JDK 6. Can anyone else knows the answer?
11 years ago
Hi all,

Can anyone tell me, if bea weblogic server 9.2 is compatible with JDK 5.0? What about Java6? Compatible with both or one or none?
11 years ago