Re: [Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-14 Thread Susankha Nirmala
After setting *RegistryType* to *ATOM*, the problem was fixed.
Thanks a lot Chandana and SameeraK.

/Susankha.

On Wed, Jan 14, 2015 at 11:43 AM, Susankha Nirmala 
wrote:

> After Debug I can see registry URL, username and password set as
> expected. But the problem is when accessing
>
> * System.getProperty("carbon.home")*  and
>
> * 
> ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
>
> Within *newRegistry *in *ClientUtils.java *class, both return NULL.
>
>
>
> On Wed, Jan 14, 2015 at 11:04 AM, Chandana Napagoda 
> wrote:
>
>> Hi Susankha,
>>
>> If you have registry URL, username and password, you can access the
>> registry using RemoteRegistry. You can refer this sample[1] as well.
>>
>> [1].
>> https://docs.wso2.com/display/Governance452/Exporting+and+Importing+a+File+to+Remote+Registry
>>
>> Regards,
>> Chandana
>>
>> On Wed, Jan 14, 2015 at 10:49 AM, Pulasthi Supun 
>> wrote:
>>
>>> [Adding Sameerak]
>>>
>>> On Wed, Jan 14, 2015 at 10:47 AM, Susankha Nirmala 
>>> wrote:
>>>
 Adding Azeez

 On Wed, Jan 14, 2015 at 10:34 AM, Susankha Nirmala 
 wrote:

> Hi All,
>
> We are using checkin-client jar with DevStudio to commit changes to
> the registry. But within checkin-client,. it is used "carbon.home" 
> property
> and "Axis2Config.clientAxis2XmlLocation" property like below.
>
> ClientUtils.java
> 
>
>  ConfigurationContext context =
> ConfigurationContextFactory
>
> .createConfigurationContextFromFileSystem(
>*
> System.getProperty("carbon.home")* +
> File.separator
> + "repository" +
> File.separator
> +
> "deployment" +
> File.separator + "client",
>
> *ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
> );
>
> But within devStudio context, we can't access "carbon.home" property
> and "Axis2Config.clientAxis2XmlLocation" property( both properties are
> return null within devStudio context).
> Is there a way to set those properties within devStudio context?
>
>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146t
>



 --
 Susankha Nirmala
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 Mobile : +94 77 593 2146

>>>
>>>
>>>
>>> --
>>> --
>>> Pulasthi Supun
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: pulas...@wso2.com
>>> Mobile: +94 (71) 9258281
>>> Blog : http://pulasthisupun.blogspot.com/
>>> Git hub profile: https://github.com/pulasthi
>>>
>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com *
>>
>>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146
>



-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-13 Thread Susankha Nirmala
After Debug I can see registry URL, username and password set as expected.
But the problem is when accessing

* System.getProperty("carbon.home")*  and
* 
ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*

Within *newRegistry *in *ClientUtils.java *class, both return NULL.



On Wed, Jan 14, 2015 at 11:04 AM, Chandana Napagoda 
wrote:

> Hi Susankha,
>
> If you have registry URL, username and password, you can access the
> registry using RemoteRegistry. You can refer this sample[1] as well.
>
> [1].
> https://docs.wso2.com/display/Governance452/Exporting+and+Importing+a+File+to+Remote+Registry
>
> Regards,
> Chandana
>
> On Wed, Jan 14, 2015 at 10:49 AM, Pulasthi Supun 
> wrote:
>
>> [Adding Sameerak]
>>
>> On Wed, Jan 14, 2015 at 10:47 AM, Susankha Nirmala 
>> wrote:
>>
>>> Adding Azeez
>>>
>>> On Wed, Jan 14, 2015 at 10:34 AM, Susankha Nirmala 
>>> wrote:
>>>
 Hi All,

 We are using checkin-client jar with DevStudio to commit changes to the
 registry. But within checkin-client,. it is used "carbon.home" property
 and "Axis2Config.clientAxis2XmlLocation" property like below.

 ClientUtils.java
 

  ConfigurationContext context =
 ConfigurationContextFactory

 .createConfigurationContextFromFileSystem(
*
 System.getProperty("carbon.home")* +
 File.separator
 + "repository" +
 File.separator +
 "deployment" +
 File.separator + "client",

 *ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
 );

 But within devStudio context, we can't access "carbon.home" property
 and "Axis2Config.clientAxis2XmlLocation" property( both properties are
 return null within devStudio context).
 Is there a way to set those properties within devStudio context?




 --
 Susankha Nirmala
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 Mobile : +94 77 593 2146t

>>>
>>>
>>>
>>> --
>>> Susankha Nirmala
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile : +94 77 593 2146
>>>
>>
>>
>>
>> --
>> --
>> Pulasthi Supun
>> Software Engineer; WSO2 Inc.; http://wso2.com,
>> Email: pulas...@wso2.com
>> Mobile: +94 (71) 9258281
>> Blog : http://pulasthisupun.blogspot.com/
>> Git hub profile: https://github.com/pulasthi
>>
>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :http://cnapagoda.blogspot.com *
>
>


-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-13 Thread Chandana Napagoda
Hi Susankha,

If you have registry URL, username and password, you can access the
registry using RemoteRegistry. You can refer this sample[1] as well.

[1].
https://docs.wso2.com/display/Governance452/Exporting+and+Importing+a+File+to+Remote+Registry

Regards,
Chandana

On Wed, Jan 14, 2015 at 10:49 AM, Pulasthi Supun  wrote:

> [Adding Sameerak]
>
> On Wed, Jan 14, 2015 at 10:47 AM, Susankha Nirmala 
> wrote:
>
>> Adding Azeez
>>
>> On Wed, Jan 14, 2015 at 10:34 AM, Susankha Nirmala 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are using checkin-client jar with DevStudio to commit changes to the
>>> registry. But within checkin-client,. it is used "carbon.home" property
>>> and "Axis2Config.clientAxis2XmlLocation" property like below.
>>>
>>> ClientUtils.java
>>> 
>>>
>>>  ConfigurationContext context =
>>> ConfigurationContextFactory
>>>
>>> .createConfigurationContextFromFileSystem(
>>>*
>>> System.getProperty("carbon.home")* +
>>> File.separator +
>>> "repository" +
>>> File.separator +
>>> "deployment" +
>>> File.separator + "client",
>>>
>>> *ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
>>> );
>>>
>>> But within devStudio context, we can't access "carbon.home" property and
>>> "Axis2Config.clientAxis2XmlLocation" property( both properties are return
>>> null within devStudio context).
>>> Is there a way to set those properties within devStudio context?
>>>
>>>
>>>
>>>
>>> --
>>> Susankha Nirmala
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile : +94 77 593 2146t
>>>
>>
>>
>>
>> --
>> Susankha Nirmala
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> Mobile : +94 77 593 2146
>>
>
>
>
> --
> --
> Pulasthi Supun
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: pulas...@wso2.com
> Mobile: +94 (71) 9258281
> Blog : http://pulasthisupun.blogspot.com/
> Git hub profile: https://github.com/pulasthi
>



-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com **Mobile : +94718169299*

*Blog  :http://cnapagoda.blogspot.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-13 Thread Pulasthi Supun
[Adding Sameerak]

On Wed, Jan 14, 2015 at 10:47 AM, Susankha Nirmala 
wrote:

> Adding Azeez
>
> On Wed, Jan 14, 2015 at 10:34 AM, Susankha Nirmala 
> wrote:
>
>> Hi All,
>>
>> We are using checkin-client jar with DevStudio to commit changes to the
>> registry. But within checkin-client,. it is used "carbon.home" property
>> and "Axis2Config.clientAxis2XmlLocation" property like below.
>>
>> ClientUtils.java
>> 
>>
>>  ConfigurationContext context =
>> ConfigurationContextFactory
>>
>> .createConfigurationContextFromFileSystem(
>>*
>> System.getProperty("carbon.home")* +
>> File.separator +
>> "repository" +
>> File.separator +
>> "deployment" +
>> File.separator + "client",
>>
>> *ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
>> );
>>
>> But within devStudio context, we can't access "carbon.home" property and
>> "Axis2Config.clientAxis2XmlLocation" property( both properties are return
>> null within devStudio context).
>> Is there a way to set those properties within devStudio context?
>>
>>
>>
>>
>> --
>> Susankha Nirmala
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> Mobile : +94 77 593 2146t
>>
>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146
>



-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-13 Thread Susankha Nirmala
Adding Azeez

On Wed, Jan 14, 2015 at 10:34 AM, Susankha Nirmala 
wrote:

> Hi All,
>
> We are using checkin-client jar with DevStudio to commit changes to the
> registry. But within checkin-client,. it is used "carbon.home" property
> and "Axis2Config.clientAxis2XmlLocation" property like below.
>
> ClientUtils.java
> 
>
>  ConfigurationContext context =
> ConfigurationContextFactory
>
> .createConfigurationContextFromFileSystem(
>*
> System.getProperty("carbon.home")* +
> File.separator +
> "repository" +
> File.separator +
> "deployment" +
> File.separator + "client",
>
> *ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
> );
>
> But within devStudio context, we can't access "carbon.home" property and
> "Axis2Config.clientAxis2XmlLocation" property( both properties are return
> null within devStudio context).
> Is there a way to set those properties within devStudio context?
>
>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146t
>



-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-13 Thread Susankha Nirmala
Hi All,

We are using checkin-client jar with DevStudio to commit changes to the
registry. But within checkin-client,. it is used "carbon.home" property
and "Axis2Config.clientAxis2XmlLocation" property like below.

ClientUtils.java


 ConfigurationContext context =
ConfigurationContextFactory

.createConfigurationContextFromFileSystem(
   *
System.getProperty("carbon.home")* +
File.separator +
"repository" +
File.separator +
"deployment" +
File.separator + "client",

*ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
);

But within devStudio context, we can't access "carbon.home" property and
"Axis2Config.clientAxis2XmlLocation" property( both properties are return
null within devStudio context).
Is there a way to set those properties within devStudio context?




-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146t
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev