Narender Reddy Soma

Greenhorn
+ Follow
since Jun 05, 2010
Merit badge: grant badges
For More
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Narender Reddy Soma

I dont see a reason why Command pattern only has to be implemented in this scenario. Any specific reason for choosing Command pattern there?

Gregg Bolinger wrote:

...but my colleagues want to remove the empty interfaces saying that it is unnecessary.



Ugh. tell your colleagues if they want to remove empty interfaces then *they* can be responsible for tracking down all the GenericDAO usages when the spec changes and ItemDAO actually needs something beyond CRUD.



well said Gregg!
Your approach seems appropriate to me in the sense of easy maintenance and readability.

Narender Reddy Soma wrote:Hi Everyone, I appreciate you all for taking some time out of your busy schedules and helping the needed.

and here goes my question about caching mechanisms.

I am developing an application using Flex,spring with BlazeDS.

In order to depict statistical information using different kind of charting components and for rich experience I am caching some data at client end.

To enhance response time furthur, I am caching the neccessary information at server side at server startup(have scheduler to update frequently).

As of now I have Delegates at server which decide whether to pull data from DB or from cache.

I am searching for any patterns for implementing caching in this kind of scenario.So, that I can well-organize the code and reuse the code at server end. Which pattern suit this well? or is there any better idea to implement it?

Any inputs are appreciated.

Thank you



any hints please?[ just to grab attention onto this topic with a hope that I will get some suggestions ]
Hi Everyone, I appreciate you all for taking some time out of your busy schedules and helping the needed.

and here goes my question about caching mechanisms.

I am developing an application using Flex,spring with BlazeDS.

In order to depict statistical information using different kind of charting components and for rich experience I am caching some data at client end.

To enhance response time furthur, I am caching the neccessary information at server side at server startup(have scheduler to update frequently).

As of now I have Delegates at server which decide whether to pull data from DB or from cache.

I am searching for any patterns for implementing caching in this kind of scenario.So, that I can well-organize the code and reuse the code at server end. Which pattern suit this well? or is there any better idea to implement it?

Any inputs are appreciated.

Thank you

I agree with Frank.

Singleton as a design pattern only explains solution and its upto developer how he implements it as per the system architecture ( clustered environment etc). So, unless we are aware of your design ,cannot comment on how it can be cracked.

Rohit kumar sharma wrote:hello everyone......I am using flex Builder3
Application details

Front end:Flex builder 3

Back end: Blazeds,Servlets

When i m sending arraylist from servlets to flex,i am unable to type casting it in arraycollection.(I have to work flex builder 3,as most of the project is based on flex builder 3)

It is showing null pointer error...

How can i collect arraylist(sent from server) in arraycollection on flex side(cleint).



say for e.g you have arraylist in myDto.java and you want to return to client.

you need equivalent bindable Dto with a property of type ArrayCollection.

if you have arraylist in map and you want to hold it in arraycollection.

try var arrcoll:ArrayCollection = myMap["myList"] as ArrayCollection;

if you want to hold in Array.

try var arr:Array = (myMap["myList"] as ArrayCollection).source;
13 years ago

Narender Reddy Soma wrote:

kri shan wrote:Any java framworks follows OSGi(Open Services Gateway initiative) standard. Looks this supports modular architecture. Whether Spring follows OSGi(bec Spring is modular architecture)



If I understood your question correctly then my answer is Yes. Spring starting from 3.x follows OSGi framework and thats the reason you get bundle for each module rather getting everything in single spring.jar.


and If you want to find if any other frameworks are also distributing thier api as osgi bundle.. beter check on thier website.

kri shan wrote:Any java framworks follows OSGi(Open Services Gateway initiative) standard. Looks this supports modular architecture. Whether Spring follows OSGi(bec Spring is modular architecture)



If I understood your question correctly then my answer is Yes. Spring starting from 3.x follows OSGi framework and thats the reason you get bundle for each module rather getting everything in single spring.jar.

Check classpath
13 years ago
I think you should ask your client for WSDL without any hesitation.
13 years ago
I think States would help, try googling Flex States.

and Inorder to call one mxml from another, you can do in two ways.

one is you can import the mxml as other class like Panel,Canvas etc and invoke method on it.
and another is compiling the dependant mxml and embed as local file.

Think which option would fit your requirement?
13 years ago
and if you want to communicate to server by using only Servlet. You dont need BlazeDS at all. BlazeDS is adobe's project that provides services like Remoting as RPC, Messaging(pub-sub model) and Cross-domain services.
13 years ago
are you not able to connect to server from flex client? or not getting response?

If you are not able to connect to server from flex, just cross check if you have proper context root mentioned during mxmlc and while making call.
13 years ago

Nitin Menon wrote:Hi,


public var fromStation:StationVO;

public var toStation:StationVO;


<mx:DataGridColumn id="from" dataField="fromStation" width="150" headerText="From"/>
<mx:DataGridColumn id="to" dataField="toStation" width="150" headerText="To"/>
</mx:columns>
</mx:DataGrid>




you are assigning an object to dataField property directly? I think you should try with object name like toStation.somefield ??
13 years ago