Sharing data in the JRE

I Have a class called syncList that basically has a static List and is also a singleton. I have 2 other classes that use syncList called syncListTest1 and syncListTest2.
syncListTest1 puts an entry into the static list and then displays its contents then waits for thirty seconds(just for testing purposes).
syncListTest2 simply reads the static Lists contents.
When I execute syncListTest1 from a command line and then syncListTest2 from another command line syncListTest2 shows the list as being empty.
My question is: Is there any way of sharing the same syncList between separate applications so that each application can share the same List data?
Any help would be much appreciated before I tear out the last of my receding hairline!!!
Code for syncList.
import java.util.*;
public class syncList
   private static List<String> sl = new ArrayList<String>();
   private static syncList ref;
   private syncList()
   public static synchronized syncList getSyncList()
      if (ref == null)
         System.out.println( "ref is null, creating syncList" );
         ref = new syncList();
      else
         System.out.println( "ref is NOT null, creting syncList" );
      return ref;
   public void add( String Val )
      sl.add( Val );
   public void remove( String Val )
      sl.remove( sl.indexOf( Val ) );
   public void removeAll()
      sl.clear();
   public void showMe()
      for( int i = 0; i < sl.size(); i++ )
         System.out.println( i + " " + sl.get(i) );
}Code for syncListTest1.
public class syncListTest1
   public static void main( String[] args )
      syncList.getSyncList().add( "1 Added" );
      syncList.getSyncList().showMe();
      try
         Thread.sleep(30000);
      catch( InterruptedException e )
}Code for syncListTest2.
public class syncListTest2
   public static void main( String[] args )
      syncList.getSyncList().showMe();
}

Hi
When you say that a class is a Singleton, you basically want the JVM to ensure that there is only one instance of the object [This you do by declaring the costructor private and an instance static member]... Now, look at it from JVM's point of view, there is one class with one static member that is created within the class [getInstance() method]... The JVM has no way to tell anyone or even know the existence of anyone else outside itself.... in your case another JVM. You obviously have to make the two JVMs talk... now the problem remains, how to get them talk.....
There are many solutions to your problem... You are trying to do a IPC [Inter Process Communication] which can be done using socket programming/shared memory... etc...
There is another set of solution which deals with J2EE application server clustering....
But looking at your problem, looks like you want a clean and simple way to do this....
well... one of the very easy ways I would have done it was to use JGroups [Assuming I am not in a J2EE container which provides better options]. This is a very simple clustering framework which helps you replicate some datastructures [in your case a hashmap] over different JVMs and maybe on different machines.... In a very simple High Level overview, it broadcasts the shared datastructure content over the network and all the peers listen to the message thereby updating the shared data.
Infact JGroups provides a DistributedHashtable [http://www.jgroups.org/javagroupsnew/docs/newuser/node55.html]
Hope this helps
Fasih

Similar Messages

  • Transfer unlimited data from My broken iphone 4 to an existing iphone 4s on my family plan that just has the 2gb shared data.

    I have 5 phones on my family plan. One of which is an iphone 4 with the 30.00 unlimited data plan.  It broke.  So now I would like to switch that number to another phone on my plan, the iphone 4s.  The iphone 4s only has the 2gb shared data with the other 3 phones.  Will I lose the unlimited plan by switching iPhones?  I also am on the month to month contract with the original broken iphone 4 and I don't want to go into another 2 year deal with verizon right now. Thanks for any help.  There are soooooo many old comments about this but I can't seem to find any definitive ruling from verizon or otherwise.

    Still hesitant on this...:/. I have all 5 lines active. Two are month to month contracts and that includes the iPhone 4 unlimited data and a Samsung note 2 with 2 fb data.  The other 3 lines have later contract end dates and are pay data as used.  All five share unlimited texts and 1400 minutes.  The iPhone 4 broken has not been used and I forwarded the calls to the iPhone 4S with the 2 fb data. So basically I have a dead phone with unlimited data...useless.
    I am thinking of just canceling all 5 phones. (The bill is over 280.00 a month). And go to metropcs with the unlimited data with 4 lines at 100.00.
    The only thing stopping me is the termination fee which. I am getting to the point of ...whatever.  Port i love you and miss you very much. Mom numbers that I want to keep and end verizon completely.
    Another speedbump is the service I get here is exceptional.  No dropped calls..ever...a little slow.at times...but always available.
    If I could just transfer the unlimited to the iphone4s I would stay but I can't see how to do it since all five lines are booked up and I can't get a sixth to do a transfer to.
    Any help.  Thanks.  I

  • SharePoint 2010 Report using a Shared Data Source Connection file (.rsds) is forcibly closed.

    Hi -
    When attempting to render a report (.rdl) in a SharePoint 2010 document library that has a
    Connection Type specified as a Shared data source (the connection succeeds when tested in the SharedDataSource.aspx page), the following error message is displayed in the report:
    The data source that I'm using passes the test when tested in isolation but when used in the report it yields to the error message above. Below are some of the details of the .rsds file:
    For this particular Web Application, Kerberos has been enabled. I couldn't spot any traces in ULS nor in the Security Windows logs.
    Any feedback on how to fix this issue is appreciated.
    Thanks.

    Hi
    There are multiple resolution found for the same issue, please refer 
    http://www.marc-lognoul.me/itblog-en/an-existing-connection-was-forcibly-closed-by-the-remote-host/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/4ad2a302-8a77-44f3-91ce-803d36efc9c5/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/235ca863-f540-4fa0-9688-0b0b46c2d75d/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious 
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Caching user shared data in WebDynPro (i.e. applicationBean)

    Hi,
    I'd like to know if there's a standard way to cache/access user shared data on the J2EE engine running my WebDynPro app.
    I need to do that because Bapis call in our application are expensive. Thus we want to minimize them. It would be impossible to rewrite the whole backend, because we're migrating from an existing application.
    I thought about sharing through a database local to the J2EE engine, or file sharing through a lock. But I bet these options are likely to hinder me than anything else.
    Does anybody has a suggestion?
    Thanks in advance,
    Alexis Trudeau

    Indeed, my explanations are a bit misleading. According to your definition, I'm talking about shared data.
    For example, in my application we have user profiles. Each user has a subset of these profiles.
    Usually, these profiles are only modified during the deployment stage on the client's infrastructure.
    Once settled, these profiles are static during production. In that case, I'd rather fetch all the profile once, and work with them locally on the J2EE engine instead of fetching them each time a user is authentified.
    Do you have further suggestions?
    P.S. Yes, I do use NetWeaver wizard to create Adaptive RFC Model

  • How does the shared data get applied?

    We have 2 mobile phones in a shared data business plan. One phone has 2.5gb of data allowance and mine has 6gb of data allowance. I am about to exceed my allowance for the month but the other phone still has 2gb of available allowance.
    How do I avail myself of the allowance of the other phone? Is it automatically done for me?
    Thanks

    Hi Swerv, if you are sharing the data on a business fleet plan then as long as the combined usage does not exceed the combined allowance, you have not gone over. So for example you use 1GB on one phone and 7GB on the other, you are within allowance.
    -Ern

  • Why is it ok for a verizon wireless service representative to lie to a customer? I went over my monthly data and i called to ask for some help with the overage because i was barely over. They told me they would take care of it and sold me on a shared data

    why is it ok for a verizon wireless service representative to lie to a customer? I went over my monthly data and i called to ask for some help with the overage because i was barely over. They told me they would take care of it and sold me on a shared data plan that would result in 2gb less data but told me i would save 20$ a month. I agreed and recieved my next statement and to my suprise my bill actually went up 15$ a month and i talked to several people and they all told me there is nothing that can be done to get back on the plan i was on and they can not even give me a discount to get me back to what i was paying. They can only offer me a convenience credit. I will be cancelling service.

    ajwest101,
    We do not want to see you go. I truly apologize for any misinformation regarding your plan. Let's investigate into this a little further. What plan were you on? What plan were you switched to? If you look at the detailed billing online of your previous bill do you see any additional charges other then the plan?
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Can I extended the review date on the deadline date prior to the time the shared review is to end?

    I am attempting to extend the deadline on the date the shared review is to end prior  but prior to the time of the day it is to expire; however, only the initiator of the shared review receives the extention. Adobe saves a copy of the extended date on the initiators local drive without saving a copy to the document reviews folder on Share Point, in which the reviews would have access.
    Should Adobe create a new link to the document with the deadline extended from the SharePoint copy as well?

    When the Initiator changes the deadline in his copy, it gets propagated to the reviewers' copies as well. When the reviewers do a 'Check for New Comments' or 'Publish Comments', they will get notified of the new deadline.

  • How do I use a shared data source in my dataset in this new UI?

    I'm new to SSRS 2012 and am having trouble with the UI. All of my experience is with SSRS 2005, and this is quite different.
    So I created a shared data source in my new project. Next I added a report (non-wizard, I'm going for hand-crafted). Looking at the UI I have a report data window on the left side of VS 2010, and in it are a couple of menus and a tree navigation pane. If I
    select the new menu, and then dataset (since I want to add the data to my report first) I get the Dataset property window. After selecting 'Use a dataset embedded in my report' a new panel is displayed where I can set up a new dataset. But from what I see
    here all I can do is create a new data source, but I want to use my shared datasource. I would think it would just be in the data source drop down presented, but that is empty (I had an image that illustrated all this but I keep being told I need to 'verify
    my account', and after doing so I'm still getting that error... oh well, I don't have enough time to keep verifying my account here).
    In 2005 I could choose a shared datasource, and it doesn't seem logical that this functionality would be removed. What am I missing here?
    Any help would be much appreciated.

    First right-click on your reports' Data Sources and add a reference to the Shared Data Source, by selecting "Use Shared Data Source Reference" in the "Add Data Source" dialog.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Problem with Home Sharing.  Getting the error "The Requested URL was not Found on this Server"

    I recently purchased an iPhone 5.  As I do with all of my AppleTVs, iPads, iPods and an iPhone 4 in my home, I connected the 5 to my home network and accessed the shared video library using home sharing.  My iTunes library is roughly 85% iTunes purchases, a handful of videos taken with iOS devices, and some video ripped with Handbrake.  All of these videos work fine on all devices in my home except my new iPhone 5.  When I access the shared video library on my iPhone 5, all of the textual data for all of the videos appears, however, I can only get the iPhone to play 1 video of the dozens in my iTunes library. When I try to play any other, I get the error, "The Requested URL was not Found on this Server."
    Interestingly, only one video in my entire shared library displays the artwork associated with it in my iTunes library on my iPhone 5, and that's the one I can stream without a problem. Even more interestingly, that video I am able to stream was ripped using Handbrake (there are a number in my library ripped using Handbrake, but just this one will stream to my iPhone 5 for some reason).
    I'm using the latest version of iTunes (10.7) on my home (iMac) computer (running OSX 10.8.2- Mountain Lion)and of course iOS 6 on the iPhone 5. I've tried resetting my iPhone several times as well as restarting my iMac which holds my iTunes library.
    Does anyone have any ideas as to what's going on?

    Can you see if you can view index page from a browser on iPhone.
    Have you seen live streams working from a different computer...
    if not then check if a proper crossdomain.xml file in its place(webroot folder).

  • Working with multiple users and computers, but shared data

    Sorry if this is posted in a poor place, I'm not sure where the best place is. This is sort of a general questions.
    For a long time, my wife and I have had either one computer, or two machines but one has definitely been just a terminal. We've basically set up all of our data to be one one primary machine, and if we want to view/edit that data we have to use that machine.
    We just got a new MacBook Pro and I would like to be able to use two machines as equals. Sadly, this idea of multiple computers, with two users and some shared data is really giving me difficulty. I was wondering if anyone has any suggestions on how to best manage things like:
    Synchronizing portions of our contact list (We share about 50% of the combined library -- we don't have to share all though).
    How to manage iPhoto so that we can each have access to the photos. As an added difficulty (or maybe this is easier?) my Wife just wants to have access to the pictures for viewing and sharing on Facebook/Picassa/etc. I am the only one who wants to edit, correct and cull our library. That said, I always edit when I first put the data on the machine, and almost never again; so it would be fine to have one (or both accounts) set up as view only for the iPhoto data.
    How to manage iTunes so that we can each have access to the music. As a super awesome bonus, it would be great if we could have three libraries: His, Hers and Shared. Maybe as much as 30% of our music library is similar, the rest just gets in the way.
    What is the best solution people have found for calendars? (I'm thinking two separate calendars, and we each subscribe to each others iCal feed)
    Mail.app and bookmark synching is not really a problem for us.
    Two extra points:
    * One machine is portable, and the other isn't. Ideally, when the laptop is out of the house, both machines should still have reasonable access to the shared data. That is: Just dumping things in the shared folder won't work because when the laptop is out of the house we will be disconnected from the source data.
    * We just got a second iPhone. This means that both of us will be taking photos/video separately and trying to synch back to the master data store.
    * Basically, I'm trying to minimize data duplication as much as possible, and just synchronize the systems to each other.
    Thanks a ton in advance. If anyone has any suggestions at all, I would love to hear them. Including "This is in the wrong forum, go ask here instead..."

    So you have a desktop Mac and a laptop Mac, right? Two user accounts (and a third admin account) on each computer, right?
    I profess that I haven't tried this, but here is how I would approach your problem:
    Sharing Music and Photos between multiple user accounts on the same computer: 
    See if http://forums.macrumors.com/showthread.php?t=194992 and http://forums.macrumors.com/showthread.php?t=510993 provide any useful information to assist you in this endeavor.
    Sharing across multiple computers:
    Turn on file sharing on the Desktop (System Preferences > Sharing). Now you can mount the Desktop as an external drive on the laptop's Desktop. Copy the music and photo folders across. Will take awhile to do the first time. Then, for future use, get a copy of the donationware CarbonCopyCloner or equivalent. You can use CCC to selectively sync specific folders from one computer to the other. There may be a hassle with digital copyright issues on music and movies, though.
    Calendars:
    As you have suggested yourself, publishing yours and subscribing to hers is probably the best way to do it, on the same computer. Across computers, syncing with CCC or equivalent would probably be the way to go.

  • I am migrating to a new iMac via TimeMachine back up.  My iPhoto libraries are on external drive.  I'd like to migrate only the internal hard drive data to the new internal Drive then just plug in iPhoto library drive.  Is this going be a problem?

    I am migrating to a new iMac via TimeMachine back up.  My iPhoto libraries are on an external drive.  Both drives are backed up on Time Machine.  I'd like to migrate only the old internal hard drive data to the new internal Drive and then just plug in iPhoto library drive to the new iMac.  This would save having to transfer several hundred GBs of data.  Will this work using Set Up Assistant?

    Your user account on the new Mac must have a different UID than on the old one.  See the pink box in Problems after using Migration Assistant for an explanation.
    You'll need to change the permissions on the iPhoto library on the external HD.  Do a Get Info on it, click the padlock at the bottom of the Sharing & Permissions section of the Info window and enter your Admin password. 
    Then click the plus sign, select the user account you want on the next screen, and click Select.   Then change Read only to Read & Write for that user via the little arrows.  Finally, click the "gear" icon and select Apply to enclosed items.  That may take a few mintutes on a large library.

  • SQL Server 2008 R2 - Report Builder 3.0 - timeout using shared data source and stored procedure

    I select the shared datasource from the data source propeties dialog, test the connection and everything is good.
    I add a dataset by selecting "use a dataset embedded in my report" option within the Dataset properties dialog.
    I select the newly added data source, click the "Stored procedure" query type and drop down the list box and select my intended stored procedure.
    the timeout for the dataset is "0" seconds.
    I click the "OK" button and I'm presented with the parameters to the stored procedure.
    I enter valid data for the parameters and click the "OK" button.
    I then get the following error message after 30 seconds:
    The problem is, all of the timeouts, that I'm aware of, have values of zero (no timeout) or high enough values that 30 seconds isn't even close to the timeout.
    I think the smallest timeout we have is 120 seconds.
    I have searched this site and many others and the solutions all involve altering the stored procedure to get the fields into report builder and then revert the stored procedure back to its original form.
    To me, this is NOT a solution.  
    I have too many stored procedures that need to be brought into Report Builder.
    I need a real solution.
    Thank you for you time, Tim Caldwell.
    Timothy E Caldwell

    I don't mean to be rude, but really, check to see if the stored procedure can return data rows???
    Maybe I'm not being clear enough.
    The stored procedure runs perfectly fine.
    it runs perfectly fine in the production environment and the test environment.
    I can access the stored procedure in several ways and have it return correct data.
    I can even trick report builder into creating a dataset with parameters and run the stored procedure that way.
    What I cannot do, is to get report builder to not timeout after 30 seconds on the initial creation of a dataset with a Query type of stored procedure.
    I have seen this issues posted again and again and again on may different sites and the "solution" is to simplifiy the stored procedure by creating a stored procedure that has a create table and a select in the stored procedure and that's it.  After
    report builder creates the dataset the developer then has to replace the simplified stored procedure with the actual stored procedure and everything works fine after that.
    HOWEVER, having to go through this process for 70 or more stored procedures is ridiculous.
    It would appear that there is something within report builder itself that is causing this issue.
    The SQL Script included is an example of a stored procedure that will not create fields create a dataset with fields and parameters in Report Builder 3.0:
    USE [CRUM_IT]
    GO
    /****** Object: StoredProcedure [dbo].[COGNOS_Level5ScriptSP] Script Date: 11/17/2014 08:02:26 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[COGNOS_Level5ScriptSP]
    @CompanyCode varchar(8) = null,
    @GetSiblings varchar(1) = 'N'
    as
    Begin
    -- get emergency contact info
    select *
    into #tmp_Contacts
    from
    (select
    ConEEID,
    con.connamelast as [Emer Contact Last Name],
    con.connamefirst as [Emer Contact First Name],
    con.connamemiddle as [Emer Contact Middle Initial/Name]--,
    ,ROW_NUMBER() over (Partition by ConEEID order by ConNameLast)as rn
    ,ISNULL(
    case when con.conphonepreferred = 'H'
    then '(' + substring(con.conphonehomenumber, 1, 3) + ')' + substring(con.conphonehomenumber, 4, 3) + '-' + substring(con.conphonehomenumber, 7, 4)
    else '(' + substring(con.conphoneothernumber , 1, 3) + ')' + substring(con.conphoneothernumber , 4, 3) + '-' + substring(con.conphoneothernumber , 7, 4)
    end,
    ) as [Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.Contacts con
    where con.ConIsEmergencyContact='y'
    and con.ConIsActive='y'
    ) A
    where A.rn = 1
    CREATE TABLE #tmp_CompanyCodes (CompanyCode varchar(8))
    If @GetSiblings = 'Y'
    Begin
    INSERT INTO #tmp_CompanyCodes (CompanyCode)
    EXEC [z_GetClientNumbers_For_ParentOrg_By_ClientNumber] @CompanyCode
    End
    INSERT INTO #tmp_CompanyCodes
    values (@CompanyCode)
    select *
    into #tmp_Company
    from [ultiprosqlprod1].[ultipro_crum].dbo.Company
    where cmpcompanycode in (select CompanyCode from #tmp_CompanyCodes)
    select distinct
    cmpcompanycode as [Client ID],
    CmpCompanyDBAName as [Client Name],
    eec.eecEmplStatus AS [Employment Status],
    eec.eecEmpNo AS [Employee Num],
    rtrim(eep.eepNameLast) AS [Last Name],
    rtrim(eep.eepNameFirst) AS [First Name],
    isnull(rtrim(ltrim(eep.eepNameMiddle)), '') AS [Middle Initial/Name],
    rtrim(eep.eepAddressLine1) AS [Address Line 1],
    isnull(rtrim(eep.eepAddressLine2), '') AS [Address Line 2],
    eep.eepAddressCity AS [City],
    eep.eepAddressState AS [State],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 1, 5)
    ELSE rtrim(eep.eepAddressZipCode)
    END AS [Zip code],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 6, 4)
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) > 0
    THEN substring(eep.eepAddressZipCode, charindex(eep.eepAddressZipCode, '-', 1) + 1, 4)
    WHEN len(eep.eepAddressZipCode) <= 5
    THEN ''
    END AS [ZIP + 4],
    substring(eep.eepSSN, 1, 3) + '-' + substring(eep.eepSSN, 4, 2) + '-' + substring(eep.eepSSN, 6, 4) AS [SSN],
    isnull(convert(VARCHAR(10), eep.eepDateOfBirth, 101), '') AS [Date Of Birth],
    eetFED.TAXCODE AS [FED Tax Code],
    eetFED.FILINGSTATUS AS [Fed Filing Status],
    eetFED.EXEMPTIONS AS [Fed Exemption Allowance],
    eetFED.ADDITIONAL AS [Additional Fed Withholding],
    eetSIT.TAXCODE AS [SIT Tax Code],
    eetSIT.FILINGSTATUS AS [State Filing Status],
    eetSIT.EXEMPTIONS AS [State Exemption Allowance],
    eetSIT.ADDITIONAL AS [Additional State Withholding],
    isnull('(' + substring(eep.eepPhoneHomeNumber, 1, 3) + ')' + substring(eep.eepPhoneHomeNumber, 4, 3) + '-' + substring(eep.eepPhoneHomeNumber, 7, 4), '') AS [Home Phone],
    isnull((SELECT cod.codDesc
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.Codes cod WITH (NOLOCK)
    WHERE cod.codCode = eep.eepEthnicID
    AND cod.codDosTable = 'ETHNICCODE'), '') AS [Race-Origin], --eep.eepEthnicID AS [Race-Origin],
    eep.eepGender AS [Gender],
    isnull(convert(VARCHAR(10), eec.eecDateOfOriginalHire, 101), '') AS [Original Hire Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfSeniority, 101), '') AS [Seniority Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfTermination, 101), '') AS [Termination Date],
    isnull(eecTermType,'') as [Termination Type],
    isnull(TchDesc, '') as [Termination Reason],
    rtrim(eec.eecJobCode) AS [WC Code],
    isnull(eec.eecJobTitle, '') AS [Job Title],
    pgr.pgrPayFrequency AS [Pay Frequency],
    eec.eecFullTimeOrPartTime AS [Full/Part Time],
    eec.eecSalaryOrHourly AS [Pay Type],
    isnull(convert(MONEY, eec.eecHourlyPayRate), 0.00) AS [Hourly Rate],
    isnull(eec.eecAnnSalary, 0.00) AS [Annual Salary],
    [YTD Hours],
    isnull(eep.eepNameFormer, '') AS [Maiden Name],
    eec.eecLocation AS [Location ID],
    rtrim(eec.eecOrgLvl1) AS [Department ID],
    eec.eecorglvl2 AS [Cost Item],
    eec.eecorglvl3 as [Client Project],
    eec.eecPayGroup as [Pay Group],
    isnull(eepAddressEMail,' ') as [Email Address],
    isNull(BankName1,' ') as PrimaryBank,
    isNull(BankRoute1,' ') as PrimaryRouteNum,
    isNull(Account1,' ') as PrimaryAccount,
    isNull(AcctType1,' ') as PrimaryAcctType,
    isNull(DepositRule1,' ') as PrimaryDepositRule,
    isNull(BankName2,' ') as SecondaryBank,
    isNull(BankRoute2,' ') as SecondaryRouteNum,
    isNull(Account2,' ') as SecondaryAccount,
    isNull(AcctType2,' ') as SecondaryAcctType,
    isNull(DepositRule2,' ') as SecondaryDepositRule,
    isNull(
    CASE
    WHEN DepositRule2 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct2 AS decimal(10,2)))
    WHEN DepositRule2 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct2*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as SecondaryDepositAmount,
    isNull(BankName3,' ') as ThirdBank,
    isNull(BankRoute3,' ') as ThirdRouteNum,
    isNull(Account3,' ') as ThirdAccount,
    isNull(AcctType3,' ') as ThirdAcctType,
    isNull(DepositRule3,' ') as ThirdDepositRule,
    isNull(
    CASE
    WHEN DepositRule3 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct3 AS decimal(10,2)))
    WHEN DepositRule3 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct3*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as ThirdDepositAmount,
    Supervisor,
    eec.eecEEID AS [Employee EEID],
    eec.EecJobCode As [Job Code],
    isnull(eec.EecTimeclockID,' ') As [Time Clock ID],
    con.[Emer Contact Last Name],
    con.[Emer Contact First Name],
    con.[Emer Contact Middle Initial/Name],
    con.[Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.empPers eep WITH (NOLOCK)
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.empComp eec WITH (NOLOCK)
    ON eep.eepEEID = eec.eecEEID
    inner join #tmp_Company cmp WITH (NOLOCK)
    ON eec.eecCOID = cmp.cmpCOID
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.PayGroup pgr WITH (NOLOCK)
    ON eec.eecPayGroup = pgr.pgrPayGroup
    left outer join [ultiprosqlprod1].[ultipro_crum].dbo.TrmReasn
    on tchCode = eecTermReason
    left join (select CAST(sum(isnull(eee.eeeYTDHrs,0.00))AS DECIMAL(18,2)) as [YTD Hours],
    eeeEEID,
    eeeCOID
    from [ultiprosqlprod1].[ultipro_crum].dbo.EmpEarn eee with (NOLOCK)
    group by eeeCOID,eeeEEID)eee
    on eec.eecEEID = eee.eeeEEID
    and eec.eecCOID = eee.eeeCOID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode = 'USFIT'
    )eetFED
    ON eec.eecCOID = eetFED.COID
    and eec.eecEEID = eetFED.EEID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode like '%SIT'
    AND eetIsWorkInTaxCode = 'Y'
    )eetSIT
    ON eec.eecCOID = eetSIT.COID
    and eec.eecEEID = eetSIT.EEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName1,
    eddEEBankRoute BankRoute1,
    eddAcct Account1,
    EddAcctType AcctType1,
    EddDepositRule DepositRule1,
    EddAmtOrPct EddAmtOrPct1
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '99')edd
    ON eec.eecCOID = edd.eddCOID
    and eec.eecEEID = edd.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName2,
    eddEEBankRoute BankRoute2,
    eddAcct Account2,
    EddAcctType AcctType2,
    EddDepositRule DepositRule2,
    EddAmtOrPct EddAmtOrPct2
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '01')edd2
    ON eec.eecCOID = edd2.eddCOID
    and eec.eecEEID = edd2.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName3,
    eddEEBankRoute BankRoute3,
    eddAcct Account3,
    EddAcctType AcctType3,
    EddDepositRule DepositRule3,
    EddAmtOrPct EddAmtOrPct3
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '02')edd3
    ON eec.eecCOID = edd3.eddCOID
    and eec.eecEEID = edd3.eddEEID
    left outer join (SELECT eecCOID,
    eecEEID,
    rtrim(eepNameLast) + ', ' +
    rtrim(eepNameFirst) + ' ' +
    isnull(rtrim(ltrim(eepNameMiddle)), '') AS [Supervisor]
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpComp WITH (NOLOCK)
    join [ultiprosqlprod1].[ultipro_crum].dbo.EmpPers with (NoLock)
    on eeceeid = eepeeid)eec2
    ON eec.eecSupervisorID = eec2.eecEEID
    left outer join #tmp_Contacts con
    on eep.eepEEID = con.ConEEID
    order by [Client ID],
    [Last Name],
    [First Name]
    drop table #tmp_Contacts
    END
    Timothy E Caldwell

  • How can I sync my iPhone/iPad to a new computer without losing data on the devices?

    I have the itunes home sharing set up. I have 2 different laptops, each with it's own iTunes on it, and each has it's own library. I have my iPad and iPhone synced to Laptop #1, but this laptop is old and I want to sync my devices to Laptop #2. I've used the home sharing to transfer the songs, videos, etc to move everything from the iTunes on Laptop #1 to the iTunes on Laptop #2. But when I connected my devices to Laptop #2, I got the message saying that my devices were synced to a different iTunes and they can only be synced with 1 iTunes at a time. It warned me if I synced to Laptop #2, I would lose the data on my device, and the data on the iTunes of Laptop #2 would be transferred.
    I don't want to lose any of the data on my devices, but I want to sync to Laptop #2. How can I do this? Any help is appreciated, thanks!

    Hello again and sorry to bother you. I was hoping you could help me with iTunes 10.5. This update has been a pain. When I first installed it, my entire library was gone. Luckily, I saved the "iTunes Library" file before updating and copied it in place and my library appeared. But now the problem I'm having is that the iTunes can't find any of the "original" files, even though my iTunes Media file location has not changed (it's on an external network drive". When I click on the "Do you want to find the original file" I can find it in the appropriate folder. I checked the "Preferences" and under "Advanced" I re-mapped it to the appropriate location and already had the 2 boxes for iTunes organizing files checked. Then went to "File" and "Organize Library" and clicked the first check box and then got the "Copying Files" bar. When this was completed, I thought it would be able to find the original files. But I'm still getting the same error message about not being able to find the "original" files. Do you have any suggestions? Thanks again for your help.

  • I managed to transfer the music from 1 pc to 1 other pc (to be played by iTunes). Bit didn't fixe the transfer of the meta data (for example the rating). Does anyone know how to use your old playlists, etc..(= meta data) on the other PC? So, please help!

    I managed to transfer the music from 1 pc to 1 other pc (it is played perfectly on the other PC (Windows 7- pc) by the newly downloaded and installed iTunes, version 10.6.1.7). But I didn’t fix the transfer of the meta data (for example the rating). Does anyone know how to use (or import) your old playlists, etc..(= meta data) on the other PC? So, short: how to migrate the meta data from one pc to an other pc?
    It's a pity that it seems not to be possible to import on the new pc e.g. the ratings!!!
    I don't want to start again with rating my (beautiful classical) music!
    Thanks, from Amsterdam, NL

    Did you do the move via Home Sharing, astro?
    If so, perhaps try the instructions from the following post:
    Re: i transfered itunes to my pc playlists did not go

  • Will I loose existing data on the Time Capsule if I use it now for Time Machine also?

    Till now I only save photos, music and movies on my AirPort Time Capsule 2 TB. From now on I also want to use it for Time Machine Backups also. But I am not sure if it my data and the backup will exist in parallel.

    You can drag and drop files to the Time Capsule using the Finder.
    Open Macintosh HD or the Finder and look for the Time Capsule icon under the SHARED heading on the left side of window.
    Click on the Time Capsule icon and a folder representing the drive will appear in the window to the right.
    Double click the folder to mount the drive on the desktop.

Maybe you are looking for

  • How to pass 2nd argument as parameter to SYS_CONNECT_BY_PATH in PLSQL

    Hi All, I've the following tables and data: CREATE TABLE seg_tab (seg_no NUMBER, seg_value VARCHAR2(10)); --1st Subset INSERT INTO seg_tab VALUES (1,'01'); --2nd Subset INSERT INTO seg_tab VALUES (2,'001'); INSERT INTO seg_tab VALUES (2,'002'); --3rd

  • Why doesnt my Iphone wifi work?

    When I am at school, I get the schols wifi and when I'm walking home I get the wifi of the neighborhood. As I get closer to my house my wifi pops up but the moment I set itno the house all five of our wifi's are gone and wont come back. So basically

  • No Internet access after setting up time capsule

    I am setting an airport time capsule. After setting up new network, I no longer have Internet access and can not set up the time capsule. I have tried to cycle the power on my model but no luck. Any ideas?

  • Why FINAL??

    Dear all, I got this error: "local variable threshold is accessed from within inner class; needs to be declared final" Why does it have to be final and what's the effect of it? Kevin

  • How can I activate Premiere Elements 12 (Win)?

    I couldn't find the place where I can activate Premiere Elements. I have the serial number and an activation code. But where do I type in the serial number and activation code?