Static again,......

I have this interface
interface AttachmentServiceIF extends Remote {
   public abstract DataHandler getAttachment(String name) throws SOAPException;
}and this method inside another class which implements that interface
public DataHandler getAttachment(String fileName)
       DataSource src = new FileDataSource(fileName);
       DataHandler result = new DataHandler(src);
       return result;
    }How can i call the getAttachement() method so that i could get a result??
via main i cannot because it is static and i do not know if static would be applicable here.
THNX!

Yes, exactly.
If constructing ClassThatImplementsAttachServInterFace directly doesn't make sense you should look for methods that return an instance of AttachmentServiceIF, like:
AttachmentServiceIF as = someObj.getAttachmentService(); // hypothetical method
DataHandler handler = as.getAttachment("myfile.zip");

Similar Messages

  • Static again: methods vs direct access

    Ok, I had the discussion about static some time ago.
    I made some tests and have another question about that, but this time it will be a long code included.
    Lets see:
    TestTest.java
    import java.io.*;
    public class TestTest
         public static void main(String[] args)
              int amount = 100000000;
              int tester = 1;
              String testers = "X";
              long start;
              long time1=0;
              long time2=0;
              long time3=0;
              long time4=0;
              long time5=0;
              long time6=0;
              long time1s=0;
              long time2s=0;
              long time3s=0;
              long time4s=0;
              long time5s=0;
              long time6s=0;
              TestStatic blubStat     = new TestStatic();
    // static instance int direct
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   tester=blubStat.testint;
              time3 = System.currentTimeMillis()-start;
              System.out.println("3 :"+time3);
    // static instance int method
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   tester=blubStat.getint();
              time4 = System.currentTimeMillis()-start;
              System.out.println("4 :"+time4);
    // static instance String direct
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   testers=blubStat.teststring;
              time3s = System.currentTimeMillis()-start;
              System.out.println("3s:"+time3s);
    // static instance String method
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   testers=blubStat.getstring();
              time4s = System.currentTimeMillis()-start;
              System.out.println("4s:"+time4s);
              Test      blub = new Test();
    // instance int direct
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   tester=blub.testint;
              time5 = System.currentTimeMillis()-start;
              System.out.println("5 :"+time5);
    // instance int method
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   tester=blub.getint();
              time6 = System.currentTimeMillis()-start;
              System.out.println("6 :"+time6);
    // instance String direct
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   testers=blub.teststring;
              time5s = System.currentTimeMillis()-start;
              System.out.println("5s:"+time5s);
    // instance String method
              start = System.currentTimeMillis();
              for (int i=0;i<amount;i++)
                   testers=blub.getstring();
              time6s = System.currentTimeMillis()-start;
              System.out.println("6s:"+time6s);
    }Test.java
    import java.io.*;
    public class Test
         public int     testint=5;     
         public String teststring = "Test";
         public Test()     
              testint=3;
         public int getint()     
              return testint;     
         public String getstring()     
              return teststring;     
    }TestStatic.java
    import java.io.*;
    public class TestStatic
         public static int     testint=5;     
         public static String teststring = "Test";
         public TestStatic()     
              testint=3;
         public static int getint()     
              return testint;     
         public static String getstring()     
              return teststring;     
    }Running TestTest prints the following output (JDK1.4):
    3 :1100
    4 :1150
    3s:1100
    4s:1100
    5 :1210
    6 :4560
    5s:1310
    6s:4560
    As you see, the times from 6 and 6s are 4 times as high as the others.
    My basic question is: Why is the access via a method so much slower when using an instanciated class??
    Hope anybody can help me with this....

    Hmm, thats what i feared. Then it seems to have no way around...
    The problem is, I have a NetLib doing network communiction stuff. And one method is "isReady()", that test if I can read data from the InputStream of the socket. Now that call runs in a loop in my main program:
    while (stuffnotdone)
       if (NetLib.isReady())
          NetLib.sendBack(NetLib.whatyourecieve());
    }Summarized a simple echo server. And I wondered why this was so slow compared to a version without using the NetLib but copying the stuff from the Methods directly into the code.
    Well then it will be a better way to get the stream and do everything in program itself or do it static.
    Well then, lets see...
    Thx for the answer.
    Skippy

  • Static Objects.

    If an object were static, would its non-static members act like static? What kind of problems would happen if two threads try to use this object to call one of its non-static functions? Would any member of this object (either static or non-static) be part of a critical section?

    jverd wrote:
    wpafbuser1 wrote:
    There's no such thing as a static object (since there's no instance).No, there's no such thing as a static object because the property of being static or not is not applicable to objects. Saying there's no instance is wrong, since, if there's an object, there's obviously an instance--the object.I wrote too fast, I meant there's no instantiation. Obviously there's an object/instance. But my thinking was flawed there anyway. :)
    A class is considered static when it's fields and methods are static.No. A class is static when it's a nested class and it's declared static. A class is often incorrectly called static simply by virtue of it having only static members. Regardless of whether the class is static, all instances of that class are neither satic nor non-static.The term static, incorrectly used or not, I was referring too top-level classes not inner classes.
    I guess what I'm saying is that if you include non-static methods or fields in your class, it's no longer a static class Wrong.
    class Outer {
    static class Nested {
    int x;
    void foo() {}
    }Nested has a non-static member variable and a non-static method, but it's still a static class, because it's declared static.Again, we're talking about 2 different things now.

  • Nokia E7 screen static?

    I've had a Nokia E7 for about half a year. it worked pretty well until the screen got cracked. It worked fine for a while, then the touch screen stopped responding. I got it fixed and it was working perfectly fine for about 2 weeks. i was using it one day, and it was eprfectly fine. I set the phone aside for a few minutes, then came back to it. I saw the whole screen was showing static, like when your tv has bad reception. i tried turning it off and on again, but it did not clear it up. I tried calling my number, and the phone rang. After about 10 minutes of curses and profanities, it cleared up again. About half an hour later, it became static again. Once again, after about 10 minutes, it cleared up. That night, i plugged the E7 into the charger, and the next morning, it was displaying static once again. i turned it off, intending to go see the shop. When i went, i turned the phone on, and there was no static. When he was checking it over, it went back to static for about 5 seconds, before returning to normal. When i left, i had walked about 50 metres when i reached to my phone to check the time. it was displaying static yet again. This was was about 5 hours ago and it has been displaying static since. what is the problem and how can i fix it?? any help would be much appreciated. thanks

    Hi brickfonesss,
    I have read what you have posted and I would suggest you to visit your nearest local Nokia Care Center and they will assist you. Maybe the time you fixes your phone after the crack you were not replaced with the required screen for Nokia E7 and you were replaced with a counterfeit one. Whenever your phone has a problem I suggest that you visit an authorized Nokia Dealer or Nokia Repair store otherwise visit Nokia Care Center for quality replacements.
    Ngwangwa - Six Million Ways To Die Choose One

  • No Apple TV icon but for only one movie

    I can play my music or any other of my previously purchased movies thorugh my apple tv but a movie I purchased last night has no apple tv icon.
    Double checked, played some music from purchased and also imported works ok
    check previously purchased movies and some I made in iMovie, works ok
    Back to the one I purchased last night, works fine on the computer so download was ok but no apple tv icon option !

    The exact same thing was happening on my Apple TV.  I purchased the latest episode of Doctor Who (Hide), and the video (picture) played fine, but the audio was just static.
    I tried loading the episode on my iPad 2 and play it that way.  After it loaded, it played fine, video and audio on my iPad 2's internal speaker.  When I tried to AirPlay it to the Apple TV, the audio was static again.  Even when I plugged my iPad 2 directly into the TV via HDMI converter cable, the audio was still static.
    This is the ONLY episode of Doctor Who (and only digital content, EVER, since owning an Apple TV 3rd gen since its release) that played this way.  All other content, Doctor Who, other TV shows, movies, and services (such as NetFlix & HuluPlus) all play audio just fine.
    I did some research and ended up here on this thread.
    I turned off Dolby Digital Audio as suggested and the audio worked fine.  Problem solved, but I lost a couple hours to this nonsense.  I call it "nonsense" because I found evidence that this problem has been documented and discussed since 2009 (including an article on Cnet).  Stuff happens, technology isn't perfect, and people make mistakes, but a 4 year old problem still sending folks on wild goose chases for a fix?  Not cool.
    Oh well.  At least I'm a little wiser for the trouble.

  • IP setttings changes automatically to obtain IP address from DHCP

    Hi,
    We have a Windows Server 2003 R2 Enterprise SP2 server. It is one of many at this location, however it is the only one that reverts to DHCP in the properties of TCP/IP. If you go into the control panel and go to network connections choose the NIC, if you
    right click and go to properties and then choose Internet Protocol (TCP/IP) and view its properties. You can assign a static IP, so we enter all the IP information and click ok (and have tried apply before clicking ok) but either way if you ok your way entirely
    out and then go back in to the TCP/IP properties it is set to DHCP.
    So more simply, when you set a static IP in the control panel of Server 2003 it does not keep the settings in the GUI. If you do an ipconfig /all in dos it says that it is "Manually Configured" and appears ok. However if you go back in and try to
    set the IP again in the GUI and then do another ipconfig /all it says you have the address that you manually assigned but it also says it is using DHCP.
    Repeating this process and trying to assign a static again and doing a third ipconfig /all it will again say "Manually Configured" and the correct IP but the GUI always says "Automatically obtain" no matter what you put in and try to save.
    I think this may be causing some oddities to occur with the server and I wanted to see if anyone had any ideas of how to resolve this.
    Thank you in advance.

    I'd check the manufacturer's web site for the latest system ROM bios and driver support pack.
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Problems With Video From a Still Camera

    I am new to Premier Pro CS4, so this may just be a simple newbie thing . . .
    I have a series of videos taken with a Nikon Coolpix series non-video camera.These are all in an AVI format. Premiere recognizes the video, no problem, and the Info tab in Media browser tells me that the file is 30 fps with a frame size of 640 x 480 (1.0). I presume this last number means square pixels.
    When I try to view the video from within Premiere, the audio track is fine, but the video stays static for a while, then jumps a few frames and stays static again.
    I thought this was frame rate problem, so I payed closer attention to settings in creating the project. So far, nothing has made a difference.
    Is there a way to overcome this problem? Since I don't have a video camera (yet) but do have lots of these type of AVI files, I'd like to be able to do something with them in Premiere.

    I admit Hunt, sometimes the CODEC thing bewilders me also, but ultimately finding the right codec is the way to go.
    Mitchell, so as not to confuse, Hunt is emphasizing getting the right codec on your PC so your native video clips will edit smoothly. My approach is the other end of the stick: forget finding a CODEC, instead use a utility to convert your raw footage to an editable AVI that will utilize whatever CODEC governs the AVI world. That has it's drawbacks, because for one, you're converting a file format, so is there any loss of image quality? The other problem is that a typical raw file of 1GB usually turns into a 2.5GB AVI, so you have bigger duplicated files to have to manage. Wouldn't it be nice to just use your raw file out of your camera? Well, with the right CODEC... amazing how that works.
    So, let's just go down the conversion road for a minute. It's some extra work and file management, and that needs to be considered. And, conversion can degrade a file, so that means that you need to use a good converter if you go that route. My 5D Mark II clips are 8-bit 4:2:0... I use NeoScene to upsample them into a 10-bit 4:2:2 AVI file (not purposely, that's just what NeoScene does). I think the added info to interpolate the video up to 10-bit basically just keeps it from degrading. My clips look just grand, no worse than raw. Good enough for me. BUT, it's an extra $99 for NeoScene from VideoGuys.com. Isn't there some way to do this with our current tools? Well, I was blabbing about NeoScene one night on here, and one of the Adobe fellas, Dennis Radeke, piped on and asked me, "why not just use AME to convert your files?". So that tells me it's a possibility, although Dennis hadn;t actually tried it yet. That's up to ME, so I'd better give that a whirl tonight. I'll let y'all know what happens.
    Then there is option #3: Somebody piped on the forums and asked me "Why don't you just use the Canon ZoomBrowser software to convert your files to AVIs?... it comes in the box with your camera". I didn;t even think to see what Canon offered, who uses software that comes with a camera anyway??? But evidently Canon has provided this. SO, I suppose I can check that out also, which means that you may want to rummage around in your camera's box and see what software is bundled in there.
    In the meantime I'll try AME tonight. However, if you can find the right codec and you get it all to edit smoothly, let us know!

  • Conditions within subclass constructors?

    My assignment is to create a Ticket class with three subclasses, WalkupTicket, AdvanceTicket and StudentAdvanceTicket.
    AdvanceTicket and StudentAdvanceTicket both must have two parameters, the ticket number, and the number of days in advance the ticket is purchased. Depending on how early the ticket was purchased, the price varies. WalkupTicket is easy since it only has one price, but the other two are giving me a hard time. What I want to do is something like this;
    public class Ticket {
         private int number; // Instance variable containing ticket number
         private int price;  // Instance variable containing ticket price
         public Ticket (int n, int p) {
              number = n;
              price = p;
         public static class AdvanceTicket extends Ticket {
              public AdvanceTicket (int n, int d) {
                   if (d >= 10) super(n, 30);
                   else super(n, 40);
    }But that doesn't work because the first line in the subclass constructor must call the superclass constructor.
    I've tried creating a checkPrice method within the subclass, then using super(n, checkPrice(d)); but that gives me an error as well, telling me I have to call the super constructor before calling the method.
    Can someone point me in the right direction?

    While it is possible to achieve by making the field package private/protected/public, that is not a good approach. Fields should be made private unless you have good reason not to. Furthermore doing so won't change anything, you will still be invoking a super constructor; an [implicit call to super();|http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.8.7] will be inserted for you.
    The wording of the assignment is somewhat woolly, but I'm certain the original solution does not violate the requirements.
    EDIT: I just realized you are using an inner class. The reason you can't instantiate it is that it needs an instance of Ticket first:
    Ticket t = null;
    WalkupTicket wt = t.new WalkupTicket(1);So in order to create a ticket you would need a ticket first, that's not useful.. ;)
    Using a nested class (making WalkupTicket static again) can be made to work with an explicit upcast:
    public abstract class Ticket {
        private int number; // Instance variable containing ticket number
        private int price;  // Instance variable containing ticket price
        // Creates a WalkupTicket
        // @param n is the ticket number
        public static class WalkupTicket extends Ticket {
            public WalkupTicket (int n) {
                ((Ticket)this).number = n;
                ((Ticket)this).price = 50;
    }With kind regards
    Ben
    Edited by: BenSchulz on Feb 13, 2010 12:27 PM

  • RV120W DHCP issue

    Hi,
    I have RV120W router with fw 1.0.1.3 or 1.0.2.6 (both version are affected) and few workstations with Windows 7 (32 and 64 bit). There is common gigabit switch between router and workstations. The problem is that all workstations wait for about 1 minute to get DHCP address from router (on startup and when disable-enable network interface). It seems that when router is restarted eg., workstations (which keep previously attached IP addresses - their network interfaces are still up conected to switch ...) are registered in router´s "Available LAN Hosts" list with "static" IP address mark. When you disable network interface on PC now and enable it again, you have to wait for 1 minute to get network interface up with IP address. Only when you use "ipconfig /release" and "ipconfig /renew" IP address is aquired immediately and registered as "Dynamic" within router "Available LAN Hosts" list - until you restart the router. Then devices are registered as "Static" again. This issue occurs only when there is a switch between router and Windows 7 device which keeps device´s NIC up even when router is restarting or down and/or when devices are already registered as "static" within RV120W. I made many tests with RVS4000, WRV200, ZyWALL 5 and others and mentioned case belongs only to RV120W.
    Does upcoming new firmware solve this issue?
    EDIT: FW 1.0.0.12 does not have this problem!

    Hello abudef000,
    Quick Answer: Enable UPnP on the RV120W. This also applies to the new RV180W. This can be done under Administration>Discovery.
    When a Windows 7 computer connects to the network, it attempts to use SSDP in order to discoverer available services on the network. SSDP requests are accepted by UPnP. If UPnP is disabled on the router, the Windows 7 client will continue to request its confiugration from UPnP, and continue to get no response. After some time, SSDP will give up, and the Windows 7 client will accept the DORA process from the router.
    A packet capture of a Windows 7 PC connecting to a RV120W or RV180W not running UPnP will show mutliple SSDP requests before the client finally accepts the DHCP process from the router. This accounts for the delay in the acquistion of network information. Neither Mac nor Linux clients experince this behavior.
    More information: http://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol

  • Home lan telephone

    I have been experiencing static on incoming calls; then the call drops and is never received. I tested this using my cell phone to my lan phone (from inside the house) and I received the same result. If I redial, sometimes I get the static again, and sometimes it goes through. I contacted the FIOS Technical number and they said if it is an inside problem; and someone needs to come to the house, there may be a charge.
    I did go to the outside box and called using my cell # (a number of times) and didn't get any static and was able to leave a voice message.
    Nothing has been modified inside the house and as recent as the beginning of this week; and before, I received calls/messages with no issues.
    Your comments are greatly appreciated.
    Thank you.

    I use to get alot of static on my land line telephone when I had dsl and the router/modem was wireless.  I had also read about issues with telephones and wireless routers via the internet.  One of the solutions i read was to get a digital (DECT 6.0) land line telephone.  I did get DECT 6.0 telephones around the same time I signed up and subscribed to Verizon FiOS internet and TV.  My FiOS modem/router was wireless too.  I don't have any problems with static on the lines anymore.  Not sure if the DECT 6.0 telephone solved the problem or getting FiOS solved the problem.                                                  

  • Static methods in interface (Yes, once again!)

    I know there has been many questions about why static methods in interfaces are not allowed. I know it is forbidden by the JLS. But does anyone know the exact reason for this? Is it just a design issue or are there technical difficulties with allowing it?
    I can't think of any reason that it should be impossible to allow static methods in interfaces. I don't even think it would be very difficult to do. More importantly, it could probably be done without breaking existing code and existing JVMs (not too sure about the last one).
    So once again: Was the choice of not allowing static methods in interfaces a design choice or a technical choice?

    A better example of what you are suggesting is surely ...
    interface i {
        static void one();
    class a implements i {
        static void one() {
            // do something
    class b implements i {
        static void one() {
            // do something else
    }What would be the point of ever doing this?
    You cant call i.one() as the method doesn't exist without an instance of an implementing class.
    To actually ever be able to use that method you would effectively be casting an INSTANCE of a or b -> i. If you have an instance of an a or b then there is absolutely no reason for that method to be static.
    If you wanted to implement some sort of class (ie static) behaviour then class a could call its own internal static method from within the 'one' method.
    To get right to the point ... there isn't one. If it gets added to the language (and I can't see it in my wildest dreams) then Sun have lost their marbles, surely?
    Unless someone can give a good example of when it might be correct and useful to do so? I can't even see how it would be a convenience as it is completely unusable, no?

  • HT201263 My iphone started freezing 2 days ago while taking a picture and again while using an application and then restart but the battery was never low. today it froze,restarted then showed white static looking lines and won't turn on at all. Please Hel

    My iphone started freezing 2 days ago while taking a picture and again while using an application and then restart but the battery was never low. today it froze,restarted then showed white static looking lines and won't turn on at all. Please Help

    I can't restart the iphone to reset or restore. I held the homebutton down and the homebutton + sleepbutton down at the same time. The apple doesn't even appear.
    I've also tried connecting it to the charger. It's not charging and dosn't recongize it.
    I tried connecting the phone to itunes on the computer to see if it registered and charged it but that didn't work either.

  • HT4623 I updated to 7.0 and now my ipod wont play in my car stero. I have reset, bought an itunes song and reset again but nothing is working. Pandora wont play. I can hear it on my phone when I unplug but not anything thru the stero except static. Help!

    I updated to 7.0 and now my ipod wont play in my car stero. I have reset, bought an itunes song and reset again but nothing is working. Pandora wont play. I can hear it very slightly in my speakers if I turn up the speakers but it is so faint. It plays thru its own speakers and my radio plays thru my speakers in my car so my its not my speakers.Help! Thank you!

    Hi Novagurl2369!
    I have an article for you that can provide some helpful troubleshooting steps to address your issue:
    No sound through stereo headset1
    Inspect the headset jack for debris and clean if necessary.
    Connect the headset and make sure the connector is pushed in all the way.
    Check the volume setting. Adjust the volume by pressing the volume up and down button on the left side of the iPhone.
    If you are trying to listen to music and cannot hear any audio, make sure that the music on iPhone is not paused. Try squeezing the headset microphone to resume playback. Additionally, from the Home screen you can choose iPod > Now Playing, then tap Play.
    Make sure the latest version of iTunes is installed on the computer that you are syncing the iPhone with (songs purchased from the iTunes Store using earlier versions of iTunes won't play).
    Try another Apple headset (some third-party headsets require an adapter to be used with original iPhone).
    Try a different song or video.
    Check to see if the iPhone alert sounds or other iPhone sound effects exhibit the same audio issues.
    Disconnect the headset from the iPhone and see if sound comes from the built-in speaker.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Non-static method cannot be referenced from a static context....again sry

    Hey, I know you guys have probably seen a lot of these, but its for an assignment and I need some help. The error I'm getting is: non-static method printHistory() cannot be referenced from a static context. Here are the classes effected
    public class BankAccount {
    private static int nextAccountNumber = 1000;
    //used to generate account numbers
    private String owner; //name of person who owns the account
    private int accountNumber; //a valid and unique account number;
    private double balance; //amount of money in the account
    private TransactionHistory transactions; //collection of past transactions
    private Transaction transaction;
    //constructor
    public BankAccount(String anOwnerName){
    owner = anOwnerName;
    accountNumber = nextAccountNumber++;
    balance = 0.0;
    transactions = new TransactionHistory();
    //public String getOwner() {
    public void deposit(double anAmount ){
         balance=balance+anAmount;
         transaction=new Transaction(TransactionType.DEPOSIT,accountNumber,anAmount,balance);
         transactions.add(transaction);
    //public void withdraw(double anAmount){
    //public String toString() {
    ***public void printHistory(){
         TransactionHistory.printHistory();
    AND
    public class TransactionHistory {
    final static int CAPACITY = 6; //maximum number of transactions that can be remembered
    //intentionally set low to make testing easier
    private Transaction[] transactions = new Transaction[CAPACITY];
    //array to store transaction objects
    private int size = 0;
    //the number of actual Transaction objects in the collection
    public void add(Transaction aTransaction){
         if (size>5){
         transactions[0]=transactions[1];
         transactions[1]=transactions[2];
         transactions[2]=transactions[3];
         transactions[3]=transactions[4];
         transactions[4]=transactions[5];
         transactions[5]=aTransaction;     
         transactions[size]=aTransaction;
         size=size++;
    public int size() {
         return size;
    ***public void printHistory() {
         for(int i=0;i<6;i++){
              System.out.println(transactions);
    //public void printHistory(int n){
    The project still isn't finished, so thats why some code is commented out. The line with *** infront on it are the methods directly effected, I think. Any help would be great.

    In Java, static means "something pertaining to an object class". Often, the term class is substituted for static, as in "class method" or "class variable." Non-static, on the other hand, means "something pertaining to an actual instance of an object. Similarly, the term +instance+ is often substituted for +non-static+, as in "instance method" or "instance variable."
    The error comes about because static members (methods, variables, classes, etc.) don't require an instance of the object to be accessed; they belong to the class. But a non-static member belongs to an instance -- an individual object. There's no way in a static context to know which instance's variable to use or method to call. Indeed, there may not be any instances at all! Thus, the compiler happily tells you that you can't access an instance member (non-static) from a class context (static).
    ~

  • Server Deployment Static IP again.

    Hi
    we plan to deploy our servers also via SCCM. The server are located in VLAN without DHCP, so a static address has to be applied. During the WinPE phase this isn't really a problem because a static address can be configured. This address is gone after the
    image is applied. I know I can assign a new address via "Apply Network Settings" plus defining task sequences variables but I want to reapply the same address entered during the WinPE phase.
    Is something built-in in SCCM or do I have to script it myself via netsh or whatever? Just to point out. I read already the step by step guide part 3 from Niall and I don't want to use a collection to assign variables. It's quite simple:
    1) Enter address in WinpE
    2) Save address somewhere
    3) Reapply saved address after image is applied.
    Thanks
    Joachim

    Hi guys,
    I just want to share. I don't use the MDT but build a custom HTA where you can enter ip-address etc.
    The values are storedin the OSDAdapter... variables and applied automatically.
    here's an example ;
    If you want the full HTA with script please write me a pm.
    Regards,
    Jeroen
    ipaddress = IPaddress1.value & "." & IPaddress2.value    & "." & IPaddress3.value & "." & IPaddress4.value
    gatewayaddr = gatewayaddr1.value & "." & gatewayaddr2.value    & "." & gatewayaddr3.value & "." & gatewayaddr4.value
    subnetmaskaddr = subnetmask1.value & "." & subnetmask2.value    & "." & subnetmask3.value & "." & subnetmask4.value
    dnsserveraddr1 = dnsserver1.value & "." & dnsserver2.value    & "." & dnsserver3.value & "." & dnsserver4.value
    dnsserveraddr2 = dnsserver5.value & "." & dnsserver6.value    & "." & dnsserver7.value & "." & dnsserver8.value
    dnsserveraddr3 = dnsserver9.value & "." & dnsserver10.value    & "." & dnsserver11.value & "." & dnsserver12.value
    dnsserveraddr = dnsserveraddr1 &","& dnsserveraddr2  &","& dnsserveraddr3
        Set env = CreateObject("Microsoft.SMS.TSEnvironment")
        env ("OSDAdapterCount") = 1
        env ("OSDAdapter0EnableDHCP") = false
        env ("OSDAdapter0IPAddressList") = ipaddress
        env ("OSDAdapter0Subnetmask") = subnetmaskaddr
        env ("OSDAdapter0Gateways") = Gatewayaddr
        env ("OSDAdapter0DNSServerList") = dnsserveraddr
        env ("OSDAdapter0DNSDomain") = "domain.com"
        env ("OSDAdapter0DNSRegistration") = false
        env ("OSDAdapter0TcpipNetbiosOptions") = "0"
        env ("OSDAdapter0EnableWINS") = true
        env ("OSDAdapter0WINSserverlist") = "10.32.0.3,192.168.0.1,192.168.0.2"
        env ("OSDInputlocale") = "0813:00000813"
        env ("OSDUserlocale") = "nl-BE"
        env ("OSDUILanguage") = "en-US"
        env ("OSDSystemLocale") = "en-US"
        env("OSDComputerName") = servername.value
        env ("OSDRandomAdminPassword") = False
        env ("OSDLocalAdminPassword") = adminpw1.value
        env ("OSDTimezone") = strSiteTimevar
        window.close
    End Sub

Maybe you are looking for

  • Looking for Mac network professional to setup our small business network.

    I've installed OS X Server on an iMac within our office to act as a file server and also allow us to access files using a VPN.  Probably should have purchased a Mac Mini Server and will likely go that route in the end.  I'm computer savy, but little

  • Tomcat 4.1 Bean error (Unable to compile class for JSP)

    Help, I am using Tomcat 4.1 with with JDK1.3.1_01. I have a JSP page in which I try to use a Bean, but I get the following error from Tomcat. The JSP page is very simple. I am using package names in the import statement. Code below. I've put the clas

  • Use of super keyword

    Hi all , iam new to java . plz tell me what is use of super keyword

  • BI content and LO extraction difference

    Hi , Please tell me 1) what is the main difference between BI content and LO extraction. 2) What happens when we install business content and what happens when we do LO extraction.why are we doing this extraction.? 3) Which process must be done first

  • Card Reader won't Show Up!!!

    HELP!?! All of a sudden my SanDisk Imagemate won't show up on my desktop when I insert my compact flash card. Usually it pops up on my desktop and iPhoto also opens but today.... nothing. I've even tried restarting because that usually solves the pro