One-time import from external database - best practices/guidance

Hi everyone,
I was wondering if there was any sort of best practice or guideline on importing content into CQ5 from an external data source.  For example, I'm working on a site that will have a one-time import of existing content.  This content lives in an external database, in a custom schema from a home-grown CMS.  This importer will be run once - it'll connect to the external database, query for existing pages, and create new nodes in CQ5 - and it won't be needed again.
I've been reading up a bit about connecting external databases to CQ (specifically this:http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html), as well as the Feed Importer and Site Importer tools in CQ, but none of it really seems to apply to what I'm doing.  I was wondering if there exists any sort of guidelines for this kind of process.  It seems like something like this would be fairly common, and a requirement in any basic site setup.  For example:
Would I write this as a standalone application that gets executed from the command-line?  If so, how do I integrate that app with all of the OSGi services on the server?  Or,
Do I write it as an OSGi module, or a servlet?  If so, how would you kick off the process? Do I create a jsp that posts to a servlet?
Any docs or writeups that anyone has would be really helpful.
Thanks,
Matt

Matt,
the vault file format is just an xml representation of what's in the
repository and the same as the package format. In fact, if you work on
your projects with eclipse and maven instead of crxdelite to do your
work, you will become quite used to that format throughout your project.
Ruben

Similar Messages

  • Best method of importing from external drive?

    I have a 1T LaCie and want to know the best method to get those images into LR. The defaults are: "Add" and "NewPhotos" to "MyCatalog"
    I think I may have more than one catalog and am not certain how to combine them. Is it best practice to have only one catalog?
    Thanks in advance,
    Mr Mayor

    Duplicate thread, see Best method to import from external drive?

  • How do I stop iMovie 11 auto importing from external HD?

    Okay, I'm going crazy. I, the intrepid Googler, have so far been unable to find the answer to this question. Please somebody help me!
    I have hundreds of video clips stored on an external hard drive. However, when I crank it up, iMovie exceptionally irritatingly starts auto-importing every single clip back onto my MacBook's hard drive. No! No! NOOOO! That's NOT what I want! Stop it! Stop it! Stop it! I only want to import ONE video of MY choice at a time to edit and then save it back to the external drive, I don't have enough ROOM for ALL of them on the internal drive, you crazy machine!!!!
    So. I go into iMovie preferences, where I'd expect to see an option for turning off auto import. Nope. I cannot see anything there. Do I have menu blindness? Am I losing my mind?
    Then I Google 'how to stop iMovie 11 from auto-importing from external hard drive and find nothing. Am I alone in this? Surely not. Am I being a dunce? Possibly.
    Advice, anyone?

    Okay. Please ignore the above. I was being a dunce. Today, it appears not to be doing it any more. Bizarre. LOL!

  • Possible to do one-time import of Thunderbird address book?

    From reading the past 18 months worth of postings, I realize that iPhone communication with Thunderbird is very bad, and it seems to be impossible to sync the Thunderbird address book to the iPhone contacts.
    But even if I can't keep them synced, is there a way to do a one-time import of the address book into my iPhone contacts? I can export the address book as a csv text file if that helps. I hate the thought of having to type in all the people in the address book manually, since I have about 100 of them.

    averageaxel wrote:
    crossrulz wrote:
    Well, you are asking for 100kS at a rate of ~22kS/sec.  That is ~4.5 seconds worth of data that you are asking for from the sound card.  That is what is making your system slow.
    I am afraid I do not quite understand what you mean (I am not overly confident about the workings of computers).
    Data Acquisition 101.  It takes time to take data.  YOU told the sound card to acquire data at ~22kS/s.  YOU asked for 100k samples each loop iteration.  Therefore YOU asked for 4.5 seconds worth of data each loop iteration.  If you want the iterations to go faster, you need to either 1) increase the sample rate and/or 2) decrease the number of samples you acquire with each read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Message no. O3453 "No additional quantities imported from external applicat

    When I run LQ01, the following message appears Message no. O3453 "No additional quantities imported from external application"
    Function MB_CREATE_GOODS_MOVEMENT has been called for an HPM material (additional units of measure), but no additional quantities and UoM have been passed to the function. Stock levels cannot be posted correctly without this data.
    This material is an HPM MAterial and have additional units of measure.
    Any body can help me.
    Regards
    Vasco

    Ariane, thanks a lot,
    SAP answer me the same like you from "sap notes"
    Togheter with the developer, we doing a changes an OIL & GAS table as details note number 607156 and it´s work good.
    Regards
    Vasco

  • ASA 5505 Best Practice Guidance Requested

    I am hoping to tap into the vast wealth of knowledge on this board in order to gain some "best practice" guidance to assist me with the overall setup using the ASA 5505 for a small business client.  I'm fairly new to the ASA 5505 so any help would be most appreciated!
    My current client configuration is as follows:
    a) business internet service (cable) with a fixed IP address
    b) a Netgear N600 Wireless Dual Band router (currently setup as gateway and used for internet/WiFi access)
    c) a Cisco SG-500-28 switch
    d) one server running Windows Small Business Server 2011 Standard (primary Domain Controller)
         (This server is currently the DNS and DHCP server)
    e) one server running Windows Server 2008 R2 (secondary Domain Controller)
    f) approximately eight Windows 7 clients (connected via SG-500-28 switch)
    g) approximately six printers connected via internal network (connected via SG-500-28 switch)
    All the servers, clients, and printers are connected to the SG-500-28 switch.
    The ISP provides the cable modem for the internet service.
    The physical cable for internet is connected to the cable modem.
    From the cable modem, a CAT 6 ethernet cable is connected to the internet (WAN) port of the Netgear N600 router.
    A Cat 6 ethernet cable is connected from Port 1 of the local ethernet (LAN) port on the N600 router to the SG-500-28 switch.
    cable modem -> WAN router port
    LAN router port -> SG-500-28
    The ASA 5505 will be setup with an "LAN" (inside) interface and a "WAN" (outside) interface.  Port e0/0 on the ASA 5505 will be used for the outside interface and the remaining ports will be used for the inside interface.
    So my basic question is, given the information above of our setup, where should the ASA 5505 be "inserted" to maximize its performance?  Also, based on the answer to the previous question, can you provide some insight as to how the ethernet cables should be connected to achieve this?
    Another concern I have is what device will be used as the default gateway.  Currently, the Netgear N600 is set as the default gateway on both Windows servers.  In your recommended best practice solution, does the ASA 5505 become the default gateway or does the router remain the default gateway?
    And my final area of concern is with DHCP.  As I stated earlier, I am running DHCP on Windows Small Business Server 2011 Standard.  Most of the examples I have studied for the ASA 5505 utilize its DHCP functionality.  I also have done some research on the "dhcprelay server" command.  So I'm not quite sure which is the best way to go. First off, does the "dhcprelay server" even work with SBS 2011?  And secondly, if it does work, is the best practice to use the "dhcprelay" command or to let the ASA 5505 perform the DHCP server role?
    All input/guidance/suggestions with these issues would be greatly appreciated!  I want to implement the ASA 5505 firewall solution following "best practices" recommendations in order to maximize its functionality and minimize the time to implement.
    FYI, the information (from the "show version" command) for the ASA 5505 is shown below:
    Cisco Adaptive Security Appliance Software Version 8.4(7)
    Device Manager Version 7.1(5)100
    Compiled on Fri 30-Aug-13 19:48 by builders
    System image file is "disk0:/asa847-k8.bin"
    Config file at boot was "startup-config"
    ciscoasa up 2 days 9 hours
    Hardware:   ASA5505, 512 MB RAM, CPU Geode 500 MHz
    Internal ATA Compact Flash, 128MB
    BIOS Flash M50FW016 @ 0xfff00000, 2048KB
    Encryption hardware device : Cisco ASA-5505 on-board accelerator (revision 0x0)
                                 Boot microcode   : CN1000-MC-BOOT-2.00
                                 SSL/IKE microcode: CNLite-MC-SSLm-PLUS-2.03
                                 IPSec microcode  : CNlite-MC-IPSECm-MAIN-2.06
                                 Number of accelerators: 1
    0: Int: Internal-Data0/0    : address is a493.4c99.8c0b, irq 11
    1: Ext: Ethernet0/0         : address is a493.4c99.8c03, irq 255
    2: Ext: Ethernet0/1         : address is a493.4c99.8c04, irq 255
    3: Ext: Ethernet0/2         : address is a493.4c99.8c05, irq 255
    4: Ext: Ethernet0/3         : address is a493.4c99.8c06, irq 255
    5: Ext: Ethernet0/4         : address is a493.4c99.8c07, irq 255
    6: Ext: Ethernet0/5         : address is a493.4c99.8c08, irq 255
    7: Ext: Ethernet0/6         : address is a493.4c99.8c09, irq 255
    8: Ext: Ethernet0/7         : address is a493.4c99.8c0a, irq 255
    9: Int: Internal-Data0/1    : address is 0000.0003.0002, irq 255
    10: Int: Not used            : irq 255
    11: Int: Not used            : irq 255
    Licensed features for this platform:
    Maximum Physical Interfaces       : 8              perpetual
    VLANs                             : 3              DMZ Restricted
    Dual ISPs                         : Disabled       perpetual
    VLAN Trunk Ports                  : 0              perpetual
    Inside Hosts                      : 10             perpetual
    Failover                          : Disabled       perpetual
    VPN-DES                           : Enabled        perpetual
    VPN-3DES-AES                      : Enabled        perpetual
    AnyConnect Premium Peers          : 2              perpetual
    AnyConnect Essentials             : Disabled       perpetual
    Other VPN Peers                   : 10             perpetual
    Total VPN Peers                   : 12             perpetual
    Shared License                    : Disabled       perpetual
    AnyConnect for Mobile             : Disabled       perpetual
    AnyConnect for Cisco VPN Phone    : Disabled       perpetual
    Advanced Endpoint Assessment      : Disabled       perpetual
    UC Phone Proxy Sessions           : 2              perpetual
    Total UC Proxy Sessions           : 2              perpetual
    Botnet Traffic Filter             : Disabled       perpetual
    Intercompany Media Engine         : Disabled       perpetual
    This platform has a Base license.

    Hey Jon,
    Again, many thanks for the info!
    I guess I left that minor detail out concerning the Guest network.  I have a second Netgear router that I am using for Guest netowrk access.  It is plugged in to one of the LAN network ports on the first Netgear router.
    The second Netgear (Guest) router is setup on a different subnet and I am letting the router hand out IP addresses using DHCP.
    Basic setup is the 192.168.1.x is the internal network and 192.168.11.x is the Guest network.  As far as the SBS 2011 server, it knows nothing about the Guest network in terms of the DHCP addresses it hands out.
    Your assumption about the Guest network is correct, I only want to allow guest access to the internet and no access to anything internal.  I like your idea of using the restricted DMZ feature of the ASA for the Guest network.  (I don't know how to do it, but I like it!)  Perhaps you could share more of your knowledge on this?
    One final thing, the (internal) Netgear router setup does provide the option for a separate Guest network, however it all hinges on the router being the DHCP server.  This is what led me to the second (Guest) Netgear router because I wanted the (internal) Netgear router NOT to use DHCP.  Instead I wanted SBS 2011 to be the DHCP server.  That's what led to the idea of a second (Guest) router with DHCP enabled.
    The other factor in all this is SBS 2011.  Not sure what experience you've had with the Small Business Server OS's but they tend to get a little wonky if some of the server roles are disabled.  For instance, this is a small busines with a total of about 20 devices including servers, workstations and printers.  Early on I thought, "nah, I don't need this IPv6 stuff," so I found an article on how to disable it and did so.  The server performance almost immediately took a nose dive.  Rebooting the server went from a 5 minute process to a 20 minute process.  And this was after I followed the steps of an MSDN article on disabling IPv6 on SBS 2011!  Well, long story short, I enabled IPv6 again and the two preceeding issues cleared right up.  So, since SBS 2011 by "default" wants DHCP setup I want to try my best to accomodate it.  So, again, your opinion/experiece related to this is a tremendous help!
    Thanks!

  • Import data from excel file - best practice in the CQ?

    Hi,
    I have question related to importing data from excel file and creates from those data a table in the CQ page. Is inside CQ some OOTB component which provides this kind of functionalities? Maybe somebody implement this kind of functionality or there is best practice to do this kind of functionalities?
    Thanks in advance for any answer,
    Regards
    kasq

    You can check a working example package [1] (use your Adobe ID to log in)
    After installing it, go to [2] for immediate example.
    Unfortunately it only supports the old OLE-2 Excel format (.xls and not .xlsx)
    [1] - http://dev.day.com/content/packageshare/packages/public/day/cq540/demo/xlstable.html
    [2] - http://localhost:4502/cf#/content/geometrixx/en/company/news/pressreleases/my_personal_bes ts.html

  • Import files into bridge from a CMS - best practice

    Hi All,
    i am trying to come up with the simplest solution for the following:
    we have a CMS in which our content is managed and edited.
    the content editor might like to edit video files that reside in our asset management system.
    our editing tool is Adobe Premiere.
    My thought was to transfer the video file along with its metadata and edit instructions to an FTP server from our asset repository and then transfer these files into the video editing local environment using bridge. after editing the file - it should be transferred back into the asset repository via FTP server or such.
    it seems the way to this would be to extend the bridge functionality using the java script SDK, but i would love to know if there is a best practice solution before we start detailed design and development.
    your help is highly appreciated and thanks in advance,
    Deena

    Not sure what advice you have been given and how you have interpreted it.
    You are of course referring to im6 here since you can't drag projects from im08 to iDVD.
    I don't make many DVD's anymore and may well be wrong here but I'm not aware that dragging an im6 project to iDVD is any different than using share/iDVD and I'm wondering if the advice relates to exporting from im6 and then importing the exported movie into iDVD which is indeed a different workflow.

  • OIM Database Connector - ID PK from DB Sequence Best Practice?

    Figured I'd ask around before I hacked something together for something that is a very common scenario. When provisioning my PK (ID) is not set and is set via a Oracle Sequence. I'm currently using the Database Application Tables GTC connector. A couple approaches, based on my limited OIM knowledge:
    1. OnInsert DB trigger to handle. Requires nothing from OIM for this, but I really feel like this is way too invasive and doesn't support the "passive" nature of Identity Management.
    2. Deviate from the GTC and get the SEQUENCE from a custom adapter task.
    3. Go have a beer.
    If there is some documentation or posts regarding this please let me know. I checked the best practices & connector docs and found nothing about this.

    I think you have a good grasp of the problem. Option 3 is of course superior to the others :)
    If you start using pre-pops on GTC generated forms you can't regenerate the GTC or you risk losing the pre pop connectors.
    There has been some discussions around what Oracle supports when it comes to GTC but it seems like you now can add prepop and entity adapters and still stay in support.
    Best regards
    /M

  • Importing an external database of images into BC

    Hello,
    Is it possible to upload from an external intranet system to BC? I have a client with a database of images on their own intranet which they would like to upload/merge into the BC site we are building for them without having to go through the laborious process of loading them one at a time into what ever web app/gallery we will be using . They have asked the following -
    "Are you able to write import scripts to populate content if we schedule an export to ftp/web service etc?.
    All the data is stored in SQLServer and interfaces/reporting have been done in c# asp.net/Delphi.
    The only thing we do not have is Image attachment for the equipment (this is a manual process on the existing CMS) but all other details are in SQLServer.
    Depending on how your system can be manipulated we can automated some sort of data to send to it."
    This is a bit beyond my level of understanding/ability in BC but am happy to make it work if I know what I am doing. Is what is being asked possible? I know I can import a customer database into the CRM system, can I do something similar with images being key?
    Grant

    hello Alex,
    thank you for this thread & greetimgs from germany... (sorry for my english)
    my question - I have written an API (C#, .net)  for update the products-data via SOAP in eCommerce - so far so good... but I try for 2 Days to upload *.jpg Files to a BC-(_assets/images/)-Folder - with the C# WebClient.UploadFile method - I have no Chance to reach the BC Server - 404 - is in the Destination-Folder a jpg-File with the same name - there is no Problem to overwrite it, but I didnt create a new one ??!! - I try out many variants of ftp access to my Site via the API - by the way - with FileZilla everything is ok...
    is there any way to upload image files to my BC-Server via API ??
    thank you very much
    André

  • Import from ThumbsPlus database

    I'm a Bridge/CS3 fan, but have years of keywords and annotations in Thumbsplus. I am considering Lightroom.
    I've read a couple of posts on migration without real help, one where one wrote XMP files, which I might do, but I understand that won't work for non-raw files, and I would not risk writing to the JPG's and PSD's myself to try to fake it. I didn't see anyone who had been successful other than by writing into the JPG/PSD's.
    I could easily produce any kind of export file from Thumbsplus' database, and also am game for trying to uppdate the LR database directly if that's practical.
    I don't care about gallaries or other similar, just the annotations and keywords in the Thumbsplus database.
    Anyone have guidence?

    I am not an expert at all, but here is what I did (and it worked for me well):
    I put the keywords and other fields of importance, such as the City, the Country where the picture was made plus the Annotation into the corresponding IPTC fields in Thumbsplus (Annotation --> Caption).
    Then I just imported all the files (10,000 of them, all JPG) into LR and found that at least these fields are all there all right. The database is searchable according to those fields, it is very nice, actually.
    Now I made a habit that from time to time I write back the metadata (keywords and such) back into the images (LR keeps them in the catalogue), it makes me feel better.
    Cheers, Mixx

  • Formatting external drive: best practice?

    Hi
    I want to erase and reformat an external drive used for video editing with my MBP. I do this so rarely I had a couple questions.
    First, in Disk Utilities, where the drives are listed, I should choose the size/mfgr.'s line, not the line where my name appears, rt?
    Then, I believe 'Mac OS Extended' is the best choice, not 'Mac OS Extended (Journaled)', rt?
    Any other tips, tricks or suggested best practices?

    Drive Preparation
    1.Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    To just format a drive select the volume (sub-listing under the drive heading) then click on the Erase tab in DU's main window. Select the desired format scheme and click on the Erase button.

  • Keeping same Events and Projects on 2 external HD - Best Practice

    I would like to receive your suggestions on this working flow. (I am also interested to get some confirmation that I am doing the right way).
    I use FCPX since few weeks. Coming from iMovie and FCE.
    I import videos from external drive "C" on 2 different external drive "A" and "B" with settings to copy the files there.
    In this way I hope orignals remain on "C"
    I edit using "A" or "B" and the resulting Projects remain on the same drive.
    I copy Events and Projects between "A" and "C" to keep them uptodate after some work. I do all copy with FCPX with both drives connected.
    Will this workflow let me to keep Events on both drives according the latest editing ? (If I reopen each project on the same drive of its events A with A and B with B).
    Then I like to group projects under folders (move not copy) again working only inside FCPX.   This removes the project form the Project folder and let me to save a new version of the next editing workflow with the same project name. But if I try to save the same project again it will be renamed with extension (fcp1).
    This way will bring me to a serie of projects instead of replace the previous with a new version. I would prefer to limit this to a few versions: any way ?
    Last: I like to keep also a copy of projects on the main HD. Only Projects with its Render files without Events.
    Will it be possible to use this Projects moving them to one of the 2 HD "A" or "B" and go on ?
    Thanks for your time.

    Hello Zebber28.
    I do exactly as you propose doing in terms of having a 500GB Western Digital elements portable external HD which I simply connect up every three months or so on a top up basis.   I don't disconnect the primary external HD while I do this as I don't need to.   I simply plug into the port in the keyboard.
    Just make sure you properly eject the new HD each time you use it, otherwise it's all pretty basic.
    Message was edited by: seventy one

  • (Swing) Reading fields from other forms - Best practice

    Hi All,
    I have been learning Java and Swing through NetBeans (quite a cool way to do it). I would like some 'best-practice' advice please. Google and search on this forum are normally my friends, can't find anything relevant for this though. I have created an application that seems to be functional, all my navigation is through tabs.
    To make my app portable I have created a ?Settings? part. To save having another tab, I have basically copied the way NetBeans deals with opening the ?About Box? in its example, and have set-up fields in here. This essentially opens a JDialog with fields through an option in the menu.
    I figure the best way to store the data is in a simple text file, and have the application read the values on start-up? Then when somebody changes the fields and saves it just overwrites the text file with the new values. I am not sure how to best read these in though, I can?t find a way of reading direct from the JDialog (i.e. var.getText()) which makes sense as the JDialog will be closed.
    Will my best practice simply be writing a class which reads the file, then whenever I need a value just calling the class?
    Thanks a lot

    You should not be using preference files unless you really know what you are doing. This is one area of the very few areas of Java programming that can have lasting nasty negative affects on a computer that runs the code if done wrong.
    If you want the user to save preferences it is better to just use xml. The advantage of preference files is they can be used by multiple programs and are permanent even after the program is done running/deleted/writen-over/forgotten. The disadvantages of preference files is they can be used by multiple programs, are permanent even after the program is done running/deleted/writen-over/forgotten, can cause damage to your OS, may be seen as harmfull by add blockers and/or anti-virus software, may lead to conflicts with other software that uses similar naming schemes, and are pretty much unportable.
    You are going to be much better off in the long run learning XML and just saving them there, an added benefit of XML is if you screw something up and it causes your program to no longer run you can easily edit the xml by hand.
    JSG

  • Number ranges - Import of Legacy Data - best practice

    Hi,
    we are planning to move legacy data objects to our SAP CRM.
    These Objects have an external key (Numeric, 6 digit) in a number range that is relatively full and highly fragmented.
    Is there a best practice how to implement internal number assignment for this kind of pre filled number range?
    The internal key in SAP would be different and under our control, the external key is the interesting one.
    Cheers,
    Andreas

    Hi Luís,
    The scenario is in the context of insurance business.
    The setup: SAP CRM as central Business Partner system. And in the CRM we keep the policy numbers of the surrounding (non SAP) policy systems as references (I'm talking about insurance policies...).
    For each policy we create a one order object, containing, among others, LOB, policy type and the policy number.
    These policy number ranges are to be maintained in the central CRM system in the future.
    And in one of these Systems they have the situation described above:
    6 digit key in a number range that is relatively full and highly fragmented. They are managing their numbers in an xls right now, but we would also have them migrated into our system.
    And after the migration we would be responisble to find a unused number, whenever a new policy is to be created.
    Cheers,
    Andreas

Maybe you are looking for