JFileChooser and remote filesystems

I want to add(among local file system) a few remote filesystems to JFileChooser ,
I implemented FileSytestemVIew(FileSystem) and File(RemoteFile) class.
At the first glance everything looks ok - i can see local folders and remote root folder(in combo box), when i choose remote root i can see remote folders and files, but when i invoke double click to enter remote folders, exception occurs.
for some reason JFileChooser sees 'ordinary' File - not my RemoteFile, and it treats it as a file (not folder) and wants to open it (approveSelection fires)
Probably i did not implemented all the methods that are used ..
Any ideas ? maybe there are some other ways to explore remote filesystems ?
package pl.edu.pw.browser;
import javax.swing.filechooser.FileSystemView;
import java.io.File;
import java.io.IOException;
import pl.edu.pw.fileserver.client.Client;
import java.util.*;
import javax.swing.Icon;
public class FileSystem extends FileSystemView {
public FileSystem(ArrayList servers) {
this.servers=servers;
public File createFileObject(File dir, String filename) {
System.out.println("createFileObject1");
if (dir instanceof RemoteFile )
return new RemoteFile(((RemoteFile)dir).getFtp(),dir.getAbsolutePath(), filename);
return super.createFileObject(dir,filename);
public boolean isDrive(File dir)
if (dir instanceof RemoteFile )
return false;
return super.isDrive(dir);
public boolean isFloppyDrive(File dir)
if (dir instanceof RemoteFile )
return false;
return super.isFloppyDrive(dir);
public boolean isComputerNode(File dir)
if (dir instanceof RemoteFile)
if(servers.contains(dir))
return true;
else
return false;
return super.isComputerNode(dir);
public File createFileObject(String path) {
return null;
public boolean isFileSystem(File f) {
System.out.println("isFileSystem");
if (f instanceof RemoteFile) {
return false;
} else
return super.isFileSystem(f);
public boolean isFileSystemRoot(File dir)
System.out.println("isFileSystemRoot");
if (dir instanceof RemoteFile)
if(servers.contains(dir))
return true;
else
return false;
return super.isFileSystemRoot(dir);
public boolean isRoot(File f) {
System.out.println("isRoot");
if (f instanceof RemoteFile )
if(servers.contains(f))
return true;
else
return false;
return super.isRoot(f);
public String getSystemTypeDescription(File f)
if (f instanceof RemoteFile)
return f.getName();
return super.getSystemTypeDescription(f);
public Icon getSystemIcon(File f)
return super.getSystemIcon(f);
public boolean isParent(File folder,
File file)
if (folder instanceof RemoteFile && file instanceof RemoteFile )
System.out.println("isParent("+folder.getAbsolutePath()+")("+file.getAbsolutePath()+")");
if(file.getParent().equals(folder.getAbsolutePath()))
System.out.println("is");
return true;
else
return false;
return super.isParent(folder,file);
public File getChild(File parent,
String fileName)
System.out.println("getChild");
if (parent instanceof RemoteFile )
return new RemoteFile(((RemoteFile)parent).getFtp(),parent.getAbsolutePath(),fileName);
return super.getChild(parent,fileName);
public File createNewFolder(File containingDir)
throws IOException {
System.out.println("createNewFolder");
if (containingDir instanceof RemoteFile )
return null;
return new File(containingDir,"/nowyFolder");
public String getSystemDisplayName(File f)
if (f instanceof RemoteFile )
return f.getName();
else
return super.getSystemDisplayName(f);
public File[] getRoots()
System.out.println("getRoots");
File[] files = super.getRoots();
File[] fileAll = new File[files.length+1];
int i=0;
for(i=0;i<files.length;i++)
fileAll=files[i];
fileAll[i]=createFileSystemRoot((RemoteFile)servers.get(0));
return fileAll;
public boolean isHiddenFile(File f) {
return f.isHidden();
public File getParentDirectory(File dir) {
System.out.println("getParentDirectory");
if (dir instanceof RemoteFile)
String p = dir.getParent();
if(p!=null)
return new RemoteFile(((RemoteFile)dir).getFtp(),p);
else
return null;
else
return super.getParentDirectory(dir);
protected File createFileSystemRoot(File f)
System.out.println("createFileSystemRoot");
if (f instanceof RemoteFile)
return new FileSystemRoot( (RemoteFile) f);
else
return super.createFileSystemRoot(f);
static class FileSystemRoot extends RemoteFile {
public FileSystemRoot(RemoteFile f) {
super(f.getFtp(),f.getAbsolutePath());
public File[] getFiles(File dir, boolean useFileHiding) {
if (dir instanceof RemoteFile)
RemoteFile[] files = (RemoteFile[])( (RemoteFile) dir).listFiles();
return files;
else
return dir.listFiles();
public File getHomeDirectory() {
return super.getHomeDirectory();
ArrayList servers = null;
package pl.edu.pw.browser;
import java.io.File;
import java.io.FilenameFilter;
import java.io.FileFilter;
import pl.edu.pw.fileserver.client.Client;
import java.util.*;
import java.text.*;
import pl.edu.pw.fileserver.Constants;
public class RemoteFile extends File {
final static char PATHDELIMS = '/';
public final static String absoluteStart = "//";
public RemoteFile(Client ftp, String parent) {
super(parent);
this.ftp = ftp;
path = parent;
public RemoteFile(Client ftp, String parent, String name) {
this(ftp, parent);
if (path.length()>0 && path.charAt(path.length()-1) == PATHDELIMS)
path += name;
else
path += PATHDELIMS + name;
public boolean equals(Object obj) {
if (!checked)
exists();
return path.equals(obj.toString());
public boolean isDirectory() {
if (!checked)
exists();
return isdirectory;
public boolean isFile() {
if (!checked)
exists();
return isfile;
public boolean isAbsolute() {
if (!checked)
exists();
return path.length() > 0 && path.startsWith(this.absoluteStart);
public boolean isHidden() {
if (!checked)
exists();
return ishidden;
public long lastModified() {
return modified;
public long length() {
return length;
public String[] list() {
return list(null);
public String[] list(FilenameFilter filter) {
System.out.println("list");
String[] result = null;
try{
ArrayList names = (ArrayList)ftp.dir(this.getAbsolutePath());
ArrayList files = new ArrayList();
for(int i=0;i<names.size();i++)
RemoteFile rf = new RemoteFile(ftp,(String)names.get(i));
if (filter == null || filter.accept(this,rf.getName()))
files.add(rf.getName());
result = new String[files.size()];
files.toArray(result);
catch(Exception ex)
ex.printStackTrace();
return result;
public File[] listFiles() {
FileFilter filter = null;
return listFiles(filter);
public File[] listFiles(FileFilter filter) {
System.out.println("listFiles");
RemoteFile[] result = null;
try{
ArrayList names = (ArrayList)ftp.dir(this.getAbsolutePath());
ArrayList files = new ArrayList();
for(int i=0;i<names.size();i++)
RemoteFile rf = new RemoteFile(ftp,(String)names.get(i));
rf.exists();
if (filter == null || filter.accept(rf))
files.add(rf);
result = new RemoteFile[files.size()];
System.out.println("listFiles.size="+files.size());
files.toArray(result);
catch(Exception ex)
ex.printStackTrace();
return result;
public String getPath() {
return path;
public String getCanonicalPath() {
return getAbsolutePath();
public String getAbsolutePath() {
if (!isAbsolute()) {
return ftp.pwd();
return path;
public String getName() {
String result=path;
if(result.charAt(result.length()-1) == this.PATHDELIMS)
result = result.substring(0,result.length()-1);
int i = result.lastIndexOf(this.PATHDELIMS);
if(i!=-1)
result = result.substring(i+1);
return result;
public String getParent() {
String result=path;
if(result.charAt(result.length()-1) == this.PATHDELIMS)
result = result.substring(0,result.length()-1);
int i = result.lastIndexOf(this.PATHDELIMS);
if(i<3)
return null;
result = result.substring(0,i);
return result;
public boolean exists() {
boolean ok = false;
try {
String r = ftp.exists(path);
if(r != null)
System.out.println("('"+path+"')header:"+r);
ok = true;
StringTokenizer st = new StringTokenizer(r,Constants.HEADER_SEPARATOR);
String answer = st.nextToken();
if(answer.equals(Constants.TRUE))
isfile=true;
isdirectory=false;
answer = st.nextToken();
if(answer.equals(Constants.TRUE))
canread = true;
answer = st.nextToken();
if(answer.equals(Constants.TRUE))
canwrite = true;
answer = st.nextToken();
if(answer.equals(Constants.TRUE))
ishidden = true;
answer = st.nextToken();
length = Long.parseLong(answer);
if(isfile)
answer = st.nextToken();
modified = Long.parseLong(answer);
checked = true;
catch (Exception ex) {
ex.printStackTrace();
return ok;
public boolean canRead() {
return canread;
public boolean canWrite() {
return canwrite;
public int hashCode() {
return path.hashCode() ^ 098123;
public boolean mkdir() {
return false;
public boolean renameTo(File dest) {
return false;
public Client getFtp() {
return ftp;
private Client ftp;
private boolean checked = false;
private boolean isdirectory = true;
private boolean isfile = false;
private boolean ishidden = false;
private boolean canread = false;
private boolean canwrite = false;
private String path;
private long length = 0;
private long modified =0;
java.lang.NullPointerException
     at pl.edu.pw.browser.Browser.openLocalFile(Browser.java:136)
     at pl.edu.pw.browser.component.FileChooser.approveSelection(FileChooser.java:31)
     at javax.swing.plaf.basic.BasicFileChooserUI$DoubleClickListener.mouseClicked(BasicFileChooserUI.java:412)
     at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:208)
     at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:207)
     at java.awt.Component.processMouseEvent(Component.java:5137)
     at java.awt.Component.processEvent(Component.java:4931)
     at java.awt.Container.processEvent(Container.java:1566)
     at java.awt.Component.dispatchEventImpl(Component.java:3639)
     at java.awt.Container.dispatchEventImpl(Container.java:1623)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3174)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
     at java.awt.Container.dispatchEventImpl(Container.java:1609)
     at java.awt.Window.dispatchEventImpl(Window.java:1590)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

i solve the problem .
I did not overwrite File.getConicalFile() , this method is invoked at javax.swing.plaf.basic.BasicFileChooserUI$DoubleClickListener.mouseClicked(BasicFileChooserUI.java:412)
that is why i recived a new object type File when I was waiting for RemoteFile

Similar Messages

  • I want to know about the role of AS application binaries, remote filesystems, and local filesystems in building a development environment on the iplanet application server.

     

    I think you need to be more specific in your question.
    The typical development environment involves the developer having his own copy of the application server binaries, executing code off of the local filesystem, and developing on the local filesystem. (Using some version control system to sync his code with the team code.) The most common reason for this is that most people are using Windows as a development platform.
    That said, it doesn't have to be that way. There is nothing preventing you from using a remote filesystem for the app server binaries. (Or even running your development server remotely.)
    What exactly are you trying to accomplish?

  • Mouting remote filesystem with "union" is broken

    When mounting remote filesystems (afp and smb from a NAS server) in union mode is really broken in Yosemite.
    "local" files are visible from a terminal shell with "ls". But they do not show in Finder. Weird.
    Also, I have my iTunes Media folder on the NAS. If the filesystem is mounting in union mode, iTunes simply can't use it. It enters a loop traversing the mount point and stops responding. Removing union from the mount options makes iTunes happy, so the issue is indeed with union.
    Anyone seeing that too? It worked fine since 10.8 (at least).

    I was having the same problem. My VI runs fine locally, but when I take the control remotely, I get this message "The connection with the server is broken" after a while (sometimes a few seconds, sometimes say 1 minute). I tried to make the delays of the loops higher, but it does not seem to help. Once the VI reported a fatal internal error in "image.cpp" line 12313, but I don't know if it has something to do with it.  Any suggestions or hints?
    Thanks,
    Marijn

  • Remote System and Remote Key Mapping at a glance

    Hi,
    I want to discuss the concept of Remote System and Remote Key Mapping.
    Remote System is a logical system which is defined in MDM Console for a MDM Repository.
    We can define key mapping enabled at each table level.
    The key mapping is used to distinguish records at Data Manager after running the Data Import.
    Now 1 record can have 1 remote system with two different keys but two different records cannot have same remote system with same remote key. So, Remote key is an unique identifier for record for any remote system for each individual records.
    Now whenever we import data from a Remote System, the remote system and remote key are mapped for each individual records. Usually all records have different remote keys.
    Now, when syndicating back the record with default remote key is updated in the remote system that is sent by xml file format.
    If same record is updated two times from a same remote system, the remote key will be different and the record which is latest contains highest remote key.
    Now, I have to look at Data Syndication and Remote key.
    I have not done Data Syndication but my concept tell if there is duplicate record with same remote system but different remote keys both will be syndicated back. But if same record have two remote keys for same remote system then only the default remote key is syndicated back.
    Regards
    Kaushik Banerjee

    You are right Kaushik,
    I have not done Data Syndication but my concept tell if there is duplicate record with same remote system but different remote keys both will be syndicated back.
    Yes, but if they are duplicate, they needs to be merged.
    But if same record have two remote keys for same remote system then only the default remote key is syndicated back.
    This is after merging. So whichever remote key has tick mark in key mapping option(default) , it will be syndicated back.
    Pls refer to these links for better understanding.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/80eb6ea5-2a2f-2b10-f68e-bf735a45705f
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/7051c376-f939-2b10-7da1-c4f8f9eecc8c%0c
    Hope this helps,
    + An

  • Search for [Remote Key] and [Remote System] in Data Manager

    Hello all
    I would like to be able to search on the remote key and the remote system in the MDM Data Manager is that not possible? I thought I remembered seeing that possibility under the Free-Form Search but now I can't find it.
    I have, however, found this in the Data Manager reference guide:
    REMOTE SYSTEM AND REMOTE KEY FIELDS
    MDM uses the remote systems defined in the Remote Systems table
    within the MDM Console to store and maintain key mapping information
    for each record or text attribute. It does this using a virtual “key
    mapping” field that you never see in the MDM Client.
    This virtual key mapping field is very much like a qualified lookup field
    into a virtual key mapping qualified lookup table.
    Key Mapping information stored in virtual lookup field
    The Remote System and Remote Key fields are normally not visible;
    however, they do appear in several places in the MDM Client.
    Specifically, both fields: (1) appear in the File > Export dialogs in Record
    mode for exporting value pairs; (2) are recognized by the File > Import
    dialog in Record mode for importing value pairs; and (3) appear in the
    Edit Key Mappings dialogs in both Record mode and Taxonomy mode,
    for viewing and editing value pairs.
    Is there any way to search on the value in the remote key from the Data Manager?

    Not sure search i think not possible.
    But you can see keys as mentioned:
    Enable Key mapping in Console.
    MDM Client maens MDM Data Manager.
    They do appear in several places in the MDM Client or Data Manager. Three different methods to see in DM are given already below:
    Specifically, both fields: (1) appear in the File > Export dialogs in Record mode for exporting value pairs; (2) are recognized by the File > Import dialog in Record mode for importing value pairs; and (3) appear in the Edit Key Mappings dialogs in both Record mode and Taxonomy mode, for viewing and editing value pairs.
    BR,
    Alok

  • Remote Control and Remote View Problem

    Hi,
    I work at a High School running Netware 6.0 SP5 and Zen works 4.01 ir7.
    Remote Control and Remote View works great but I noticed one problem.
    We have a logo of the school that is forced down on to the desktop when a
    user logs in through group policies. This logo works perfect for the
    desktop wall paper and loads every time a user logs in.
    When I Remote Control or Remote View a computer the users desktop wall
    paper turns from the logo being forced down through group policies to the
    desktop to a blue desktop wall paper.
    I would prefer the desktop wall paper staying the schools logo when I
    Remote Control or Remote View because if the desktop wall paper changes to
    the blue color I mentioned above when I Remote Control or Remote View the
    users computer, they will know that someone is taking over their computer
    which sometimes we dont want them knowing.
    We have Windows 98SE computer running Novell Client 3.4 and we have some
    computers running Windows XP Professional SP1 and Windows XP Professional
    SP2 both running Novell Client 4.91 SP2.
    The Remote Control and Remote View problem of the desktop wall paper
    changing on the users computer occurs on all operating systems mentioned
    above.
    Is there a solution to my above problem? When Remote Controlling and
    Remote Viewing someone's computer I don't want the desktop wall paper to
    change.
    Thanks!

    Bpilon,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Unplugging all network devices from Fios router prevents DVR freezing and remote control lock ups.

    All,
    I recently had a Verizon tech visit my house due to constant DVR and remote control freezing. TV content was freezing whether it was locally recorded, pulled from another DVR in the house, or On Demand. On a hunch after the tech tested everything and was about to leave, he unplugged my gigabit switch from the Fios router. Lo and behold everything started running perfectly. Since to the tech, the problem was solved, he closed the case and was on his way. The probem is of course I have more devices than the built in router switch provides ports for. My network is compised of an 8 port Netgear gigabit switch downstream from the Fios router with two wireless access points (with their own built in gigbait switches) connecting to the Netgear gigabit switch. There are no loops in the switch topology. I've tried changing out the router, the gigabit switch, removing the wireless acces points individually as well as plugging the access points directly into the Fios router switch (one at a time with no Netgear switch in the middle) and all scenarious cause the DVR/remote control freeezing to come back. The only devices I can plug into the Fios router without causing freezes are PC's....anything with it's own switch essentially brings the network to it's knees. If anyone has an idea how to get my network back in one piece AND make the DVR's/remotes behave, I'd greatly appreciate the help!
    My Fios equipment:
    MI-424WR GEN-3I  rev I (eye) running firmware 40.19.36
    5 Motorola HD-DVRs all QIP 7232-2 running software release 1.9.1 platform build 25.39 (Oct. 22, 2012)
    Specific config:
    75/35 Fios connecting via ethernet from ONT. Set-top boxes connect to Fios router coax port via powered splitter.
    *All SNR/dB mesasurements taken by the tech from the set-top boxes and router are well within spec.
    Fios router provides DHCP addressing. Wireless N access points are configured for roaming with the same SSID and non-overlapping channels. Access points are not providing routing or IP adressing...all layer 3 and up services still provided by Fios router
    Diagram:
    ONT
      |
    Fios Router ---------Cable Splitter---------Set Top Boxes
      |
    Netgear Switch
      |           |
    WAP1    WAP2

    WayfarerII wrote:
    ... DVR ... remote ... freezing ... TV ... whether ... locally recorded, pulled from another DVR ... 
    ... tech ... unplugged my gigabit switch from the Fios router ... and ... everything started running perfectly ...   
    ... config:
    75/35 Fios ... via ethernet from ONT ... Set-top boxes connect to Fios router via powered splitter ...
    ONT
      |
      | cat5
      |
    Fios Router ---------Cable Splitter---------Set Top Boxes
      |
    Netgear Switch
      |           |
    WAP1    WAP2
    I am inclined to echo several of the "tns" comments, particularly with respect to your splitter.  My layout is based on a standard 8-port splitter of the type usually supplied in a VZ install.  In addition I do have a ChannelPlus device that functions as a powered splitter, but its use is limited to distribution of secondary TV signals to older analog TVs.  My first point then is that this may be an offender as "tns" has suggested.
    In addition, I'd describe your wiring as "non-standard" (red-colored items in the above diagram)  As you're no doubt aware, with 75/35 you don't really need Cat5e from the ONT (your original diagram).  It seems the highest tiers do require it, but in "standard" installations this run is coax directly to an 8-port non-powered splitter (below diagram), then from that splitter via coax to all STBs and CableCards, other TVs, et.), and also to the Actiontec.   Subsequent feeds from the Actiontec to wired devices (including WAPs) are via Ethernet (typically Cat 5e).
    In fact I don't immediately see how your STBs get additional services such as On Demand and IMG with the wiring shown in your diagram (perhaps someone can help me out here).  In "standard" installs the Actiontec must be connected via coax to the ONT to provide such services to other network clients.  I don't see that requirement being met here.
    For starters I'd recommend that you change your service from WAN Ethernet to WAN coax.  This can easily be accomplished over the telephone.  Then I'd run coax directly from the ONT to the Actiontec as in my revised diagram below (blue-colored items).  If your setup can manage with this arrangement, I think it will help greatly with the "freezing" issue.
    ONT - - - - - - coax - - - - -
                                             |
    Fios Router --- coax--- Standard 8-Port Splitter --- coax --- Set Top Boxes
    |cat5
    Netgear Switch
    |cat5           |cat5
    WAP1 WAP2
    Subsequent Note:  You provided additional info while I was composing a response, and I'd  like to offer another comment.  Structured wiring "panels" of the type usually available are pre-configured to provide data, phone and video.  This usually means that one is in certain respects limited by the ideas of the panel designer.  I have what can be called a structured wiring layout, but it really is composed of individual small custom networks for  each service (automation, security, video, data, telco, etc.), configured so that all wiring terminates in "home run" fashion at a central panel (a few details here: http://forums.verizon.com/t5/Home-Networking/Cmon-Show-Us-Your-Network/m-p/481733#M765 ).  This layout makes it easier to make adjustments (and there have been quite a few over the intervening years).  I'm thinking that in your case you may have to abandon the powered splitter (presumably) built into the panel in order to avoid your present fix.
    Subsequent Subsequent Note:   From your description it seems that you are using more than a single "whole house" DVR to supply programming to other devices.  This is a bit puzzling to me because somewhere along the line I recall reading that only a single whole house DVR was allowed on the network.  Can you elaborate a bit?

  • Hp laserjet pro m1217nfw and remote desktop printing

    hp laserjet pro m1217nfw and remote desktop printing, is there any issues with said function?

    whats the problerm you are having??

  • Cannot login to Cisco Jabber 10.5.1 over Mobile and Remote Access

    Hi,
    We have deployed sucessfully VCS Expressway-C and VCS Expressway-E with only 1 zone which is "Unified Communication Traversal" and is for Mobile and Remote Access only. VCS-C and VCS-E are communicating and in statuses everything is active and working. Also VCS-C can communicate with CUCM and CUP (both version 10.5).
    Problem is when I deploy Cisco Jabber 10.5.1 on computer outside of LAN and without VPN it start communicating with VCS-E, ask me for accepting certificate (we have certificate only intenally generated on Windows CA) and after that it is trying to connect and after few seconds it will tell me that it can't communicate with server.
    Did any of you had same problem or can you advice how to troubleshoot? In Jabber logs there is only something like "Cannot authenticate" error message, but when I startup VPN I can authenticate without any problems.
    Thanks

    On Expressway-C are your HTTP Allow Lists setup properly?  By default, and auto discovered CUCM and IMP should be listed via IP and Hostname, but if not, you'll need to insert manually.
    Also, you can look at the config file your Expressway-E would be handing out to Jabber via this method.
    From the internet, browse to:
    https://vcse.yourdomain.com:8443/Y29sbGFiLmNvbQ/get_edge_config?service_name=_cisco-uds&service_name=_cuplogin
    Where:
    vcse is your Expressway-E hostname (or CNAME/A record)
    yourdomain.com is your own domain
    The first directory is your Base64 encoded domain name, remove and trailing equal signs (=)
    The XML returned is basically the DNS SRV record information available as if internal for _cisco-uds and _cuplogin
    TFTP DNS SRV is optional if you configured TFTP in IMP for your Legacy Clients.

  • Vpn site to site and remote access , access lists

    Hi all, we run remote access and site to site vpn on my asa, my question is Can I create an access list for the site to site tunnel, but still leave the remote access vpn to bypass the access list via the sysopt command, or if I turn this off will it affect both site to site and remote access vpn ?

    If you turn off sysopt conn permit-vpn it will apply to both your site to site and remote access vpn...all ipsec traffic. You would have to use a vpn-filter for the site to site tunnel if you wanted to leave the sysopt in there.

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • One WLC for Headquarter and Remote Site

    Hi
    I have a question about the WLC remote deployment.
    We have the following design at the moment:
    Headquarter
    - Network 192.168.49.0 /24
    - WLC 4402 Version 4.2.61.0
    -- 3 x LAP1252
    -- Layer 3 LWAPP
    -- SSID wep
    -- SSID wpa
    - Windows PDC with Active Directory, DHCP Server and local Data Storage
    - ACS Version 3.2 for TACACS and RADIUS authentication --> External DB to Active Directory
    Remote Site
    - Network 192.168.50.0 /24
    - 2 x LAP1252
    -- SSID wep
    -- SSID wpa
    - Windows PDC with Active Directory, DHCP Server and local Data Storage
    - ACS Version 3.2 for TACACS and RADIUS authentication --> External DB to Active Directory
    Connection between Headquarter and Remote Site
    - 2 Mbit ADSL
    The problem is, that the wireless clients on the remote site get an ip address out of the headquarter DHCP Range 192.168.49.0 /24. The users on the remote site
    most of the time only use the local data server in the remote office. With the actual design the hole traffic is switched over the 2 Mbit ADSL connection the the
    WLC in the headquarter and back to the remote site. That works but it is not that performant.
    The problem could be solved with HREAP, but what I think is, that it is not possible to have the same SSID at headquarter and remote site with different VLANs.
    How can I achieve, that the clients on the remote site connect to the same SSID (wep or wpa), get an ip address from the remote site DHCP server (192.168.50.0)
    and the traffic is switched localy.
    I hope you understand what the problem is.
    Thanks in advance for your help!

    Yes, putting the remote AP's in HREAP mode will allow the same WLANs to be available on the AP's but the traffic would be locally switched at the AP instead of being tunneled back to the controller. After you put the AP in HREAP mode you then would configure which VLAN you want traffic for each WLAN to be dumped onto for that AP.

  • Screen sharing and remote management no longer working after some uptime

    Server is withoiut monitor.
    Users need to login via screen sharing from time to time.
    "Enable screen sharing and remote management" is ticked in Server.app everything is working fine (for days, weeks).
    ARD reports "Screen Sharing Available", so remote management is not running how it should.
    Screen Sharing.app is "Connecting…" forever.
    Kickstarting ARD (http://support.apple.com/kb/HT2370) does not help.
    Restart fixes it.
    Is there a workaround (over ssh) or a fix?

    seduc wrote:
    Do you know if
    fdesetup authrestart
    works then too?
    Off-hand, no.   I don't.  See this posting, or as would be typical in any case, try it?

  • Screen Sharing and Remote Login suddenly stopped working

    I have had Screen Sharing and Remote Login turned on on my iMac for several weeks and they have been working fine up until now. I have been accessing the computer via VNC programs and command-line ssh logins from other computers on the same local network. When I tried to connect today, i was given the following error message.
    ssh: connect to host xxx.xxx.xxx.xxx port 22: No route to host
    I have all of the required settings turned on in System preferences and there are no firewalls or router settings blocking it. I connected the two computers together via ethernet cable and the error message still occurred.
    I can ssh from the machine to 127.0.0.1, so the ssh server is running. I can ssh to other locations from the laptop i am attempting to connect with, so that's not the problem either. I just spent an hour on the phone with the apple tech support line and they couldn't figure anything out either. Can anybody figure something out?

    have you tried the obvious - restarting the computers involved and the router?

  • Screen Sharing and Remote Management

    Is there a way in 10.6 to make both Screen Sharing and Remote Management run at the same time?
    In the past (10.5), you could convince Mac OS to run both Screen Sharing and Remote Management to run simultaneously. I say "convince" because you could not enable them both through System Preferences. You could turn one on, then use Terminal to enable the other. This worked great for me, because I needed remote management for the machines I managed, and the users need screen sharing to work from home.
    However, the work-around for 10.5 no longer seems to work for 10.6. Has any one gotten this to work yet for 10.6? Thanks!

    I figured this out. First enable Remote Management via System Preferences. Then create /private/etc/ScreenSharing.launchd with 'enabled' as it's contents.

Maybe you are looking for