Poor architecture-wise solution?

I can't understand why a tool makes it obrigatory to bind view to databases!
I recently moved from NetBeans to Studio Creator in hopes for quicker development but was stunned with the impossibility of binding a simple dataTable to a ArrayList, for example.
Can't I bind a table to an ArrayList?

I can't understand why a tool makes it obrigatory to
bind view to databases!
I recently moved from NetBeans to Studio Creator in
hopes for quicker development but was stunned with
the impossibility of binding a simple dataTable to a
ArrayList, for example.
Can't I bind a table to an ArrayList?Of course you can. You need to use a ObjectListDataProvider for the Table component.
Best regards.
Antonio.

Similar Messages

  • J2EE Architectural Design Solution Needed

    Hi,
    I am coming up with an issue in designing the application architecture. It would be great if some one suggest solution for the problem.
    The basic flow of application:
    1. Client initiates a transaction from a Portlet.
    2. Portlet invokes business service component (Coarse grained Stateless Session Bean) by passing XML document.
    3. Corse grained SLSB process the incoming XML and invoke local session beans by passing relevant Document objects built by using service API.
    4. Based on Incoming Message, message splits and placed on multiple destinations (Linked by Message Queues) hosted on Enterprise Service Bus (ESB).
    5. A Message driven bean listens to the incoming request at Queue and invokes external services/Web services
    6. Response xml is built and placed Response Queue in ESB by invoking business service API.
    6. A MDB listening to the Response Queue will process outgoing messages which needs to be routed to original request invoker.
    The Messages are linked with correlation ID and request and response are tied by some rules and business logic.
    The design problem I am facing now is, how do my client waits till response comes from response queue as application need to give response to the client in synchronous manner.
    The other issue is some of the incoming requests need to be executed (placing in queue) in orderly fashion and run in a transaction. (Which I am trying to process them as command Lists in prototype using Message sets and flows in MQ, but is there any implications if try to push this logic to J2EE container)
    Thanks,
    Madhu Palutla

    I think that you need not worry about the client waiting for the response..since this is a simple request response cycle and is synchronous...thus the invoker need to wait for the response anyway.
    Secondly, I hope that you would definitely carry the points 4,5, and 6(the actual 6
    ) in a transaction, the option to choose the programmatic or declarative always remains on you.

  • Lightroom 1.1 Import Stall and Poor Performance: a solution?

    My lightroom is extremely slow (unusable) when trying to import approx. 1000 JPGs into a brand new, fresh catalog. I've got a Intel Mac 2.33Gz MBP w/2G RAM running 10.4.10 and lots of free disk space.
    A workaround?: As soon as I select "Quick Collection" during the import (since I currently have no images in "Quick Collection", no images are displayed during importing), the import process immediately started progressing at reasonable and acceptable speeds. So this import performance and stall seems to be related to lightroom trying to display photos or metadata info on image sets that are in the process of being imported.

    Jerry,
    What you suggest really is not an effective solution. Go to File>Catalog Settings>Metadata and uncheck 'Automatically write changes into XMP'. That should speed it up considerably. If you have already done that and are still having the problem, do a search for other solutions.

  • Poor battery life solutions?

    I purchased my iphone 4s 6 months ago.  Didn't have any battery issues until last week.  Now I can't keep a full charge for longer than 6 hours, and that is with little if any use of my phone.  I haven't installed or changed anything that caused this.  I have always had wi-fi on, so not sure that is the cause of the change.  Turned wifi off today and didn't see any improvement.  If you know of a solution, please help.  I'm using IOS 5.1.1 and have not downloaded IOS 6 onto my phone yet.

    My iphone 4s had the same issue. I had to get a new phone, check in with the apple store closest to you and see if they are any help.

  • "itunes" not supported on this architecture any solutions?

    i've just managed to update my itunes to the 10.4 version however the above message appeared after restart and installation was complete, does anyone know the cause of this issue and how to resolve this please?

    Hi Mike
    Thanks for the reply, not sure what I've done to loose things but downloaded iTunes again after saving my library and everything seems fine now, only thing is I've also lost iDVD which I cannot replace, however I was in the process of upgrading to iLife 11 so I'll probabaly get iDVD back when I upgrade.
    many thanks for the reply
    Steve

  • New Solutions And Architectures Community

    I am pleased to announce the launch of our new Cisco Solutions and Architectures Community with sub-communities for Borderless Networks, Collaboration, Data Center & Virtualization.  We encourage everyone to share their knowledge and start conversations  related to network design and overall Cisco network topology.
    All topics are welcome, including WAN, LAN, enterprise, service provider, data center / virtualization, wireless, security, collaboration, voice & video network design architecture and solutions to solve business problems.
    The  content from our pilot Network Infrastructure “Design and Architecture”  community will be merged into the appropriate Solutions and  Architectures sub-community.
    Cheers,
    Dan

    Hi,
    I have a question...
    I going to install two Nexus 7009 with three N7K-F248XP-25  modules on each one, I am planning to create 3 VDC, but at the initial configuration the system does not show the ethernets ports of these modules, even with the show inventory and show module I can see tah the modules are recognized and its status is OK. There is something that I have to do before start to configure these modules...? enable some feature or license in order to see the ports with show running CLI...?

  • Migrating Oracle Forms to BC4J Architecture

    Hi,
    i'am currently searching for people/guidelines who experienced the migration
    from Oracle Forms to a BC4J architecture; with a JavaSwing client interface.
    Did they succeed ?
    What we're the pitfalls ?
    What did they do with the typical Oracle Forms built-ins ?
    Which framework, migration products,etc did they use ?
    All info is welcome.
    chris

    we just had a workshop validating the tool from Informatic Atelier.
    We were disappointed as the tool gives poor or no solution for the Business Logic in the form module.
    User Interface - Oke moreOrLess (Jtable rrrrrr!!!)
    Data - oke; BC4J ;Entity object no problem; View objects no problem
    Business Logic - NOT oke; trigger code and program units are dumped into a java file; the rest is up to you.
    This leaves a lot code to translated and reviewed. Don't forget that our client forms contains lots, lots of business logic.
    Chris

  • Welcome to the Design and Architecture Community

    Welcome to the Network Infrastructure Design and Architecture Community.  We encourage everyone to share their knowledge and start conversations on design and overall network topology. All topics are welcome, including requirements and constraints of the network, tools and techniques, issues of hierarchy, leading practices, services, build strategies, architectures and solutions to solve business problems.
    Remember, just like in the workplace, be courteous to your fellow forum participants. Please refrain from using disparaging or obscene language or posting advertisements.
    Cheers,
    Dan BruhnCSC Community Manager

    been waiting to see a forum like this. This forum should amalgamate all the other areas like R&S, security, DC design, and provide more quality , proven solns and discuss problems/challenges as well. Will be following this forum regularly
    thanks dan for creating this community
    Regards Kishore

  • New Network Infrastructure Design and Architecture Community

    All,
    I'm pleased to announce our new Network Infrastructure Design and Architecture Community.  In this community we encourage everyone to share their knowledge and start conversations on design and overall network topology. All topics are welcome, including requirements and constraints of the network, tools and techniques, issues of hierarchy, leading practices, services, build strategies, architectures and solutions to solve business problems.        
    Who will be the first to make it on that leaderboard?
    Cheers,
    Dan     

    Mike,
    Thanks for the kind words about the community.  It's always nice to hear the things we do make a difference. 
    Launching a scripting community has come up a few times in the past and I'm open to it.  Anyone else have thoughts on this?
    On a separate note, you'll be thrilled to hear what one of our CSC booth give-aways will be at Cisco Live San Diego next week.  Your best friend the cross-over-cable    For those of you out there attending the event be sure and stop by the CSC booth.
    Cheers,
    Dan

  • Performance wise data representation

    Hello there,
    I would like to start discussion regarding performance wise solution implementation solution,
    From performance point of view, which choice would be better to be chosen among the following scenarios,
    1. one is to run a process run on every and each record in the a Huge table, for example with million records, for all the records,
    2. or to have another table which might have about 800 fields !! which might represents a map crossing the id values in the main Huge table, which must be filled based on the values in the main table!! as a pre-processing
    then instead of processing the Huge table, simple query the map table which could be indexed using the needed values,
    what is the order of causes of bad performance, a process on many records, or many records that represents a pre-processing
    many thanks

    Thank you Billy for replying,
    Billy  Verreynne  wrote:
    Nor is performance something that one looks at after the design is done and the code written. Performance is a primary factor that needs to be considered with the h/w bought, the s/w installed and configured, the design, and every single line of code written.yes, currently I am in the design phase so that I am trying to understand the major performance principles that might effect the software when dealing with huge amount of data , whether pre-processing would be better, and such implementation issues.
    Here is the case logically:
    The process I have mentioned in the post, corresponds to a procedure that must be applied on data from a table, then return a certain value, calculated on the fly.
    some of those processing might not needed to be done , so in order to avoid huge unnecessary operation I need to perform some kind of predicating or indexing based on certain values.
    what is the best practice for such scenarios, performance wise!
    Thanks

  • Question about architecture

    Hello
    I have a question.
    I have been working in a Content Management with Java at my job.
    The Java architect proposed the following architecture as solution.
    ----WEB LAYER----
    JSP
    Struts
    ----Business Layer----------
    Manager Classes
    Hibernate
    ----Data Layer----
    DB
    The web server is Tomcat V6 and MySQL is the database
    I have a dude about this architecture. In order to don't use persistence objects in the WEB layer(because it cause Permgen memory problems), the Manager Classes will have methods to transform persistence objects to DTO objects(these objects will be used in the web layer), with the use of getters and setters. I think that these changes wouldn't solve the memory problems.
    What is your opinion about this architecture? Do you have any idea to improve it?
    Thanks for all.
    Nickolas

    Using persistence objects in the web layer shouldn't in itself increase your memory usage, but I can imagine that it would make it a lot easier to write buggy code with memory leaks.
    Having done this sort of thing for years, my advice with this sort of architecture is:
    1) Don't use JSPs, which stink. Use Velocity instead, or some other lighter-weight way to format the user-visible content.
    2) Keep the web tier as thin and light as possible. Because a lot of frameworks (like Struts) provide some tools to manage data, there's a tendency to put lots of business logic there (and if there's an explicit business logic layer, often it isn't utilized). Don't. It becomes unmanageable.
    Try writing your app without a web tier at all. Imagine creating a command-line-only interface to your business logic. (Or, a JUnit interface or the like.) Then wrap the web tier around it. This actually makes for easier testing as well.
    3) Swapping data between data objects is the path to madness. Try object-oriented programming instead. Design your app with classes that have well-defined responsibilities. Keep data close to the operations that use it. Encapsulate as fervently as you can.
    As for the rest of your post -- I have no idea what you're trying to accomplish, or even demonstrate, with your example.

  • Service Solution

    Hi All,
    I want to frame a query which will give me call wise solutions entered in the service -> Service Call -> Solutions.
    I am unable to find a link between OSCL i.e. SERVICE CALL MASTER & OSLT i.e. SOLUTIONS MASTER tables.
    Apart from item code i did not found any link column.
    If i use that then the solutions are not getting listed call wise.
    Pls. help.
    Thanks
    Malhaar

    Hi Malhar
    Try This
    SELECT     T0.[callID],T0.customer, T0.custmrName, T1.ItemCode, T2.ItemName, T1.SltCode, T1.Subject, T1.Cause, T1.Descriptio,  T3.srcPath, T3.trgtPath,
                          T3.FileName, T3.FileExt, T3.Date, T0.userSign
    FROM         OSCL AS T0 Left outer join
                          ATC1 AS T3 ON T0.userSign = T3.UsrID CROSS JOIN
                          OSLT AS T1 left outer join
                          OITM AS T2 ON T1.itemCode = T2.ItemCode
    Thanks,
    Srujal Patel

  • Java app with web service and servlets

    Hi. I intend to make a java application which exposes some methods as a web service and as jsp/servlets. It's core functionality is not really web centric, but its more a java app with a web tier. I am not sure about how the architecture of such a system would look like using the java platform. I currently see three options:
    1. Run everything in a servlet container like tomcat. I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web services. However, it would be really easy just to put everything into tomcat and use ServletContext to maintain some global objects.
    2. Use a Java EE to seperate application/business logic and data access into session beans and entity beans. I hesitate to this because it seem a bit overkill because the system isn't very big or complex right now. It also means that I would have to learn to use EJB's instead of just using some POJOs.
    3. Run the web tier in a servlet container and the main app in a separate JVM, and then connect the tier by sending serialized objects over TCP sockets. I don't like writing network code but at least there is some separation of the tiers.
    What would you do? Maybe I have overlooked a much better solution to the problem?
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) instead of the something quick and dirty that is hard to defend.

    jschell wrote:
    Run everything in a servlet container like tomcatTomcat is a JEE container.Now I am confused. Maybe you mean Glassfish? Tomcat is definitely a web container(?).
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) That pretty much makes it impossible then.
    1. A "Right" solution is generally only proven by time.
    2. It requires a great deal of knowledge about the business domain.Yeah, you are right. Let be try to rephrase it. What solution (pattern) would be considered the most common or appropriate when you have a Java App and want to expose a few methods as a website and web service?
    I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web servicesHuh? Do you already have an exposed web service? If you already have a server which other clients communicate then where does this functionality that you don't want to be tomcat running now? Or where do you think that you want to run it? And if you are or do run it somewhere else then tomcat could access it the same way any other client accesses that server.Sorry, that sentence was written badly. I don't have anything right now. What I meant to write was that I will have a lot of application scope data, objects that are kept in memory as long as the server is running, shared by multiple servlet instances.

  • Major problem with my Creative Zen Touch 20gb pla

    I seem to be having some serious problems with my player - the scroll button no longer works, and the right-side buttons (Back, Play/Pause and Forward) all malfunction as well. The main issue is the scroll button - this no longer works at all, and without this function the player is essentially useless in all modes other than 'random' - as I cannot scroll down to choose songs by album, artist, genre etc. Even in 'random' mode, the functionality of the player is negligible - I cannot fast forward a track, as if I hold down the 'forward' button it automatically skips forward to new tracks without the chance to play one of them.
    This is not the first time I've had a problem with this particular model - I've had complaints before on this forum about an earlier player I had (same model), a different problem but one that was never fixed - through my own error I misplaced the receipt and was unable to have the player fixed (it was within warranty at the time), so I had to pay ?50 for a replacement - to find that this player is now essentially broken as well has left me disgusted, in honesty. Details of the earlier problems with my former player are at the following link:
    http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=5966
    As if this wasn't enough, I actually experienced problems with my newer player almost from the off - the data folder malfunctioned, to the extent that files I'd placed in there were unable to be removed - eventually I had to format the player, not only losing important data from the data folder, but also experiencing the inconvience of having to spend many hours putting all my music back onto the player once it had been formatted. This was not a massi've issue, more a minor irritance, but again it's left me wondering what the problem is...is this model notoriously poor performance-wise? Three major errors on two separate players, two of them seemingly fatal to the use of the player, inside the space of just over a year is utterly ridiculous, I think.
    At this point, I'd like to know what I can do to get a reimbursement on the cost of my current player, as opposed to a replacement - although I have found the performance of the Zen Touch 20gb to be generally very good, I'm not willing to put up with having each new replacement fail within a year of receiving it. I have lost all confidence in Creative providing me with a player I can rely on, to be honest.
    If anyone could point me in the right direction with regards to finding out how I can go about receiving a refund on the price of my player, I'd be very grateful.
    Thanks in advance for any help.
    Simon O'Brien

    Simon, this is actually a common problem with the touch. Mine did it about a year after purchase, so I was safe to open it up and fix it. It is actually a really simple fix and is due to a loose connector. I know alot of other people on nomadness.net were having this problem, so I posted a solution here. Hope this helps!
    http://www.nomadness.net/modules.php?name=Forums&file=viewtopic&p=42838

  • Integrity problem

    I have oracle 10g
    I have two tables:
    create table Faktury(
    nr_faktury varchar2(20) constraint pk_faktury primary key,
    data_wystawienia date default SYSDATE not null,
    and
    create table Pozycje_faktury(
    nr_pozycji int constraint pk_pozycjefak_faktury primary key,
    nr_faktury varchar2(20) not null,
    constraint fk_pozycjefak_faktury foreign key(nr_faktury) references faktury,
    I want to be sure that each record from Faktury have at least one record in Pozycje_faktury.
    What is the best solution for this problem ?
    I wrote this trigger:
    CREATE OR REPLACE
    TRIGGER MaPozycje
    BEFORE INSERT OR UPDATE
    ON Faktury
    FOR EACH ROW
    DECLARE
    ile INTEGER;
    wyjatek_error EXCEPTION;
    BEGIN
    SELECT count(*) INTO ile FROM Pozycje_faktury WHERE nr_faktury=:new.nr_faktury;
    IF ile = 0 THEN
    RAISE wyjatek_error;
    END IF;
    EXCEPTION
    WHEN wyjatek_error THEN
    RAISE_APPLICATION_ERROR(-20002,'Faktura should have at least one record from pozycje_faktury');
    END;
    But now i can't add any record to table Faktury.
    Is passible to deferrable this trigger when I executing transaction ?
    Maybe is another solution for my problem.
    Thx
    Edited by: user10428397 on 2009-01-15 13:19
    Edited by: user10428397 on 2009-01-15 13:21

    Normally, rather than trying to enforce this via a trigger, you would create a stored procedure that could insert the data into both tables and then verify at the end that whatever business rules you'd like to enforce are enforced before deciding whether to commit or to throw an exception. Then you'd direct all your code through that stored procedure and revoke privileges to directly manipulate the tables in question.
    If you are constrained in some way that prevents this more architecturally appropriate solution, you could create a fast refreshable, on commit materialized view that does an outer join between the two tables and put a NOT NULL constraint on a column from the child table that materialized view. The materialized view would be refreshed when the transaction committed, at which point the NOT NULL constraint would be evaluated. If there was no record in the child table, the NOT NULL constraint would generate an exception and the commit would fail. Of course, this is generally way more complex than a nice stored procedure interface.
    Justin

Maybe you are looking for

  • How can I write an AppleScript to help organise my emails better?

    Hello, I have a situation that I think would be best solved with the use of AppleScript, however I have never programmed with it before. I've tried reading lots of sample code that does similar things, and playing around with the language, but I thin

  • Payment Run program for china country code

    Hi all, We have a requirement where, after running a payment program we need a generate a dme file. till now we were using rffod__u which is for derman, But our requirement is for china. Can anyone suggest which is the payment run program that is use

  • Xi mapping issue

    <Header>   <Id dt:dt="i4">270</Id>   <Time dt:dt="dateTime">2008-03-19T08:54:26</Time> <Node1>   <Amt dt:dt="fixed.14.4">20</Amt>   <IsPIO dt:dt="ui1">1</IsPIO> <Node3>   <IsOut dt:dt="ui1">1</IsOut>   </Node3>   </Node1>   </Header> <Header>   <Id d

  • Can two AA versions co-exist?

    I am currently running AA1 and have purchased AA3.  Before I proceed can AA3 co-exist with AA1 after the install?  I have several projects produced using AA1, and if I encounter issues with AA3 I want the option of using the original software.  As fa

  • Marge....

    merge into student a using department b on (a.deptid=b.deptid) when not matched then update ser dept='N/A' where deptid is null WHEN MATCHED THEN UPDATE SET dept=deptname error in the query.....it possible to use update statement in both case??????