Application architecture

I am working on an app. that has a main app. window with tree
control that is used to load other applications into the main
window. I want to be able to reuse as much code as possible. For
that I want to keep generic AS code in the main application. Also
there are many data sources that in use by multiple applications.
For example, a list of US states used for dropdowns.
I would want to load this data into main application only
once and then dynamically assign to data controls.
Can someone share ideas of doing development in such facion?
Any samples?
Thanks in advance.

There are of course lots of ways to do this. Our approach has
been to use singleton classes to hold common data and common
functions.
The instance is declared as Static so there is only one copy.
for example:
public class SomeSingleton
private static var _instance:SomeSingleton;
private var _someData:ArrayCollection;
public function SomeSingleton()
public static function getInstance():SomeSingleton
if(_instance == null)
_instance = new SomeSingleton();
return _instance;
public function set someData(v:ArrayCollection):void
_someData = v;
public function get someData():ArrayCollection
reuturn _someData;
To use this anywhere in your flex app just get the instance
and invoke it's methods.
SomeSingleton.getInstance().someData = new
ArrayCollection();

Similar Messages

  • Oracle ERP and CRM Application Architecture Direction

    Not sure if this is out of topic for this forum but it seemed the closest I could find. If it is out of topic could someone please point me in the right direction?
    Im looking for the architectural direction Oracle is taking for their ERP and CRM applications. Specifically as Oracle moves their applications to the Oracle 9iAS application server will Oracle be changing their application architecture to a Service Oriented Architecture (SOA) as other ERP and CRM vendors are? If not what architecture will the Oracle applications follow?
    Phil Montagliano
    Xerox Corporation
    XIM/Technology, Strategy & Architecture
    161 South Chestnut Street Email: [email protected]
    One City Centre / 0875-05B Phone: (585) 423-8831
    Rochester, NY 14604 Fax: (585) 423-4848

    Hi,
    bit confuse about your question. are you looking for techniacal architecture or looking for business prospective?
    Kindly elaborate your question.
    Yogi
    [email protected]

  • Best use of framework events in application architecture

    Hello,
    I apologize in advance if this is not the appropriate forum to be posting about Flex framework questions.  I considered the Cairngorm forum, but thought the question applied more broadly to all flex frameworks. That, and it seems that the Cairngorm forum isn't really very active.
    My question is about using frameworks for application architecture. Reading the "Introducing Cairngorm" document,  I see that it specifically says that Cairngorm events are just those events that will handle business logic (things like grabbing data from a server, committing data to a server, etc).  So then, how does a view interact with a controller when changing state?
    Let's say I have two or three different views of the same data and I have a buttonbar to switch to the view I want. Is it then typical to dispatch a Cairngorm (or Mate/Swiz/Pure MVC, etc..)  event to the controller to change the view state of the application?  Does this effectively mean that for every button a user can click on, we'll have an event and a command associated with that event to perform some change of state or business logic? With a moderately complicated application, with several different screens, a few forms, a couple of lookups, i.e. lots of buttons for user input, that seems like an awfully huge number of events/commands...? Or do you dispatch a regular old flash Event to handle this? Or does the view data bind to the model to change the view state?
    Obviously there's never any single correct answer to application architecture questions, but I'd like to know if there's any general best practices that I should follow. I don't want to under-architect OR over-architect my app.  I'm new to Flex programming and would like not to code something egregiously ugly.
    Thanks,
    Cory

    Hi,
    Consider this, there is no such thing as an enterprise level RIA, the whole concept behind thin client was to restrict the enterprise requirements to the backend, that being said if we assume that a flex application is specifically for the client end and can maintain its own state and that MVC frameworks are more about enterprise solutions then the whole framework argument becomes what it is, academic BS.
    <start rant>
    Its really simply, in half a century nothing has changed, you have rules and requirements(model), you have access to that(view) and you wrap it up as a program/application(controller) so  why do you need convoluted multilayer abstraction of functionality to make things work ? maybe so those that can't get a real development job can run around and preach at conferences, how else could they feed their adopted kids.
    So all those nice buzzwords, design patterns(the new age terminology for modular architecture), model/view/controller, borg coding(resistance is futile) is all very fine if you want to act smart but producing quality code actually means you are smart. As you may have guessed I am not a strong proponent of MVC frameworks, and I don't even need to get into the argument that everytime a 'framework' expert gets control of a project that isn't done in their MVC  poison of choice it gets a rewrite, clients really love those associated costs and retesting requirements.
    </end rant>
    You only need 1 framework for flex and thats the flex framework.
    Have a read this blog, the section on MVC and Flex is very interesting if not overly polite.
    http://www.herrodius.com/blog/216
    David

  • ADF Application Architecture

    Hi All,
    I am new to ADF and working with some vendor to transform our in-house Oracle Form Application to ADF Application and we have more than 300 Oracle Forms to translate.
    Basically after the login page, we will have a main menu, and then from the main menu, user can access to different modules (e.g. Customer Profile / Supplier Profile / Order Processing etc..). One of the critical point is that there will different shared variable pass from the main menu to each module and from each module back to the main menu.
    We have successfully translate a few Oracle Form to ADF JSF Application. However, before continue the project, we would like to confirm the application architecture.
    Checking on Oracle Website / different ADF forum, basically they will packaging all their ADF program in 2 different approach.
    Approach (1):
    i) Create a common workspace which put all the common EO, VO, AM, Task Flow Template, Page Template, Skin, etc and export as an ADF Library
    ii) Create different Bounded Task Flow Workspace with its corresponding Model and View Controller for different modules (e.g. Customer Profile / Supplier Profile / Order Processing etc..) and then export as an ADF Library
    iii) Create a master workspace with View Controller to contains an Unbounded Task Flow to tier all the different modules together as an EAR file.
    Approach (2)
    i) Create a common workspace which put all the common EO, VO, AM, Task Flow Template, Page Template, Skin, etc and export as an ADF Library
    ii) Create different workspace with its corresponding Model and View Controller for different modules (e.g. Main Menu / Customer Profile / Supplier Profile / Order Processing etc..) and then export as an EAR file
    From Approach (2), when I need to pass parameter from Main Menu to Customer Profile, since they are from different application, I can only pass it through URL or database. But it seems to be not a very approach. May I know is there other way to passing parameter between different ADF Application ?
    From Approach (1), it seems that the parameter can be passed using the bean since they are under one master workspace. However, from some of the forum said, if there is too many modules (my case is ~ 300 modules, there will be a problem on the CPU, RAM and JVM may not be able to start.
    May I know is it correct from my assumption ? Also may I know which approach should I use ? Thanks !!
    Best Regards,
    Eric

    Hi Timo,
    Thanks for your reply. Yes I have watch the ADF Architecture TV Episode too. But I still cannot figured out which approach I should using. From the video, it said that sum of the parts may risk from the start up of JVM when you have too many application. Pillar architecture can solve that problem however parameter may need to pass through different ADF application since they are compiled as different EAR file. But passing the parameter through URL / database package seems not an excellent idea.
    Moreover, since all those ~300 modules are different and may not related from each other, so it may not be a suitable case to put multiple forms into one ADF application in my case. Also our system have frequently change request from the user and those request are usually handled by different developer. So I guess it may be better to put it in different ADF application instead of putting in a single one.
    Any advice ?  Thanks !
    Eric

  • ERP and CRM Application Architecture Direction

    Not sure if this is out of topic for this forum but it seemed the closest I could find. If it is out of topic could someone please point me in the right direction?
    Im looking for the architectural direction Oracle is taking for their ERP and CRM applications. Specifically as Oracle moves their applications to the Oracle 9iAS application server will Oracle be changing their application architecture to a Service Oriented Architecture (SOA) as other ERP and CRM vendors are? If not what architecture will the Oracle applications follow?
    Phil Montagliano
    Xerox Corporation
    XIM/Technology, Strategy & Architecture
    161 South Chestnut Street Email: [email protected]
    One City Centre / 0875-05B Phone: (585) 423-8831
    Rochester, NY 14604 Fax: (585) 423-4848

    Hi,
    bit confuse about your question. are you looking for techniacal architecture or looking for business prospective?
    Kindly elaborate your question.
    Yogi
    [email protected]

  • Reg: WPC application architecture document

    Hi,
    We are looking for extending the WPC (Portal 7.3) features...
    Is there any documentation around the new WPC (Portal 7.3 )application architecture where we can find the UI classes and services/backend classes api to publish the documents,creation of folders,creation of area and etc..
    We know that below interfaces are available to extend the WPC, but we are looking more than this.
    com.sap.portal.wpc.api.content     
    com.sap.portal.wpc.api.content.handler     
    com.sap.portal.wpc.api.content.provider
    Thanks & Regds,
    JC

    Hi,
    We are looking for extending the WPC (Portal 7.3) features...
    Is there any documentation around the new WPC (Portal 7.3 )application architecture where we can find the UI classes and services/backend classes api to publish the documents,creation of folders,creation of area and etc..
    We know that below interfaces are available to extend the WPC, but we are looking more than this.
    com.sap.portal.wpc.api.content     
    com.sap.portal.wpc.api.content.handler     
    com.sap.portal.wpc.api.content.provider
    Thanks & Regds,
    JC

  • UDS Application Architecture Validation

    Hi Everyone,
    I am curious to find out if there are any tools that can validate the existing UDS application architecture. Especially is there anything within the UDS family - say a UDS parser - that we can use?
    thanks in advance,
    Vamsi.

    There is at least one Consulting tool still in existence that can analyse Forte/UDS code and provide limited feedback on the architecture used, but it focuses more on syntax and things considered to be poor (or risky) coding. As far as I know, it was developed within Forte to assist their Consultants in the field. It requires a fairly high degree of Forte/UDS Architecture knowledge to use correctly and especially to make good use of the results.

  • Application architecture of oracle crm suite

    Can anyone let me know where can i find the application architecture for oracle crm suite which includes oracle 3i and oracle 11i.

    Hello -
    First of all the best for your Thesis and appreciating for selecting Oracle BPM.
    Check this : http://www.oracle.com/technetwork/middleware/bpm/obpm-articles-086639.html
    Most of the articles are by Mariano Benitez - BPM Architect.
    BR,
    Justin.

  • How to organize  project structure  for big application architecture

    Hi all:
    We prepare to construct a medium erp project using JHeadstart,
    so we have some application system like human resource, accounting, inventory, ...
    What's the best suite to organize application project architecture ?
    we have this issue about application architecture:
    1.how to fulfill large scale application and must to share some common view object and entity object in all application, May we to break the application down into multiple BC4J packae in same project or separate each subsystem in each project folder?

    You can definitely organize your applications into as many packages as makes sense for your overall design.
    You can create and deploye packages of BC4J components in simple *.jar archives and then uses features of JDeveloper to import those shared packaged of components in a read-only mode in projects that need to make use of them.

  • Flex Application architecture with web and air interface both using common components.

    We have a flex based e-learning application. It uses HTTP REST service and webservice to communicate with ASP.Net application to fetch and store data.
    We now want to develop an adobe air version of the user interface, which the students can download on their desktop as well as mobiles (Android, others).
    What would be a good architecture for such an application which has both web and windows interface. I can see that we can reuse almost 80% of the code of our web version. But I do not want to copy and create a new windows app from the flex web app. I would want to have both co-exist.
    Let me know a good article that I can read on this.

    I dug deeper and found the concept of Shared Common Library. I am trying to implement that.

  • Application architecture in secure environment

    Hello,
    I am currently designing an enterprise application that will use a DBMS back-end. My environment has the DBMS and Web (Tomcat) servers sitting inside a very strict firewall, allowing only port 80 access. I need to know what is the best architecture to use for my application, given the several tiers and the firewall.
    Should I use a 3-tier, with the DBMS being 1 tier, the business logic in a servlet, helping circumvent the firewall, and the UI in an applet and/or HTML/JSP page?
    Thanks,
    haighaig

    You first have to have a look at the security policies
    so you can see what restrictions your company has.
    These policies and the requirements of the busines-
    case reflect the architecture you design. From a tech-
    point of view, you can have from 1 to a lot of tiers...
    If you are using a DBMS, Tomcat and Apache and your only restriction is the port 80. So you integrate
    Tomcat into apache and apache then forwards the
    requests to tomcat what is kept within the server. It
    is again a question of your policies and business
    requirements (performance, scalability, availabilit
    etc) how your DB-server looks like and where you place
    it. While using JSP and servlets, you can talk to any
    DB-server reachable by the network.
    The use of applets has as well be dicsussed and
    depends on your target audience, because some
    companies drop applets with the firewall and these
    people can in this case not profit from your web-
    application.

  • How to determine application architecture in terminal

    I'm wondering how Finder determines on which architecture an application is able to run.
    Using ditto --arch it is possible to extract PPC, PPC64 and i386 from a Mach-O application.
    But HOW can Finder tell that an application ist Classic ? Or is it also possible to determine Motorla 68000 architecture in old classic fat binarys ?
    I'm interested in that because I've got an iMac Core Duo that does not support classic any more and I want to find all classic apps on all my Fire Wire harddrives.
    thanks in advance
    Michael
    iMac Core Duo 20"   Mac OS X (10.4.5)  

    Hi Michael,
       The UNIX utility, "file" can distinguish between Cocoa and Carbon apps in many cases. Carbon apps usually return "header for PowerPC PEF executable". Compiled objective C, C++, and C executables return "Mach-O executable <Architecture>". Compiled Java classes return "compiled Java class data". Carbon apps for MacOS X return the same thing as classic applications. While they are almost the same thing, there are differences and I don't know how to spot them.
       Of course Cocoa applications are usually inside application bundles and if you apply the "file" utility to the containing directory, you will of course get an answer of "directory". You must apply file to the executable inside the bundle. The main one is always inside the Contents/MacOS subdirectory and always has the same name as the bundle, minus the ".app" suffix.
    Gary
    ~~~~
       I worked in a health food store once. A guy came in and
       asked me, "If I melt dry ice, can I take a bath without getting
       wet?"
             -- Steven Wright

  • Application Architecture Suggestions

    Hi,
    I'm currently writing a library/application which will integrate with a number of systems. The application will be used by other systems to generate HTML forms, for which there are definitions stored in a database, and to store the information saved in the form by system users.
    I'm new to Java EE and was wondering if anybody could point me in the general direction of technologies (or architecture) which I should be using (I'll define some rules bellow for what is required) and to suggest tools which I could use. I'm currently using JBoss AS 1.5 along with the JDK 1.6, MySQL 1.5 and Eclipse for an IDE.
    Here are some requirements for the system:
    - Must have a web interface to allow users to define a form (which will be stored in a database)
    - Must be able to dispense forms for use within a system
    - Must either be hosted in the application (i.e. a code library + database hosted in a system) or be a stand alone application which has its own database and which can tightly integrate with a system)
    - Must appear to the user that the form is tightly integrated in the system (e.g. looks the same, does not need to open in a pop-up window...)
    - Must be able to populate form fields with information stored in the system (I was thinking of web services for this part)
    - Must be able to store information entered in form in the system (e.g. a date of birth...) (Again I was thinking of web services for this part)
    I could do with some suggestions on possible architectures of how this should all fit together.
    I know this is a big ask but I'm close to giving up because I'm not sure where to start.
    Thanks in advance,
    J.Love

    J.Love wrote:
    Hi,
    I'm currently writing a library/application which will integrate with a number of systems. The application will be used by other systems to generate HTML forms, for which there are definitions stored in a database, and to store the information saved in the form by system users.
    I'm new to Java EE and was wondering if anybody could point me in the general direction of technologies (or architecture) which I should be using (I'll define some rules bellow for what is required) and to suggest tools which I could use. I'm currently using JBoss AS 1.5 along with the JDK 1.6, MySQL 1.5 and Eclipse for an IDE.
    JBoss AS 1.5? You should at least be on 4.2.x or 5.x.
    Here are some requirements for the system:
    - Must have a web interface to allow users to define a form (which will be stored in a database)Pick a MVC framework of your choosing. Spring MVC, JSF 2.0, Grails, etc. When you say "users to define a form". What does that mean? That users will drag and drop UI elements in a designer and then publish a web form for others to use?
    - Must be able to dispense forms for use within a systemAgain, I'm not clear on what you mean here.
    - Must either be hosted in the application (i.e. a code library + database hosted in a system) or be a stand alone application which has its own database and which can tightly integrate with a system) JBoss can handle this for you. Package everything appropriately as a WAR or EAR, preferably with a build tool such as Ant or Maven.
    - Must appear to the user that the form is tightly integrated in the system (e.g. looks the same, does not need to open in a pop-up window...)Again, is this a form the user has designed or simply one the user uses that you have designed?
    - Must be able to populate form fields with information stored in the system (I was thinking of web services for this part)Information stored in a system can be the filesystem or a database or a network resource somewhere else. The web service part is simply how clients will invoke your services. (Do a search on service-oriented architecture). Personally, I would opt not for a web service but for something simpler, like REST.
    - Must be able to store information entered in form in the system (e.g. a date of birth...) (Again I was thinking of web services for this part)
    Separate the protocol and format you are using (e.g., web service SOAP, JSON over REST, XML over HTTP POST, etc.) from the requirement for storage. You will generally have a controller receive a request and forward to a service (or have the service receive the request if there is no UI) and then delegate to a data access object to fetch and store data. See the MVC pattern generally and data access object pattern specifically.
    I could do with some suggestions on possible architectures of how this should all fit together.
    See the above. MVC is your first high-level separation. Then you likely want a service tier (see SOA). If you think it is merited, you can implement your service and controller tiers with the Command pattern, though this is optional. Don't worry so much about protocols and standards. Get things working first. Then worry about how clients will communicate with you.
    I know this is a big ask but I'm close to giving up because I'm not sure where to start.
    Hence, take it in small pieces. Get things working in memory. Then save things to the database. Then accept requests to do so from a web page. Then start choosing how you want things to work as a whole. If you are totally stuck, bottom-up often works. At some point, you will have to revisit things and go top-down. There's no right or wrong answer, just start coding and have an idea in your head (or on a napkin) of how things should flow and work. Use bubbles and arrows and nouns and verbs. Then translate those one at a time into working code. Wash, rinse, repeat.
    Thanks in advance,
    J.LoveBest of luck.
    - Saish

  • Application Architecture - Any Suggestions?

    I am in the process of setting up a wireless application sandbox, and a few things are unclear to me. What does the architecture / configuration look like between the 9i WE the Wap Gateway and the Wireless Network. How is the Wap Gateway found from the Wireless Network? Where is that configuration registered?
    Oracle documentation says that 9i WE has been tested with the Infinite Technologies WAPLite Wap Gateway. Is this a good starting point? Or are there better Wap Gateways available?
    For those that have gone through the steps of configuring 9i WE internally, and made it accessible via Wireless Networks - Do you have any advice / suggestions?
    Any Thoughts?
    Thanks,
    Jeff

    You can read more about the support of messaging drivers in the following topic:
    Re: MMSC service Providers
    If you would like to read more about integration with 3rd party products please refer to:
    http://otn.oracle.com/tech/wireless/integration/index.html
    It is possible to configure messaging clients and WAP gateways for OTA provisioning.
    Rgds,
    Thomas

  • Complex Webdynpro application architecture on JAVA WAS

    Hello,
    I am planning to develop quite complex application with Webdynpro presentation layer. I'm not so sure in j2ee technologies but I have some experience but only from quite simple applications mostly which shows some issue in j2ee programming model. I want to run my application on Java stack of WAS and underlying DB. In my DB model there is cca. 40 tables. So I'm now looking for some choice of overal architecture. I'm thinking about that there will be on bussiness layer Stateless session bean(s) which will be wrap almost all functionality and I plan to access database from bussines methods (directly or probably through some other wrapper class through openSQL/jdbc).
    My question is if can anyone advice me if this architecture is good or not. I was thinking about object persistence too (mainly JDO) but in my count of tables seems it to me as really hard work, and with entity beans I haven't so much experiences. When to use JDO and when jdbc acces ?
    Secondly I want to ask this:
    I am used to program in java in jdbc to regular database (mysql, oracle) and there I am able to create my DB tables and so on through script generated from modeling tool. Is this can be in Java Dictionary ? or I have to click my tables in Java Dictionary Perspective. And how can I set foreign key constraints in Java Dictionary Perspective ? is it posible ? or I have to check reference integrity each time I use Insert, Update, Delete commands ?
    I know this is quite many question at once, but I will be glad if anyone can answer any of that.
    Best Regards,
    Miroslav Koskar

    Miroslav,
    Your application seems to reach "critical mass" of business objects involved. If you can -- go ahead with CAF.
    Any other approach will work too -- be it either Entity EJB with session facade or JDO (directly / indirectly exposed). But...
    You'll will have to create plain JavaBeans for DTO in case of EJB... Even with JDO you'll have to track CUD operations in CRUD differently hence repeating work that CAF team already did. Next you'll have to create JavaBean models for your objects (thought, not a rocket science till time of model upgrades). Next you'll have to tweak this model to use types from data dictionary... And, again, this is provided with CAF out of the box...
    Your second question is actually minor one -- using DDIC is possible with either approach and referntial integrity will be preserved with either technology.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Chat  Application Architecture

    Hello ,
    Can anybody help me out about what could be the best architecture for developing a chat application like MSN Messenger (for intranet as well as if possible for the internet as well).
    I know Java & JSP can be very useful but can anybody tell me more clearly that what threading issues and client-to-server or server-to-server communication should be taken into consideration ??
    Please help me in detail.
    Thx in advance
    [email protected]

    first of all, don't crosspost (forgive me if you didn't but i recall seeing exactly same topic in another forum)
    and how to do it?
    if you want t have think like MSN, then you'd need to have something peer-2-peer alike... that each client is also server and then they "speak" to each other directly.
    but other version would be such, that each client has only client socket, with which it connects to server application, that propagates chat from one client to everyone...
    that server could then become a bottle-neck for your chat if you have lot's of clients, but then again, you might not have that much clients in intranet.

Maybe you are looking for

  • BlackBerry 8110 does not initialize only LED blinks for 5 secs

    Hi all, I bought a used BlackBerry 8110. It worked fine in the beginning - then during some audio recording I suddenly got an hourglass cursor and the handy was frozen. Removing the battery - even for 24h - did not help. The moment I put in the batte

  • SQL Server Stored Procedure to Oracle

    Hi All, I have a store procedure in SQL Server(2005 onwards)...I need to convert that in Oracle. As I am new to Oracle. Please guide me. I have two tables MetaDatabase and MetaEntity. The store procedure loads the MetaDatabase and MetaEntity based on

  • How to set my parameter file to run impdp properly?

    Hello all, I want to import a table HR.COUNTRIES to KATE:COUNTRIES with impdp This is my parameter file : DIRECTORY=C_ROOT DUMPFILE=EXAMPLE.DMP TABLES=COUNTRIES REMAP_SCHEMA=SH:KATE I get an error in my log file : Import: Release 10.2.0.1.0 - Product

  • Photoshop elements version 13 vs. 12 because of online requirements?

    I'm about to buy PE but I have heard that version 13 always needs online connection. I will mainly use it on my desktop but it should also work on my tablet while traveling without online access. Is therefore version # 12 the better choice? Thanks fo

  • Aperture 3.3 - The Previews mechanism appears to be entirely broken.

    TL;DR: In Aperture 3.3 are your Previews in Aperture there when they shouldn't be, and not there when they should? Try confirming this: I created a new Library with a couple of small albums for testing.  The Previews folder in .aplibrary is empty eve