How to use ConnectionManager to manage SCM connections?

One of the cool new things in 9.0.3 Preview is the way that the SCM clients use the connection manager. I want to add this feature to my Perforce addin. So far, I've defined P4ConnectionType, P4ConnectionWrapper, and P4ConnectionFactory; and added the following lines to initialize()
final ConnectionManager cm = ConnectionManager.getInstance();
cm.registerConnectionType(new P4ConnectionType());
Now what? It looks like I need to create a model Node for my Connection to be a child of oracle.ide.model.Connections, but who creates it, and how do its Attributes get set?
Even after the ConnectionDescriptor is set up, I don't understand how to tell the ConnecetionManager construct a new connection. Or am I just supposed to make a direct call to P4ConnectionFactory.createConnection()?
A little sample code would be a bug help.
Thanks.

This is probably not the answer you want to hear, but unfortunately the connection manager wasn't designed in a way that makes it flexible enough to use for SCM connections. We tried to push for it to be made more generic when we started developing SCM support for the IDE, but the feeling at the time was that the connection manager was only to be used for database connections (however, this was at some point extended to application server connections too).
Because of this historical implementation choice, most of the core extensions in the IDE which use connections (UDDI, Web Services, CVS, Oracle SCM, WebDAV) have implementations that do not use the connection manager. At the moment, there is no common publically exposed API that will allow you to do something similar easily with Perforce. It's still possible to do this using the available extension APIs, it just won't be straightforward (e.g. you'll have to implement your own connection wizard, create Elements for your connection nodes, add and remove elements under the Connections node when your SCM extension is activated and deactivated).
We're using ER 2593664 to track future enhancements to the connection manager to make it easier to use for other connection types. You can follow the progress of this ER on metalink.
Thanks,
Brian
JDev Team

Similar Messages

  • Need help on how to use conference facility within adobe connect

    I need some help on how to use conference facility within adobe connect?

    I'd recommend you start here: Getting Started with Adobe Connect - Adobe Connect User Community

  • How to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and a novice in interfacing skill ..so plzzzzz explain me in a litle detail

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Sir
    We were able to solve that problem...but now could you advice as to which DC power supply we should use (preferably avalable in India) so that it can be controlled by Labview (through a gpib/rs232/any other port) to give a square wave of desired frequency/other parameters.
    Regards
    Shivam

  • How to use labview with gpib to connect with Agilent PNA E8362B ?

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Duplicate Post.

  • How to use the iphone 5 s connect the computer?I want copy photo from computer.

    how to use the iphone 5 s connect the computer?I want copy photo from computer.Who can teach me~thank^^

    You can move a photo from the computer to the phone using any of the following:
    iTunes sync: http://support.apple.com/kb/HT4236
    Photo Stream: http://support.apple.com/kb/HT4486
    3rd party apps such as: http://www.photosync-app.com

  • How to use SM7.0 for SCM?

    Gurus:
    Is there any relationship between SM7.0 and SCM except monitoring SCM using SM7.0?
    If yes, would please give some examples how can SM7.0 work with SCM?   Thanks!

    Hi Linda,
    Please check the below blog to find the details about creating a project. Select Upgrade project as your project type.
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID0726686550DB00233069886735880120End?blog=/pub/wlg/7317
    This is not mandatory for doing any upgrade. You can always restrict the use of your solman for the creating key and maintenance optimizer function only.
    Rajeev

  • Yoga2 Pro - how to use tablet as a projector connected with TV decoder via hdmi cable?

    Hi, My TV is broken and I would like to use my tablet as projector connected via HDMI cable from TV decoder to my tablet. What should I do? How to configure and which apllication I should use?

    You will need to choose the correct (Input) on the TV for the MacBook.....say your cable box is set to HDMI !.....and your MacBook is on HDMI 2.....you will need to select HDMI 2 from the TV's menu for the signal from the MacBook to show on the TV screen.......the selection choices are examples as I do not know exactly how you have things connected......

  • How to use a Certificate authentication to connect to a ONTAP 8.3 Cluster in Posh?

    Hi All,      I've configured my Cluster Vserver to be able to authenticate via a self signed certificate. I'm able to use Perl NMSDK to connect and it works good. I want to use Powershell cmdlets for this. How can I do this? I've tried Connect-NcCluster but I don't see any option to specify a certificate there.  I'm also open to use NMSDK for Posh if someone can guide how to use it. I've tried that too but I can't get it working. Can anyone help? sinhaa    

    Hi Sinhaa - You've discovered the key difference between the Perl API bindings in the NMSDK and the PowerShell toolkit.  The NMSDK, and with the Perl bindings in particular, easily exposes the entire SDK from basic connection methods, the lowlevel XML building mechanisms, and a single function wrapper around each individual ZAPI function call that handles both the XML building from and recoveyr into convenient Perl data structures.  The entire API is accessible including higher privilege level options and commands. The PowerShell toolkit is much more a convenience wrapper around common functions for those in a Windows environment.  It doesn't expose the entire API, it doesn't expose all the parameters of the APIs that it does wrap (for instance, you can't access or use options only available in Advanced or Diagnostic mode), and security is somewhat Windows centric in that it uses a saved credential model similar to other Windows systems. As my company tends to be more Windows centric the PowerShell toolkit tends to be the default utility used for most automation, but I drop to the Perl NMSDK bindings for almost everything I do of substance because I need the abilities it provides.  I've asked through many channels for the PowerShell toolkit to at least add Advanced mode privilige options for a number of the cmdlets it provides.  Haven't yet seen any indication that those will be forthcoming. Bob    

  • Query with bind variable, how can use it in managed bean ?

    Hi
    I create query with bind variable (BindControlTextValue), this query return description of value that i set in BindControlTextValue variable, how can i use this query in managed bean? I need to set this value in String parameter in managed bean.
    Thanks

    Put the query in a VO and execute it the usual way.
    If you need to, you can write a parameterized method in VOImpl that executes the VO query with the parameter and then call that method from the UI (as a methodAction binding) either through the managed bean or via a direct button click on the page.

  • How to use simple SQL instead of Connect By Prior

    Currently, I am using "connect by prior" query in the application, but for reason I don�t want to use this connect by query so can any one please tell how does I get the same result by using SQL, I tried this by using procedure but unable to get the same result, specially LEVEL of the tree.
    So please tell, how would I get the correct data.
    Thanks in advance,
    AMIT.

    Hi,
    Whenever you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data
    (4) Your best attempt so far (formatted) I don't believe the unformated code you posted is what you're really running, since it has a syntax error ("... WHERE START WITH ..."). Please post code that really works with the sample data you posrted.
    (5) The full error message (if any), including line number
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    If you can present your problem using commonly available tables (for example, scott.emp, which contains a hierarchy), then you can omit (2).
    Formatted tabular output is okay for (3). Type these 6 characters
    {code}
    (small letters only, inside curly brackets) before and after the tabular text, to preserve spacing.
    As Alex said, why don't you want to use CONNECT BY?
    Are you getting the correct results now, but just looking for a different way of getting them?
    Depending on your exact requirements, you could write a PLSQL function that mimics LEVEL. Don't expect it to be fast.
    Nested Sets is a completely different way of modeling trees.
    Some things are much easier with Nested Sets than they are using the Adjacency Model (the parent-child model that uses CONNECT BY).
    But some things are much harder with Nested Sets, and LEVEL is one of them.

  • How to use the web server tips (connected/disconnected)?

    Using the web server tips into a VI to know when a client is connected or disconnected.
    Hello Everyone
    I want to use the tips that appear when a remote user gets control of my VI via web server. That way I will be able to trigger some other operations as soon as the user gets in or out my VI. How can I extract the information that contains that (user has or has not control). I hope you can help me.
    Regards
    Marco Roman

    There is a VI method called Remote Panel Client Connections. It returns an array of clusters with connection information and also has a Controller output. If the controller output is -1, no clients are connected.

  • How to use Port to make a connection between Import Server and Source

    Hi guys,
    I wanna make a Import Server and Manager work with a MDM Repository and a Client System. I want the Import Server could listen the port, whenever the Client System want to sent some files to the Import Server, the Server could automatically import files.
    I know how to import a file by hand, but how to make it automatical? Use Port in Type?
    Regards
    Wang Yu
    Message was edited by: Yu Wang

    Hi,
    You can automate the Import or Syndication process using Ports.
    <b>Requirements:</b>
    1. Import Server need to be Installed.
    2. Client Systems need to be defined for the repository.
    3. Create the Port with type Inbound (for Import process). OutBound (for Syndication process)
    4. Associate a predefined map with the Port.
    <b>Note:</b>
    Each port is associated with only one map.
    While creating the ports, When you select the client system, it only populates the maps defined for that client system.
    Make sure if you want to use the same client system for both import and syndication.
      Specify the Client system type as "Inbound/Outbound"
    <b>Steps involved:</b>
    Using MDM Console, In the repository Admin section
    1. Select Client Systems-> this is where you have to define the Client Systems , which you are going to use for the ports.
    Make sure you have define the Import Maps for the specific repository,specific Client System using Import Manager.
    2. Select Ports->This is where you create Port and other related information related to it.
    Once the Port is created, You see a specific directory structure created in the MDM Server installation directory
    <<MDM Server Install_Dir>> ->Distributions -> <<DBMSHOST_DBMS_TYPE>> -> <<Repository Name>> ->
    <<Port Type>> -> <<Client System ID>> ->
    <<Port Code>>
    Under the above sturcture it will have the following directories
    -> Ready
    -> Archive
    -> Status
    -> Log
    <i><b>Ready Folder :</b></i>
    -> In Import Process the import Server will pick up the file from this directory based on the specifc interval you specify in mdis.ini file(This can be found in Import Server installation directory).
    <b><i>Archive Folder:</i></b>
    -> Once the file is picked by the Import Server from Ready folder and if it is processed then the file will be moved to this di
    rectory with some date stamp suffixed.
    <b><i>Log Folder:</i></b>
    ->Log information for that process
    <b><i>Status Folder:</i></b>
    ->Status of process will be kept in this folder.
    Hope this helps.
    Thanks and Regards
    Subbu

  • How to use Profiler/XE to capture connection string properties (eg effectiveusername)

    Hi all,
    I'm trying to audit connections to a tabular cube to map usage patterns etc etc
    Problem is, any connections made via sharepoint come in using the sharepoint excel services account. The actual user that is making the connection is passed in via the EffectiveUser property on the connection string. I've not been able to find any info on
    how to add this to an extended event trace. Is it possible?
    Cheers,
    Jakub
    Jakub @ Adelaide, Australia Blog

    Hi jakubk,
    Glad to hear that the issue is resolved. Thanks for your sharing, other community members could benefit from your solution.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • How to use relative DSN filename for connection (in Design mode)

    Hello,
    I connect Crystal Reports to Oracle database via ODBC with connection information stored in DSN file.
    I use "Crystal Reports Basic" in Visual Studio 2008 SP1. CR has no SP. Windows XP Pro SP3, my development machine.
    I created a DSN file, and in Database Expert I'm creating a new ODBC connection and trying to fill the File DSN.
    But, the file name is absolute, and I need to use file name relative to the report file, because I want several programmers and several reports to share the connection parameters. This would also simplify the deployment.
    When I try to copy the DSN file to the solution folder and use just the relative path, then a error is reported:
    Logon failed.
    Details: HY000 General Error: Invalid file DSN
    which probably means that the file could not be found.
    This problem does not exist in runtime, as the connection string could be set programmaticaly.
    Does Crystal Reports accept relative DNS file name?
    If does not, are there any other possibilites to achieve this?

    If still an issue post your question the .NET SDK forum.

  • How to use both wired and wireless connection with static addresses

    Now that I have setup my home network with static addresses (router, mini1, mini2 and PC) in the way I want, (big thanks to BDAqua http://discussions.apple.com/thread.jspa?threadID=1271635&tstart=0) I would like to understand some more advanced network concepts.
    I would like to change the network so that I use both the wireless connection and the built-in ethernet connection at the same time in my Mac mini1. I would like to connect my PC to my Mac mini by using the wired ethernet connection so that I reach the Internet from my PC as well. I would also like to be in control of all the addresses therefore I want to assign the addresses manually.
    The question: What addresses should I use between mini1 and PC? Should I use the same wireless address space as I already use between the wireless router and the other computers (router: 192.168.1.1, mini1: 192.168.1.101, mini2: 192.168.1.103) or should I use something totally different like 10.X.X.X? What should I put in ethernet connection "Router"-field, the same as in Airport (192.168.1.1)? What about DNS, same as in Airport?

    If I understand this correctly, you wish your Mini to perform Internet Sharing for your PC, correct!?
    If so you'll pretty much have to let the Mini handle DHCP & NAT on the Ethernet port. You also want to be sure Airport is dragged to the top of Network>Show:>Network Port Configurations, that's what position the Mini will use 1st for Internet itself.
    On the Mini turn on both Web Sharing & Internet Sharing. The PC once connected will have the Mini's Ethernet IP as it's Gateway addy.

Maybe you are looking for