Java software architecture - discussion forum

Hello,
I am looking for a forum where you can discuss software architecture topics. There are so many questions and controversal discussions in this field. I did not really find a forum for that in particular.
A few days ago I posted a question in the RMI-forum (by the way: with no answers so far) where I wanted to know how to distribute data from one source to many receivers (on the same JVM and also on different JVMs). The receiver should be able to select the data they need (so it not always the same data which is send to the different listeners.
My idea/suggestion was, to create this interface for example
public interface DataReceiver extends Remote {
  public boolean isRemoteObject() throws RemoteException�
  public void transmitData(MyData data);
}With that interface I am able to use RMI to access Objects on other JVMs as well as Object on the same JVM which are only implementing this interface.
Now I implement an ArrayList with DataReceiver-Objects and if data changes I can call the transmitData(..)-method of all these objects.
Is this a good way to do this, or are there better solutions. I am open to any help here.
I think this is not only a RMI-topic, because maybe a JMS-solution would be maybe a better solution. And why use RMI at all? Maybe a network/socket solution is faster.
By the way: Does anyone have experience in building a trading system (for algorithmic trading) ?
thanks
tk

Hello duffymo...
duffymo wrote:
1) Speed
If I use the RMI/interface-solution you can directly use the methods of the interface without having some layer in between if you are in the same JVM. This should be faster as JVM. I have no idea what the situation is like if the receiver is not on the same JVM. How fast is the RMI/interface-solution? How fast is the JMS-solution?RMI? Same JVM? No you're not - each remote client runs in its own JVM. What are you talking about? If they'er all in the same JVM, there's no need for RMI. That's just JavaBeans and events.o.k....from the start....some clients are on the same machine AND some are on different ones. Speed is essential here, especially for the clients on the same machine (components of the server itself). In using this interface you could manage clients no matter whether they are local objects or remote objects. The object that have to notify the clients even do not have to know whether the clients are on the same JVM or the data is forwarded via RMI (or sockets).
If the objects are local the "notification" is just a method call (therefore very fast) and if they are remote you have a pure RMI remote object call. Which also should be faster than JMS.
JMS, by definition, is asynchronous. The publisher sends off the message and doesn't wait for any response. It also doesn't worry about who responds, because it's up to subscribers to indicate their wish to receive the message.yes, so there is a lack of control, what I said. There many tasks where you need this, but there also many tasks where you cannot use MOM.
I have no idea why you're so worried about speed in that case....because this is the requirement !!!! I mentioned it several times. We are talking here about milliseconds. Each detour of the data flow or every data-copying (within the memory or even worse to a database/HDD) takes valuable time.
2) Control
the RMI/interface-solution provides more control. How can you say "more control" when you admit that you don't know JMS?You can get the idea of MOM (i.e. JMS) very fast I think. And I dealt with the topic for some time. I am working in the computer science for 17 years now, believe me, I am able to learn.
I�ve explored the acknowledge-methods of JMS and they all are very slow. You can not use this in a system where speed matters. And you get no direct feedback. (If receiver A and B subscribed to some data, how to find out that both got the data? The sender do not know its receivers and this is one source of the lack of control)
And: If you send the data via a method call, you can get a return value and exceptions. You are free to do (almost) eveything you want. Do you really want to say, that with JMS you have this kind of control?
The sender knows all the clients and can check, whether they have really received the message or not. Maybe even provide some feedback. Can you provide this with JMS?The whole idea behind publish/subscribe is that the publisher doesn't have to know.
JMS can be set up to guarantee delivery.Yes....BUT: I want to find the best solution to a GIVEN problem.
I think here speed is really what matters. And that is the main reason against using JMS. Therefore I think I do not have to deal with JMS any more. The idea of JMS is nice, and I will use surely use it in the future for some other projects, but here - I think - I cannot use it.
and something to "guarantee delivery" ... this is not always a good thing. In some cases the receiver do not want to receive "old data". It depends on the task to accomplish.
3) Messages
in the RMI-Interface-solution I can send almost all kind of objects to the client (serializable). As I can see you can also send java-objects via JMS, but it seems to be more complicated (messages have to match a standard (header, properties, body)...).Read more about JMS. Ditto for it if you send an ObjectMessage.???
And I said.....?????
I think the RMI/interface-solution is not easy. For example you have to use threads (incl. thread-pool) to send all the messages almost at the same time. On the other hand I think it is not too difficult and maybe worth the effort.RMI isn't easy, and it's brittle. Change the interface and all the clients change.yes, I agree. I faced a lot of problems with RMI. But then provide some alternatives. JMS seems to be too slow (and I do not have the time for coding an interface on the socket basis).
I think it is difficult and not worth the effort. JMO, of course.
JMS is done for you. You don't have to maintain that code.except the performance problem
The most important points are here reliability and speed. JMS is more reliable than anything you'll ever write, and it's fast enough."fast enough" .... how can you decide. I can tell you, it is not fast enough.
and reliable: yes I would prefer JMS here. really! I have to admit while reading the specs I began to like JMS. really. There are some chat-functions to implement. This should be very ease with JMS.
I think going down an RMI road for this would be foolish. I wouldn't do it.Maybe there are some other solutions. I will keep looking. And I will check the frameworks stefan.schulz mentioned.
I am very sorry, but I think this is a justified question. And this comment is not very nice at all. There are so many different areas in the Java-World, and no one can be expert in every field. I think this is what all the forums are about. Share knowledge and help others. It's not intended to be mean or demeaning. I don't know if you're aware that excellent commercial trading systems exist, written by people that wouldn't have to ask about RMI or JMS to do it. The fact that you have to ask suggests to me that you aren't one of those experts. If you're doing this as a learning exercise, I'd say go for it. Do it both ways in that case and learn for yourself. Just be realistic about the end goal: it won't be a system that will be used in production anywhere.I am in the financial business for almost 8 years now. And there are many different areas and roles. You have no idea what the systems are like, that I usually design (and they are very, very successful). I think your comments are rather unrefined. And maybe you should think about beeing a little bit more open-minded. You cannot prejudge everything.
Software development is very complex because of all the tools and methods in this field. Knowing when to use a tool/framework/method... is as important as knowing when NOT to use a tool/framework/method/...Yes, and knowing your limitations is also very important.what is the purpose of this last sentence?!
I really want to know!
You are the one, who wrote
JMS is more reliable than anything you'll ever write, and it's fast enough.Without knowing anything about the system (that is not true: I mentioned several times that speed is very important).
Without knowing anything about me...
I really appreciate your contribution here (it really helps), but I stick to it: it is not very nice to goof on someone.
regards
tk

Similar Messages

  • Java Discussion Forum - Post topic not working

    I've deployed the Java Discussion Forum contributed by CLAURENT in Knowledge Exchange. Deployed to 10gAS in JDev 9051. I've modified a few deprecated classes and made the appropraite changes to orion-applications.xml to point to the correct JPDK jars when deployed under Linux.
    The application is operating properly with no errors. The administartion portlet can modify and create new forums. However, Posting a topic does NOT work. And it doesn't throw any errors on screen or in the console log (application.log) or the log4j log (forumprovider.log). Has anyone run into a problem like this?
    Thanks. LEH

    I have exactly the same problem on the Portal 10g release 2.
    Normally the "dit of a new topic" calls the EditPostAction but after submitting the form, nothing reachs this action.
    I check this in debug mode and add several logs and I don't see nothing appearing for this action.
    Did you find a solution?

  • Projet : java based discussion forum

    hi all,
    i am planning to build a project based upon JAVA.
    the base concept is to build a java based discussion forum.
    this is my first independent project so can anyone please suggest answers to following questions :
    (1) how to start building a project.
    (2) for text editor in my project should i use any existing editor or should i create editor on my own.
    thanks
    pratz

    804658 wrote:
    and for the editor related question may be i was not clear with the question.
    actually i wanted to ask about the editor that the end user will use in my application to post his thought but ill appreciate if you could have asked me that for which editor i am asking the question instead of directly saying that i am not ready to build a project, that is really discouraging.Well, I'm just giving you honest feedback. If you don't even know how to start a project, then a discussion forum is probably a bit out of your reach.
    As for your question about the editor. I assume you're creating a web based discussion forum? Then the "editor" would be just a regular HTML textbox (most likely) that the user would fill with his text.
    But maybe you'll want to start with something smaller. For a discussion forum you'll need to know how to use databases, create web user interfaces and handle all sorts of other things. Do you know how to do those or did you think (like so many others here) that you'll just pick those up along the way?

  • JAVA Discussion Forum Portlet of craig Laurent

    Hi all,
    I downloaded the Java Discussion Forum portlet which is developed by laurent from Oracle Portal Integration Solutions site.
    But I have some issues in using this portlet.
    As per the instructions I have installed the portlet successfully in both OCS V1 and OCS V2.
    1) But in OCS V1 when creating a Topic or reply to a Topic the record is creating with a TIMESTAMP of 3 Hrs less than the actual time. I understand he is using CURRENT_TIMESTAMP to capture the time. When I checked by create a record in a dummy table with capturing TIMESTAMP directly in SQL*PLUS, correct time is capturing without any difference. This is the problem I am facing with OCS V1.
    2) In OCS V2 the problem I am facing is something tedious. When tried to create a Topic the record is not at all creating in the database, at the sametime no error message is also occuring.
    Can anybody please...... help me to sorted out these issues.
    Thanks & Regards,
    Durai.

    Hi,
    I am also having a problem in using Java Discussion Forum Portlet. I have deployed the portlet successfully in OCS V2(Portal Version 9.0.2.3.0B). But when I am creating a topic it is not creating a record in the database. I can be able to create forum, but I couldn't create a topic and reply topic. Should I need to apply any Patch.
    The same portlet which I deployed in OCS V1(Portal Version 9.0.2.2.22) is working fine.
    Please Advice me
    Regards,
    Durai.

  • Discussion forum software on Snow Leopard Server?

    Does anyone know if there is any discussion forum software included with Snow Leopard Server? Specifically, something like this support system itself? I know there's the wiki and the iChat server but they don't really seem to support this kind of open discussion system and I need something like this. I'm sure I could install something like Simple Machines Forum on the web server but, well, it's frankly too complex for most users if you ask me. Thanks in advance!

    nope, nothing like this is included. you'll have to install your own. there are many options out there.

  • How to develop a discussion forum using Java?

    I am actually developing a forum using Java. That would actually include registering process for a new user and if the user has an account, he can log in. The program should then generate a welcome message and a randomly-created password of 8 char (char+digits), this wil be printed on the screen. I am quite a newbie in this area.. Appreciate for ur help
    Thanzz....

    and what is more import than actual programming when making a software like a forum system is the database design.
    so first you have to designe your database
    decide which data that you have to store and decide what are the table that you will need and what columns that you want in the tables
    thats where you should start

  • Discussion Forum Portlet - Problems with JAVA and UTF8?

    Hi
    I installed the Discussion Forum Portlet successfully. It also seems that almost everything works fine. There's only a problem if I have new posts that include special German characters (Umlaute) like ä, ö, ü or special French characters like é, è or ç. They are saved correctly in the table but if you view the post the characters are not displayed correctly.
    Example
    input: ça va?
    result: ça va?
    I know that there are problems with Java and UTF8 Database. Is there a possibility to change this (bug)?
    Regards
    Mark

    Here's what I got. I don't see anything that helps but I'm kinda new to using SQL and java together.
    D:\javatemp\viddb>java videodb
    Problem with SQL java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver
    ] Syntax error in CREATE TABLE statement.
    Driver Error Number-3551
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in
    CREATE TABLE statement.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
    at videodb.main(videodb.java:31)
    D:\javatemp\viddb>

  • Integrated Solutions Java Discussion Forum

    Hi
    Here's some feedback on the above portlet. We have installed the forum in a separate OC4J container on 10g. It installed without any problems and is working correctly through Portal apart from the following.
    We are experiencing problems wth refreshing.
    a. If you reply to a thread the reply is placed second last on the page. You have to exit and re-enter the portlet before the lastest thread is displayed at the bottom of the page.
    b. Similar problem. Two users are accessing the forum. First user creates a new reply to a thread. The second user accesses the forum/topic and can see that the number of replies are correct but on accessing the thread cannot see the latest thread. They have to exit and re-enter the portlet before the new thread is viewable.
    In general users of the discussion forum may find it useful if security on the Portlet was enhanced to allow security to be attached to Products to allow Products to be public to all users or private to a group of users. The search would also required to be amended to only bring back forum information that the user has access to.
    Belinda Chisholm

    Hi Belinda!
    Thankx a lot for the comments, I appreciate.
    I've filed enhancements request for all the suggestion you provided. The development team should consider them in future enhancements.

  • Login issue in Apple Discussion Forum - Safari Only

    I can no longer log into my Discussions Forum account using Safari (3.1.2). When I log in I am taken to the Create New User page, where I get stuck in a loop. I can log into my account just fine using Firefox 3, which is what I'm using to write this.
    Please do not offer generic suggestions if you are not familiar with this specific issue. I don't want to hear advice about clearing my cache and cookies, etc. This issue has been reported several times in these forums and nobody has offered a viable solution.

    Hi Walter
    Forum software is not very multi-user friendly, nor (for sanity sake) encouraged. As you've discovered, switching from one user account to another requires deleting forum related cookies before logging in.
    Curious why you have more than one user account?

  • Java card confusing Issues!!!!!!! java card architecture, advantage!!!!!

    QUESTION -1
    As I know about architecture of any application is -
                    //normal java software                          java card                                  java card
                      //  1                                               2                                      3
    1-            application program                        host application                           host application
    2-                     JVM                                   Applets                                       Applets
    3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
    4                    hardware                              Operating system                                 H/W
    5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!!
    I think - case 3 is right!!!!
    As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program
    QUESTION 2- what is the advantage of java card.?
    // I think.
    as i read out , i got the line that it is platform independent and support multiple application. applicaton point of
    view , I am agree but how it is platfrom independent. if we use java card for smart card development, then
    i will purchase Java card from differnt vendor , all will provide me card with supported jcre inside it, so why
    this is advantage here?
    // in case of window based application , it really make sense  because if i will make any window application with java
    // i can run it in windows , linux , unix and most of os flavours, here i can see the beauty of java language.
    Clear me this and add some other java card advantages, which make java card goodquestion 3-
    Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
    going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
    contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
    want to select the applet and want to pass the apdu.
    ( a) how i can make host window application ? (i think awt will work for me? , *
    i never make any java window application yet) *
    ( b) still i dont have any java card , i want to make it by using simulator, is it possible?
      (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
    applet or from where i need to start.Regards:
    rohit pathak
    Edited by: rohit pathak on Feb 9, 2012 10:10 PM

    Hi,
    QUESTION -1
    As I know about architecture of any application is -
    //normal java software                          java card                                  java card
    //  1                                               2                                      3
    1-            application program                        host application                           host application
    2-                     JVM                                   Applets                                       Applets
    3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
    4                    hardware                              Operating system                                 H/W
    5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!! If you are using Java Card then JCRE+JVM = OS and if you put this on ein package 3 then 3 is correct according to me.
    As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program Actually it depends. There can be following models in this regards:
    1. Buy a empty smart card, Install your own OS and then write your applets for it.
    2. As you said, Buy a card with preloaded OS and then write applets for it.
    QUESTION 2- what is the advantage of java card.?
    * Interoperable: Applets developed with Java Card technology will run on any Java Card technology-enabled smart card, independently of the card vendor and underlying hardware.
    * Secure: Java Card technology relies on the inherent security of the Java programming language to provide a secure execution environment. Designed through an open process, the platform's proven industry deployments and security evaluations ensure that card issuers benefit from the most capable and secure technology available today.
    * Multi-Application-Capable: Java Card technology enables multiple applications to co-exist securely on a single smart card.
    * Dynamic: New applications can be installed securely after a card has been issued, enabling card issuers to respond to their customer's changing needs dynamically.
    * Compatible with Existing Standards: The Java Card API is compatible with international standards for smart cards such as ISO7816, or EMV. Major industry-specific standards such as Global Platform and ETSI refer to it.
    * Developers creating Java Card applications enjoy all the advantages of working in the Java programming language:
    Object-oriented programming yields greater code modularity and reusability, leading to higher programmer productivity.
    Protection features characteristic of the Java programming language apply to Java Card applets, enforcing strong typing and protection attributes.
    Powerful off-the-shelf development tools are readily available.
    source: http://java.sun.com/javacard/overview.jsp
    And also, in case of SIM card if you are using java card then RAM is possible and native cards don't have this ability.
    question 3
    Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
    going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
    contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
    want to select the applet and want to pass the apdu.
    ( a) how i can make host window application ? (i think awt will work for me? , *You can use swing for this to make interface and use smartcardIO http://docs.oracle.com/javase/6/docs/jre/api/security/smartcardio/spec/javax/smartcardio/package-summary.html for sending APDUs.
    i never make any java window application yet) * It is easy you can look here and start: http://www.roseindia.net/java/example/java/swing/
    ( b) still i dont have any java card , i want to make it by using simulator, is it possible?Actually, smartcardIO will only interact with actuall card and for simulator you will have to use console for sending APDUs.
    (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
    applet or from where i need to start.For your current case it is enough and for host app you should study smartcardio as i mentioned above.
    Hope it helps.
    Regards
    Umer

  • Issue Tracker, Bug Tracker, 0.9,Discussion Forum 0.91!

    Hi all!
    My question is very specific.
    I have Software Projects application in Russian edition.(I translate this application).
    I can put it for you.
    Do you have Issue Tracker application, Bug Tracker 0.9 application, Discussion Forum 0.91 application in Russian edition ?
    Thanks,
    Roman.

    Unfortunately the problem persists on OC4J904, so the alternative for you is to use OC4J902, you can setup a new container on a different port (other than used for 902) and register the provider using the direct URL of the OC4J902 container. This should solve the problem.

  • Discussion Forum portlet

    I get the following error after deploying the Discussion Forum portlet.
    JBO-30003: The application pool (config.AppModule.AppModuleLocal) failed to checkout an application module due to the following exception:
    HELP!

    Following is the application log
    10/20/03 1:49 PM forum: Servlet error
    oracle.webdb.provider.v2.utils.soap.SOAPException: Can't read deployment propert
    ies for service: dforum
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.locateService(Unkno
    wn Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Sourc
    e)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.
    ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.
    ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.
    ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.
    HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.
    AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadP
    oolThread.run(ThreadPoolThread.java:64)
    10/20/03 3:30 PM forum: 9.0.2.0.0 Stopped
    10/20/03 3:30 PM Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (lo
    calhost))

  • Software architecture  to utilize XML DB

    Hi,
    We're using currently using Toplink 9.0.4 with an Oracle 9i DB.
    I'm interested to find out what level of support there is in Toplink for the "new" XML DB features (in the Oracle 10g database for example).
    The material I've seen so far on the Toplink developer preview suggests that Toplink will manage mappings from an object model to a XML representation.....but that XML representation is purely an "in-memory" - i.e. it does not generate the "SQL" to store objects in an XML DB.
    There seems to be a gap in the way XML data is managed and the way Java domain models (and persistence ) are typically architected.
    The way we craft our services at the moment is based upon Java objects which encapsulate a request. Changing the contents of a request (e.g. adding a new attribute), breaks existing implementations that utilize that service (because of Java's serialization model).
    I'd like to define a service which takes a lump of metadata (passed as a generic object model, e.g. XML), but also allows that metadata to be evolving/variable/dynamic . The initial service implementation would look up a Java business object based upon the request information...include any transaction "attributes" from the request and persist it. Nothing new there, but what if I want to allow clients to attach "custom attributes" to their requests. The traditional model of request --> Java Business Object --> relational database seems to break down. Java Business Objects aren't typically very good at handling dynamic addition of properties.
    Does there exist a software architecture that allows for Java Business Object "properties" to be dynamically attached and persisted.
    It seems that the big push on XML is heading towards that goal....but at the moment I can't see how the pieces would actually fit together ......
    Apologies that my ramblings are a bit wild!
    Regards
    Mike

    TopLink 10.1.3 added XML support in three ways.
    - Object-XML mapping - Support was added to be able to map Java object to XML documents. This allows for in-memory two-way conversion between object and XML, and usage with XML messaging and web services.
    - Oracle XDB XML Type - Support was added to store a plain XML attribute of a Java object mapped in relational TopLink to an Oracle XDB XML type field.
    - EIS - Support was added to allow mapping Java objects to XML records and Interactions in a non-relational EIS system through a JCA adapter that supports XML records.
    From the sounds of things you may wish to:
    Use TopLink OX to map your XML messages to your Java object model. For the dynamic XML content you could use a Transformation mapping in TopLink OX to store this dynamic content in a plain XML field in the object. You could then use Oracle XDB and the TopLink XMLType mapping to store this dynamic XML content in an XMLType field in the database.

  • Correct software architecture

    Hello.
    I´m designing a complex application and I don´t know what software architecture is the best. I have been reading the "LabVIEW Intermediate I: Succesful Development Practices" manual. Lesson 3 gives the reader a lot of options for software architecture selection, but, although it gives a lot of explanations, I can´t find the correct one (maybe I should use a combination of some of them).
    The application runs in a PC. This application communicates with 4 controllers via CAN and with another one via Ethernet.
    Both communications are very asynchronous because I have to read a lot of data but send only a few.
    I have to receive a lot of data from the first controllers (CAN connection) and display a graph containing all data. Reception must be as fast as possible without losing any data. During graphic displaying time is important but not critical. In the other hand, is critical not to lose any data. I mean it is critical to collect all data although they aren´t displayed in "Real time".
    I have to send some data to the controllers via CAN but in this case, transmision rate can be quite slow, so I guess it can run in another loop.
    Communication with the other controller (via Ethernet) have a similar behaviour, but it don´t have to be as fast as CAN communication.
    Finally, I have a User Interface where basically I change parameters and send them to controllers so there are no intensive processing or activity.
    I have been thinking about using Master/Slave or Producer/Consumer architectures but I don´t know what architecture best fits my application.
    Can you help me?
    Thanks!

    Personally, I would stick with the producer/consumer approach for this in order to seperate out the UI code from the rest.
    Additionally, I would launch a background process (out-of-line via VI server, but I can't find any decent references at the moment) for each CAN so that the communication for each device can run in a seperate thread.  This way if one blocks up or generates an error, it won't block the others.  These VIs running in the background then send the acquired data via QUEUE to the main program.
    I've used this approach in the past for communicating in parallel with many devices and have found it to be very good.  The time required to get it up and running is maybe a bit longer, but in the end it's worth it.
    So basically, 1 VI 1 device on the level closest to the hardware and then one UI VI which communicates with the others via QUEUEs.
    That's my 2c, maybe someone else has a different approach.
    Additionally, Sorry I can't give an example of what I mean, or a decent reference but y quick saerch of the forum didn't show me anything useful.  With time it'll work, but I don't have too much time at the moment.
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Is it possible to run standrad Java software on th...

    subjectmatter: Geogebra
    But can it be done?

    It depends on what you mean with "standard Java software" (and I don't know what Geogebra is, and I'm not going to Google it)
    The N78 support standard J2ME, Java 2 Micro Edition software and the following Java standards:
    eSWT UI API 1.0.3
    IAP Info API
    JSR 118 MIDP 2.1
    JSR 135 Mobile Media API
    JSR 139 Connected, Limited Device Configuration (CLDC) 1.1
    JSR 172 J2ME™ Web Services Specification
    JSR 177 Security and Trust Services API for J2ME™
    JSR 179 Location API for J2ME™ 1.0
    JSR 180 SIP API for J2ME™
    JSR 184 Mobile 3D Graphics API for J2ME™
    JSR 205 Wireless Messaging API 2.0
    JSR 226 Scalable 2D Vector Graphics API
    JSR 234 Advanced Multimedia Supplements
    JSR 248 Mobile Service Architecture for CLDC
    JSR 75 FileConnection and PIM API
    JSR 82 Java™ APIs for Bluetooth 1.1
    Nokia UI API
    Message Edited by petrib on 13-Mar-2009 11:21 PM

Maybe you are looking for

  • Unable to connect my Apple TV to my wireless network

    Hi I have an Apple TVMC572LL/A I had to replace my wireless router.  I am now using a dual band router. I am unable to connect to the 5GHz signal offered by the router. It is a Netgear N750.  Is there an issue with this generation Apple TV and 5GHz?

  • Downloaded iOS 6 and now the App Store is running slow

    Ever since downloading iOS6 the App Store is running really slow. Especially on passbook.

  • Installer package!

    I have an installer package which is about 5MB, i need to edit some data on it!.. and this installer works with Mac OS Intel 10.4.9, is there away to let it work with 10.4.10 ?! i think there's softwares can do that ..just wonder if anyone knows abou

  • Create deployment profile on JDev 9.0.3.2 build 1145 doesn't

    Don't ask, I need to use this version for an old 9iAS portlet project. Running JDeveloper on SuSE 9.2 Pro Linux I can compile fine, but attempting to create a deployment profile (r click on project->new->deployment profiles->jar file, simple archive)

  • NOS 2.1 - Outlook sync issue

    I can't sync my Outlook 2010 (Beta) calender and tasks. However, i able to do it with Nokia PC Suite 7.1 R40.1 I am using Windows 7 Enterprise. Handphone is Nokia X6. The error message: Sync canceled Could not sync calendar items and tasks. Plug the