Best way to access/deal with ResultSet !! ????

Hi Friends,
My Current strucuture of coding is a Centralised Java Bean which act as Connection Object Supplier Program to all JSP which needs DB Connections.
So In my Jsp i used to hook a method of Java Bean which provides Connection from WebSphere DataSource Pool(WAS3.5.5-JDNI LookUp etc .etc).
Jsp pages creates Statement,ResultSet , executes SQL queries and in finally block closes all connection in orderly way 1st RS,then Stmt and Conn. I send this conn object back to Java Bean and make sure closed at Java Bean also.One ClosAllConn method added specifically for this in Java Bean.
Now the Q ?: is this right way ?? I have seen the
codes all SQL operation at Java Bean end including Firing of SQL and sends back the ResultSet abck to JSP and close RS in JSP. Just by closing RS will it make sure all related objects incl Conn. got closed ie send back to pool. Or should i send this RS back to JavaBean and get related Statement Obejct (RS.getStatement) and Conn obj(Stmt.getConenction) and close all there at Java end
Pls comment

Hi,
You could make rs, stmt and con private to javabean
and declare a cleanUp() method in javabean
which will do this -
if(rs!=null){
rs.close()
rs = null;
if(stmt!=null){
stmt.close();
stmt = null;
if(con!=null){
con.close(); /* or return connection to connection pool */
con = null;
And, you can call this method in JSP in both try and catch.
Also, you could have executeQuery() or some such method in your javabean which will get a connection from connectionpool and execute SQL and return Resultset to JSP
try{
String strSQL = "SELECT * FROM sometable";
YourJavaBean jBean = new YourJavaBean();
java.sql.Resultset rs = jBean.executeQuery(strSQL);
if(rs!=null){
while(rs.next()){
/* do something */
jBean.cleanUp();
} catch (Exception ex){
jBean.cleanUp();
Doing most of the SQL stuff in java bean will reduce compilation and load time of JSP and hide SQL implementation from presentation logic in your JSP.
Bottomline is JSPs should mostly contain only user interface and user interaction handling code and other
business or technical implementation should be in java beans (Boundary classes in OOAD) or entity managers (Controller classes in OOAD
terms)
Hope this helps.
Regards,
KD
Hi Friends,
My Current strucuture of coding is a Centralised Java
Bean which act as Connection Object Supplier Program
to all JSP which needs DB Connections.
So In my Jsp i used to hook a method of Java Bean
which provides Connection from WebSphere DataSource
Pool(WAS3.5.5-JDNI LookUp etc .etc).
Jsp pages creates Statement,ResultSet , executes SQL
queries and in finally block closes all connection in
orderly way 1st RS,then Stmt and Conn. I send this
conn object back to Java Bean and make sure closed at
Java Bean also.One ClosAllConn method added
specifically for this in Java Bean.
Now the Q ?: is this right way ?? I have seen the
codes all SQL operation at Java Bean end including
Firing of SQL and sends back the ResultSet abck to JSP
and close RS in JSP. Just by closing RS will it make
sure all related objects incl Conn. got closed ie send
back to pool. Or should i send this RS back to
JavaBean and get related Statement Obejct
(RS.getStatement) and Conn obj(Stmt.getConenction) and
close all there at Java end
Pls comment

Similar Messages

  • Best way to access my mac G4 files when working on a windows pc laptop

    Hi - I'm looking for ideas on the best way to access files stored on my G4 mac, when working on a pc laptop elsewhere in the house.
    I'm not sure if this involves setting up a network, or whether I should be looking at ftp or even bluetooth.
    Just to explain what I'm after: I'm writing a book, primarily on my g4 (running panther) in my study. But I spend a large proportion of my day running after my rampaging toddler. I'd like to make better use of my time by being able to grab my partner's laptop and write while my toddler is occupied for twenty minutes.
    Messing around with a memory stick etc would just take too long as I'd have to remember to update the main file. It would get very messy!
    I hope someone can help!
    Thanks, Tina
    Message was edited by: tinaMac

    Between the networking question(s) to connect the two different platform
    computers, using Sharing and other settings in each, the next question is
    about the software used in the documents you are to be creating in one
    and sending to the other.
    Do you have a similar word processing software for the PC as in the Mac;
    or something compatible in creating and using .RTF documents, etc. Or,
    if you have a Windows version of AppleWorks, that would work. And the
    TextEdit in your OS X can handle rich text format word processing; and
    probably open basic text from a PC fairly easy. (And Word, etc, can.)
    Issues in sharing, are such that you have to be careful when changing the
    settings in your computers, that you don't accidentally share your computer
    contents with other persons and computers in the vicinity. By wire would be
    the most secure, since Ethernet can be used locally to share.
    Internet and wireless may be a possibility, too; or using a local shared external
    drives, if visible to both computers, depending on the network setup.
    Do you have a USB hard disk drive set up on your wireless network, and
    formatted in Fat32 so the Mac and PC can both see and use it? If so, you
    may be able to send documents to there from the PC and use them in the
    Mac. This may work, and depending on how the files were organized, not
    too hard to keep up with the draft copies generated from the PC for use in
    the Mac at a later time, and so on. This way, both computers would not
    need to be on, to send & receive a file...
    {For that matter, using a Google Account could be helpful;
    to just email the writing to yourself, at any computer.}
    Anyway, there are several possibilities, including those in the link to another
    discussion on that topic per the above post.
    Good luck & happy computing!

  • Best way to share analytics with 3rd party?

    What's the best way to share analytics with a third party (our client in this case)? Setup a new DPS user and restrict access to just analytics (is that even possible)? Is there some other software out there to accomplish this? Perhaps something that scrapes itunesconnect? Basically, our client wants sales numbers. I'd like to go a step further and provide content stats.
    Any ideas?
    Thanks,
    Chris

    Use the export button in the slideshow to create a video file of your slideshow. Copy it to an USB stick, and transfe it this way to the computers of your friends.

  • What is the best way of accessing application module without page binding?

    Hi All
    I am using Jdeveloper 11g R2 (11.1.2.3) & Weblogic 10.3.5.0
    What is the best way of accessing application module without page binding?
    In my application after user authenticated from LDAP
    I need to read some information from database and set my menues.
    Thanks
    Mohsen

    Hi,
    if you don't have a binding the I am not sure the binding context is created. Anyway, try
    BindingContext.getCurrent().findDataControl("name here as ID in DataBindings.cpx") and see if it returns a valid instance
    Frank

  • What is the best way to stream sports with Apple TV

    What is the best way to stream sports with apple TV

    Your question is a little too broad. Hard to know what sports you are talking about.
    If you have a newer Mac, you can use airplay to mirror anything on your Mac to your apple tv. Or use the ESPN app.
    But a lot of sports just can't be streamed as they are available, though I bet this year sees a lot of new livestreams on sports on YouTube or Ustream.
    Hugh

  • The Best Way to engage InDesign with InCopy

    Hello Mr./Ms.
    I have some question about collaborating between InDesign with InCopy. My question is which one the best way to engage InDesign with InCopy, the way number one or number two?
    Usually, I make assignment first in InDesign, and I put that file (.inca) on a server. So the editor can open the inca file from server. Instead of Editor, I take the incx file from server.
    The Editor directly open Indd File from server, so I'm not necessary to create assignment file.
    I hope someone can help to solve this my problem. Thank you very much for attention.
    note: What server and network requirement for best result InDesign and InCopy workflow?
    Best Regards,
    Bambang Damayanto
    [email protected]

    I respectfully disagree; I think assignments are in most cases (not all) more trouble that they're worth.  For your local work, continue w/INDD files only. It just makes things simpler.
    When an editor wants to work on something off-site, the designer can make an assignment on the fly for them.  It could even be the entire document as one large assignment. Since the stories are already exported, you just need to make the assignment (Create New Assignment from the Assignment panel menu) and the drag/drop the linked stories to that assignment. Other people can still open the INDD file but they won't be able to edit the stories that were packaged for the remote editor.
    AM

  • Hello! I have a MAC OS X version 10.6.8. What is the best way to access to lion?Thanks

    Hello,
    I have OS X version 10.6.8. What is the best way to access to lion?
    Thanks

    You obtain Lion by purchasing, then downloading and installing it over the internet from the Apple App Store.
    Hope this helps

  • Best way to export data with r.t. prompts and have dense dim mbrs on rows?

    Hi All-
    What is the best way to export data with Run time prompts out of Essbase?
    One thought was to use Business Rules with run time variables and DATAEXPORT command, but I came across at least one limitation where I cannot have months (part of dense Time Periods dimension) on rows.
    I have only two dense dimensions: Accounts and Time Periods and I need both of these on rows. This would come handy when user enter Start and End month and year for data to be exported e.g. If start period is Feb 2010 and end is Jan 2011, I get data for all months in 2010 and 2011.
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000",14202.24,14341.62,14560,13557.54,11711.92,10261.58,12540.31,15307.83,16232.88,17054.62,18121.76,18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000",19241,21372.84,21008.4,18952.75,23442.13,19938.18,22689.61,23729.29,22807.48,23365,23915.3,24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000",21364,22970.37,23186,27302,25144.38,27847.91,27632.11,29007.39,24749.42,27183.39,26599,27112.79
    where ideally I would need to get the following:
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Feb",14341.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Mar",14560
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Apr",13557.54
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","May",11711.92
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jun",10261.58
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jul",12540.31
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Aug",15307.83
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Sep",16232.88
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Oct",17054.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Nov",18121.76
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Dec",18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Feb",21372.84
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Mar",21008.4,
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Apr",18952.75
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","May",23442.13
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jun",19938.18
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jul",22689.61
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Aug",23729.29
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Sep",22807.48
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Oct",23365
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Nov",23915.3
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Dec",24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000","Jan",21364
    Thank you in advance for any tips.

    Have a read of the following post :- export data to sql
    It may give you a further option.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Best way to control voltage with my code?

    I need to be able to control current and voltage of a power supply. What would be the best way to implement this with my code? I realize that I need to use a DAQmx Start and Stop task. I *think* I would like the task to start when the user runs the program. The voltage and current should be 0 when I start it, or a really low number.
    Currently, the program I am working off of using TraditionalDAQ. It uses 'AO Write One Update.vi' to update the voltage and current. 
    How can I use DAQmx to achieve the same? Is it possible to also have the DAQmx code in an event structure in the same way?
    Can I do this in my event structure, in a new event? The code below shows my code. There are two loops, the bottom one handles acquisition and logging. The top one handles the events.

    There are an excellent series of NI Tutorials on DAQmx.  Not that they are easy to find, but start here:  DAQmx White Papers.  This is an especially useful White Paper:  The Top 10 DAQmx Functions.
    Something that also helps a lot is to configure your device using MAX (and use MAX to run it to be sure it is working correctly).  Once you have it configured, save it as a Task, which encapsulates all of the "picky details" (such as channel names/numbers, sampling rates, clock sources, etc.).  When you go to write your code, simply right-click on the Start Task VI and create a constant, expand the Constant (which should show you MAX's Tasks), and choose the Task you just created.  No need for numerous confusing DAQmx Configuration VIs.
    Bob Schor

  • Best way to bundle JavaHelp with application

    What is the best way to bundle JavaHelp with an application....
    At present I have to run the application that uses JavaHelp as follows
    java -classpath ;lib/jhall.jar HelpMenu
    Is there a better way? so that when the application is moved to a client machine the classpath to the javaHelp jhall.jar does not have to be supplied as above?
    Cheers :)

    If you don't want to specify the classpath you can
    1> either create a batch/shell script with lauches the app with the appropriate classpath
    2> You jar your app and specify the classpath in your jars's MANIFEST.MF file like this.
    Main-Class: main class name which will launch the app
    Class-Path: jhall.jar
    The above entries assume jhall.jar is in the same dir as your main jar. You can put more jars in the classpath above by separating them with space.
    With this the app can be just lauched by typing: java -jar filaname.jar

  • What's the best way to connect Cognos with SAP 4.6c on iseries V5R4

    We have SAP 4.6c on iseries V5r4.
    What's the best way to connect Cognos with SAP so that data could be extracted from SAP and create reports with Cognos.
    Thanks
    Joe

    DB2 Connect version 8.2 is no longer supported by IBM (support ended April 30, 2009, see http://www.ibm.com/software/data/support/lifecycle/). As far as I know, DB2 Connect is communicating through DRDA, which is a platform-independent protocol supported by all DB2 platforms, so any DB2 Connect client should be able to talk to any DB2 database. However, there may be limitations on the supported release combinations.
    Kind regards,
    Christian Bartels.
    Edited by: Christian Bartels on Sep 6, 2010 4:17 AM

  • The best way to get help with logic

    I was posting in a thread on support for logic which appears to have been deleted. anyway, what I was going to say I think is useful info for people, so I'm going to post it anyway. to the mods - it doesn't contain any speculation about policies or anything like that. just an explanation of my views on the best way to deal with issues people have with logic, which I think is a valuable contribution to this forum.
    I think there's a need for perspective. when you buy an apple product you get 90 days of free phone support to get everything working nice and neat. you can call them whenever, and you could actually keep them on the phone all day if you wanted, making them explain to you how to copy a file, install microsoft office, or any number of little questions no matter how simple - what is that red button thingy in my window for?.. on top of that, you've got a 14 day dead on arrival period (or 10 days I can't remember) in which if your machine has any kind of hardware fault whatsoever it's exchanged for a totally new one, no questions asked. a lot of people complain that applecare is overpriced.. and if you think of it just as an extended warranty, then it is a little pricey. but if you are someone that could use a lot of phone support, then it's actually potentially a total bargain. the fact that 2 or more years after you bought a computer, you could still be calling them every single day, asking for any kind of advice on how to use anything on the machine, is quite something. many people on this forum have had problems when they made the mistake of upgrading to 10.4.9 without first creating a system clone or checking first with their 3rd party plug in vendors to make sure it was ok. so, with apple care, you could call them and keep a technician on the phone _all day_ talking you through step-by-step how to back up all of your user data, how to go through and preserve your preferences and any other specific settings you might not want to lose, and then how to rollback to an earlier OS version.. they'll hold your hand through the whole thing if you need them to.
    as for applecare support for pro apps like logic, I'd be the first person to agree that it's not great for anyone except beginners and first time users. if you look at what it takes to get even the highest level of logic certification, it's all pretty basic stuff. and logic doesn't exist in a vacuum, there is an entire universe of 3rd party software and hardware, as well as studio culture and advanced user techniques that are going to be totally invisible to some poor phone support guy at apple that did a logic 101. but it's not hard to see that apple are trying to promote a different kind of support culture, it's up to you to decide whether you want to buy into it or not.
    the idea is that they are able to provide basic setup support for new users, including troubleshooting. because it's a simpler level of support, at least they can do this well. so there's no reason why any new user with say a new imac and logic can't get up and running with the 90 days of phone support they get for free.
    but the thing is, for extremely high end pro users it's a different matter altogether. pro use of logic within the context of say, a studio or a film composition scenario is a very different world. it's almost a nonsense to imagine that apple could even hire people capable of giving useful support for this end of the spectrum, over the phone. there are so many variables, and so many things that require a very experienced studio person or in-work composer to even begin to understand the setup, let alone troubleshoot it. and it's a constantly evolving world, you actually have to be working in it and aware of developments on 3rd party fronts as well as changes in hardware.. not to mention even changes in the culture of studio production and the changed expectations that come from that. there's no way some poor little guy sitting at a help desk at apple can even hope to be privy to that kind of knowledge. it's already good enough that they don't outsource their support staff to india, let alone go out to studios and hire the very people with the skills that should be staying in the studio! not answering phones for apple.
    so, given this reality.. companies have two choices. they can either offer an email based support ticket system, which others do. but in my opinion.. this can just be frustrating and only a half-solution. sure you 'feel' like you are getting a response from the people that make the software and therefore must know it.. but it's not really the case due to what I said above. DAWs don't exist in a vacuum, and so much of what you need to understand to help people requires an intimate knowledge of the music industry in which they are working. you still won't get that from steinberg, even if they sort of answer your emails. the other problem is that this kind of system can mean sporadic answers, a lot of tail-chasing, and quite often you won't get an answer that helps you in the end anyway.
    the other model is to foster a strong user support culture. some people react in the wrong way to this idea.. they just think it's a big brush off from the manufacturer, saying we don't care, go sort it out yourselves.. but this isn't true. apple has a classification for pro resellers called 'apple solutions expert - audio'. what this means is that these dealers are recognised as audio specialists and they can receive extra support and training from apple for this. but more importantly than this.. most of them are music stores, or pro gear dealerships that are also mac and logic dealers. they already employ people that have worked or do work in the music industry, and are constantly on top of all of this stuff. apple encourages these dealers to run workshops, and to provide expert sales advice in the very niche area that logic is in, which they can do far better than some generic apple store ever could. but most importantly, they are encouraged to offer their own expert after-sales support and whatever other value-adding expertise they can, to get sales. because margins in computer gear are so tight nowadays, discounting is not really a viable option for these dealers to guarantee getting musicians to buy computers and logic setups from them. the only companies that can entice people with a lower price a big online wholesalers or big chain stores. so the best idea for these niche expert stores to get sales is to offer you their own experts to help with configuration, ongoing support and to generally make it a better idea that you bought your system from them rather than from some anonymous online store. I can see the wisdom of this.. it puts the support back out there on the ground where it's needed, and also where it can work best. apple could never hope to offer the same level of expertise in helping a film composer work through some issues with a specific interface or some highly specific issue they have with getting a task done. no big software manufacturer could do this anywhere near as well as people out there that have worked in studios or currently do work in studios. so in my opinion it's a far better model to foster this kind of support culture, along with training courses, books and training video support. also user forums like this one are possibly one of the most valuable ports of call anyone could ask for. apple couldn't replicate this with their own staff, even if they tried. and even if they made a system where some of the people close to logic development were able to answer emails, it would still be nowhere near as useful, as rapid or as capable of being up to speed with logic use out in the real world with 3rd pary gear, as any of these other methods are.
    the only thing I think they could do better would be to publish a list of known bugs which are officially recognised. this would help everyone and put an end to a lot of wasted time and speculation on if something is a bug totally to do with logic, or if it's a specific issue raised by a particular configuration.
    but really, in my view, a 3rd party support and training culture through a combination of specialist dealers, consultants that literally run a business setting up computers for pro-users and helping them keep it all working, online user-to-user forums and published materials really are the way forward.

    In all honesty this is currently the 3rd "logicboard" (motherboard)
    in my powerbook due to a design flaw regarding the 2nd memory slot....
    Yep. Mine failed five weeks after I bought it. However, I bought it for work and couldn't afford being without it for four weeks while they fixed it, so I had to live with it. My serial number did not entitle me to a replacement either, post Applecare.
    My firewire ports have burnt out from a third-party defective device (no hot-plugging involved)
    My screen is blotchy (my PW serial number did not entitle me to a replacement).
    My battery serial number did not entitle me to a replacement, and is not that good these days.
    My guaranteed Powerbook-compatible RAM is actually not, causing RAM related problems, most notably these days meaning that as soon as I switch to battery power, the laptop crashes, so I can only use mains power. The company I bought it from stopped taking my calls and wouldn't replace it after they replaced it once, so I'm stuck with it. And of course, only one ram slot is working, so I can't even use my original stick in the first slot, which would shift the dodgy stuff away from the lower system area.
    My power supply failed at the weak spot and caught fire. I managed to break apart the power supply and recable it so I didn't have to buy a new power supply, although the connection at the laptop end is loose (all the more fun that as soon as power is lost, the laptop crashes - see above). The power supply is held together with gaffa tape. Silver gaffer tape though, so it's still kind of 'Appley"...
    My internal hard drive is dying - four or five times now it clicks and won't power up, causing the laptop to die.
    One foot has fallen off (but glued back on).
    The lid is warped.
    The hinge is loosish.
    The S-Video adaptor cable is intermittent.
    But aside from all that, I have looked after it well, and I love it to death. Just as well, because it doesn't look like it will be that long...
    But it still "just works". Apart from the battery power obviously. And the ram slot. And the ram. And the screen. And the hard drive. And the firewire ports. And the feet.
    But everything apart from the main board, the screen, the case, the hard drive and the power supply works fine. So thats... er..
    Hmm.

  • What is the best way to maintain models with common components?

    I work for a company that uses MatrixX/SystemBuild (v62.2) to build functional models of trains for use in driver training simulators.  We are currently in the early stages of a project in which we will need to build and maintain multiple train models which are likely to have some common components, but may have some significant differences.  Before we get too far into the modelling, I would like to come up with a decent method of maintaining the common components while keeping the differences separate.
    Ideally, I would like to find a way of quickly and easily determining the difference between two models and a way of conditionally pushing the differences from one model to another - in a similar way that one might diff two text files and conditionally copy the changes in one to another.
    I found a script (mx_62.2\sysbld\scripts\compare_catalogs.msc) that seems to accept two catalogs for comparison, outputing a difference log. However, I'm unsure how to use this as I don't know how to load two catalogs within the same instance of Xmath or how to assign a catalog to a variable for passing in to a function.  Does anyone know how to use this script?
    I am also thinking that it might be useful to be able to convert a catalog to an xml - I can probably write a script to do this, however I am wondering if there's anything freely available to do this.
    Does anyone have any other ideas?

    Let me first discuss about comparing models, then I'll talk about my ideas about modularization.
    Comparing models in anything before v8 is difficult. In v6 or v7, there's no way to load to separate files containing the same yet different superblocks. The tool scripts you found don't seem to be documented anywhere. Given the history of some of the things added into the product, I'm not surprised. Which means that it's useless to us. After looking at the scripts, it's difficult to figure out what the inputs to that script should be. You can launch multiple instances of xmath/sysbld and load the models separately, but that's about it.
    One suggestion if you have to compare models is to use the exportcatalog.msc script which will generate a text file containing the SBA commands to re-create the model. Do the same for both models then perform a text difference between the generated SBA commands in the generated files.
    Another possibility is to use SBA to get the details of each superblock (similar to exportXXX.msc scripts) into a form that's easier to compare between. I'm going to guess that some kind of generated SBA content is the expected input to the compare_catalogs, but I'm not sure.
    Now, within v8, we've created a hierarchical compare tool, that compares model files and shows differences. Copying changes between the compared models is a future enhancement. However, in the context of using v8, you could manually copying the changes between the models using the editor and/or project system as appropriate. Yes, in v8 you can separately load models containing the same named superblocks. Try it, I'll bet you'll like it and it will save you lots of time!
    Now, on to modularization. I'm not sure you're use of 'components' is the meaning of the Components feature in Sysbld or not. I'm going to assume that you are not using Components and you're generically using the term components as a set of logically related superblocks, or as I perfer to call them, a module.
    The only modularization tool you have in Sysbld is the file. What I mean here is that you are able to group sets of superblocks into separate savefiles (.sbd) then combine them to create a complete model. So, essentially, you will need to partition your model into modules and each module is a separate savefile. Then, you can choose which module (i.e. savefile) to load to construct a complete model.
    In v8, there's a project system specifically designed to make this kind of modularization within a project easy and straightforward to use and maintain. I'd suggest that you use v8.
    For previous versions, the best you can do is create xmath scripts for each complete model you need. The script will contain all of the steps needed to load the separate modules to make a complete model. Thus, you'd have a different script for each model. Also, becareful in v6,v7 that you'll have to manually manage which superblocks are part of which modules, it's tricky stuff. Again, you'll need to use scripts to help maintain this level of complexity in these versions of the Sysbld.
    Now, I do not want to recommend FileSuperBlocks, it's a legacy feature to deal with limited resources not applicable on today's machines.
    Also, I can't really recommend the the Component feature in Sysbld. It's really not a component, but more of an object, sort-of. And it sort-of gives you unique names and it sort-of gives you parameters. It will not help with the modularization I think you want so don't use these.
    In general, there are features within our latest v8 release of MATRIXx that will help you with all of your issues. If you can, upgrade!
    Bob Pizzi
    MATRIXx R&D

  • Best way to access files at two different locations

    Hey Guys,
    I am in need of some help. We currently have about six macs in our prepress department all accsessing 1 mac mini with three external drives that store all our files. We also work out of those drives, not on our local machines.
    So far this has worked out well for us. However, in the next few weeks we will be opening a new shop about 20 miles away, that will need access to all these same exact files. We are not sure of what the best way to do this is.
    Currently the mac mini we are on does not have osx server just osx. Also we have about 4-5 TB of customer files, and any given file that we are working on or would need access to could be up to 2 GB's.
    We are open to all and any ideas. Obviously the cheaper the better, but please give me any and all ideas so that we can evaluate every option and decide what is best for our company.
    We know that our current state of using external drives on a mac mini in not a realistic solution for ever as eventually our drives will fill up and I think we are out of usb ports to add new ones on.
    Also this cannot be a one time type of fix as once we get this new location set up and established, we plan to replicate it and open up a couple more in the comming years. Also seeing as we already have 4-5 TB of data we need something that is future proof so that as we continue to expand and grow we end up needing a new solution in 5 years.
    Thank you for any and all help you can provided.
    -ey3ball

    @rccharles// Do you know of any software that would duplicate or mirror a sever?
    I do not have personal experience beyond dropbox.
    sync
    SyncTwoFolders simply synchronizes two folders. might be more for client.
    https://www.macupdate.com/app/mac/22644/synctwofolders/
    Unix rsync
      whether it copies mac metadata may depend on what version of X you have.  May depend transfer app you use AFS, NFS, Samba.
    dropbox
    Well, if you want with Dropbox, you could use Dropbox to do the syncing. I think this is the way to go because you would get offsite backup. Not sure i'd try to sync the two servers. Duplicate each server to Dropbox.  Provide read-only access to the other site.
    You could experiment around with two computers and a dropbox account.  See how it works for you.  It's free upto two gigs.
    versioning
    dropbox has versioning build in.  using sometype of version system while necessary was viewed as a PITA by most programmers.  The best system would be an automated on where you didn't have to do anything beyond what you were doing before.  Timemachine, etc.
    dropbox
    also would we just talk to our internet provider about a private fiber channel?
    I think Linc Davis has the idea.
    Router-to-router VPN.
    I was putting the concept out there.

  • What is the best way to start "fresh" with iPhoto '08?

    I am running iPhoto '08 on a mid-2007 iMac. When I set up the machine, I moved all the photos from my PC to the Mac retaining the existing directory structure that I had on the PC. I then imported all the pictures into iPhoto with no problems.
    Unfortunately, the other person who uses the Mac needs to be able to use the directory structure as it existed on the PC (that structure involves several subfolders with specific names etc.), and it appears that iPhoto is not designed to work that way. I know the photos can still be manipulated in the folders I imported, but then I run the risk of at best, being out of synch with iPhoto and at worst, corrupting iPhoto completely.
    That said, what I would like to do is delete or remove the current iPhoto library (or whatever iPhoto accesses; not the whole application unless necessary) and then selectively import photos to iPhoto. That way, the other user can access the photos in the familiar folder structure and manipulate them at will without disturbing the iPhoto db and, once photos are edited etc. and ready for primetime, they can be imported to iPhoto to gain the advantages of displaying using Front Row etc.
    My question is what is the best way to achieve what I am looking for? Just backup then delete the iPhoto pkg file in the HD/Library/Receipts folder? Uninstall the entire application and start over?
    All assistance greatly appreciated.

    ETRA
    Welcome to the Apple Discussions.
    You don't need to re-install iPhoto, just change the library - and you may not even need to do that.
    1. You can easily recreate your Directory structure in iPhoto. Simply start at the bottom of your structure and drag a folder of images to the Source (or left hand) pane of the iPhoto Window. iPhoto will create an Album of the same name. The create your enclosing folders (File -> New Folder) and drag the albums to it. This way you can quickly recreate what you have/
    2. The other user of the files can access them directly via the iPhoto Window or a Media Browser such as THIS. The advantage of this system is that your directory structure is available to them ina convenient and recognisable way. They can then drag the pics from the iPhoto Window / Media Browser to the app they as the need. (A whole lot faster than fumbling around in Folder after Folder etc, plus the advantage of keyword searching.)
    3. Is this necessary for working with an editor? You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. Btw this is the only way that edits made in iPhoto will be visible in iPhoto.
    4. Finally, if you do wish to go as you described: Simply trash the iPhoto Library from the Pictures Folder. Start iPhoto and it will create an new empty library. If you wish to recover the files from the Library first, then Right Click on the iPhoto Library and go 'Show Package Contents'. Your files are in the Originals Folder.
    Regards
    TD

Maybe you are looking for

  • My iPhone 4 will no longer play music in my car. I need help.

    For over two years, my iphone has played music when hooked up to the ipod connector in hmy car. When I plug it in, the "charging not supported..." box still pops up but no music plays. My sister's phone will play in my car, so it is not a problem wit

  • Any Free Training Material or Courses availabel online ?

    Hi, I am new to Primavera and I would like to learn Enterprise Project Portfolio Management. Can anyone throw some light on free online training courses foir the same ? Thanks, Murthy

  • MacPro & Lion experiences same kernel_task problems as MBA

    Hello - Just wanted to post this in case someone else has a similar situation. I have a MacPro with 3 graphics cards, 4 2T drives, 10G ram and 6 monitors. It is an older 2x4 machine without HyperThreading. I never had troubles with Leopard, occasiona

  • Not getting heading ouptut in sql

    Hi Experts,   I am new to SQL. I am running a query that output should go to .csv file. But in output though data is coming, headings are not displayed. Following is my query. I want heading in first line in my query output so that it will be easy to

  • C# Acrobat 8 vs. Acrobat 4

    Hi, I am currently switching the referenced DLL in a C# project from a prehistoric Acrobat 4 to an Acrobat 8 equivalent. My Question is what DLLdo I have to use now? Previously it used to be done like the following (using the ACRODISTXLib.dll): ACROD