Re: [Dev] Related to Configuring WSO2 ESB JMS transport

2016-01-30 Thread Vanjikumaran Sivajothy
What is the error that you see?
Did you check any of the use-cases mentioned[1] in the document for your
reference?


[1] https://docs.wso2.com/display/ESB490/JMS+Usecases

On Fri, Jan 29, 2016 at 11:48 PM, Indrajith Udayakumara  wrote:

> Hi I am following the esb 4.9 documentation.
> https://docs.wso2.com/display/ESB490/Configure+with+IBM+WebSphere+MQ
> Here, they have instructed to add the given transport receiver and sender
> to the /repository/conf/axis2/axis2.xml file.
>
> Even though I added them and restarted the management console, I cannot
> proceed to the next step, adding JMSListener proxy service.
> It keeps saying: Unable to configure the service MyJMSProxy for the JMS
> transport: Service doesn't have configuration information for transport
> jms. This service is being marked as faulty and will not be available over
> the JMS transport.
> I also have copied the jta.jar, jms.jar, com.ibm.mq_2.0.0.jar,
> fscontext_1.0.0.jar files to corresponding directories.
>
> Why cannot I add the proxy service? are there any other modifications to
> be done in axis2.xml in order to proceed? (which may not be mentioned in
> the documentation)
>
> Thank you.
> Indrajith.
> a student.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
*USA Mobile **+1-925-464-6816*
*Srilanka Mobile:+94-777-219-209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins connector apiUrl is in diffent format

2016-01-30 Thread Kalyani Yogeswaranathan
Hi Vanji,

We reverted that PR. We also think about that issue and now I have changed
port as optional. Now we didn't remove the previous implementation but we
added simple if condition within the init method to check the port. User
can give the port as optional.

Now it will work for both giving port or giving complete url. You can find
the latest PR [1].

[1] https://github.com/wso2/esb-connectors/pull/521

On Sat, Jan 30, 2016 at 2:14 PM, Vanjikumaran Sivajothy 
wrote:

> @kalyani and @Malaka,
>
> rather than removing the previous implementation, you could have
> facilitated url only scenario with simple if condition.
> So that if some one is using this connector with host port combination
> will not get affected!
>
>
> Best Regards,
> Vanji
>
>
>



-- 

*Kalyani Yogeswaranathan*

*Associate software engineer*
*WSO2 Inc.*

*Mobile: 0776390284*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Related to Configuring WSO2 ESB JMS transport

2016-01-30 Thread Vanjikumaran Sivajothy
Please share your axis2.xml [1] configuration

[1]/repository/conf/axis2/axis2.xml

On Sat, Jan 30, 2016 at 12:44 AM, Indrajith Udayakumara  wrote:

> This is the proxy service to be added. And I added it as a custom proxy in
> the mgmt console.
> http://ws.apache.org/ns/synapse;
> 
>name="MyJMSProxy"
>transports="jms"
>startOnLoad="true"
>trace="disable">
>
>
>   
>  
>  
>   
>
>LocalQueue1
> 
> And the error was:
>
>
> No. I did not check any use-cases sir.
>
> On Sat, Jan 30, 2016 at 2:09 PM, Vanjikumaran Sivajothy 
> wrote:
>
>> What is the error that you see?
>> Did you check any of the use-cases mentioned[1] in the document for your
>> reference?
>>
>>
>> [1] https://docs.wso2.com/display/ESB490/JMS+Usecases
>>
>> On Fri, Jan 29, 2016 at 11:48 PM, Indrajith Udayakumara <
>> aiukum...@gmail.com> wrote:
>>
>>> Hi I am following the esb 4.9 documentation.
>>> https://docs.wso2.com/display/ESB490/Configure+with+IBM+WebSphere+MQ
>>> Here, they have instructed to add the given transport receiver and
>>> sender to the /repository/conf/axis2/axis2.xml file.
>>>
>>> Even though I added them and restarted the management console, I cannot
>>> proceed to the next step, adding JMSListener proxy service.
>>> It keeps saying: Unable to configure the service MyJMSProxy for the JMS
>>> transport: Service doesn't have configuration information for transport
>>> jms. This service is being marked as faulty and will not be available over
>>> the JMS transport.
>>> I also have copied the jta.jar, jms.jar, com.ibm.mq_2.0.0.jar,
>>> fscontext_1.0.0.jar files to corresponding directories.
>>>
>>> Why cannot I add the proxy service? are there any other modifications to
>>> be done in axis2.xml in order to proceed? (which may not be mentioned in
>>> the documentation)
>>>
>>> Thank you.
>>> Indrajith.
>>> a student.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vanjikumaran Sivajothy
>> *Associate Technical Lead*
>> *WSO2 Inc. http://wso2.com *
>> *USA Mobile **+1-925-464-6816*
>> *Srilanka Mobile:+94-777-219-209*
>> [image: Facebook]  [image:
>> Twitter]  [image: LinkedIn]
>>  [image:
>> Blogger]  [image: SlideShare]
>> 
>>
>> This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may
>> have received this communication in error, please reply to the
>> sender indicating that fact and delete the copy you received and in
>> addition, you should not print, copy, re-transmit, disseminate, or
>> otherwise use the information contained in this communication.
>> Internet communications cannot be guaranteed to be timely, secure, error
>> or virus-free. The sender does not accept liability for any errors
>> or omissions
>>
>
>


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
*USA Mobile **+1-925-464-6816*
*Srilanka Mobile:+94-777-219-209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins connector apiUrl is in diffent format

2016-01-30 Thread Vanjikumaran Sivajothy
@kalyani and @Malaka,

rather than removing the previous implementation, you could have
facilitated url only scenario with simple if condition.
So that if some one is using this connector with host port combination will
not get affected!


Best Regards,
Vanji
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Malintha Amarasinghe

2016-01-30 Thread Nuwan Dias
Hi,

It is with great pleasure we welcome Malintha Amarasinghe as a
WSO2 Committer. @Malintha, congratulations and keep up the good work!

Thanks,
NuwanD.

-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dev] [VOTE] Release WSO2 Business Process Server 3.5.1 RC2

2016-01-30 Thread Hasitha Aravinda
​I have verified Pack contents and tested followings,

   - Tested Main BPEL functionalists in clustered environment ( LB : Nginx
   , DB : MySQL )
   - Tested BPEL and Human Task Integration in clustered environment.
   - Tested Human Task Coordination in Super tenant and tenant mode.
   - Tested ODE JOB reassignment in clustered mode.

No issue found.
[X] Stable - Go ahead and release.

Thanks,
Hasitha

On Fri, Jan 29, 2016 at 5:34 PM, Amal Gunatilake  wrote:

> Hi,
>
> I have tested the following.
>
>- Main functionalities of BPEL, Humantask, BPMN on Windows environment.
>- Main functionalities of BPEL, Humantask, BPMN connecting to Oracle
>DB.
>- BPMN
>- Deployment / Undeployment
>   - Process View
>   - Manage instances
>   - BPMN manage user access permission
>   - REST invocations
>   - Correlation
>- Core functionalities of BPMN Rest API
>
> No issues found.
> [x] Stable - go ahead and release
>
> Best regards,
> Amal.
>
>
> On Fri, Jan 29, 2016 at 4:23 PM, Samitha Chathuranga 
> wrote:
>
>> Hi all,
>>
>> I've tested following features.
>>
>> 1) BPMN Explorer
>> 2) BPMN Samples
>> 3) HumanTask Samples
>>
>> No issues found.
>> [x] Stable - go ahead and release
>>
>> Thank you.
>>
>> On Fri, Jan 29, 2016 at 1:58 PM, Sathya Bandara  wrote:
>>
>>> Hi all,
>>>
>>> I have tested the bpel samples. No issues found.
>>> [x] Stable - go ahead and release
>>>
>>> Thanks and regards,
>>>
>>> *Sathya Bandara*
>>> Software Engineering Intern
>>> Email: sat...@wso2.com
>>> Mobile: +94 715 360 421
>>>
>>> On Fri, Jan 29, 2016 at 12:04 PM, Natasha Wijesekara 
>>> wrote:
>>>
 Hi All,

 I've tested the functionalities of the following components using h2
 and mysql as the databases :

 1) BPMN-Explorer
 2) Human-Task Explorer
 3) Core functionalities of the BPMN REST API
 4) BPMN and BPEL instance cleanup scripts
 5) BPEL Process cleanup tool
 6) BPMN Samples

 No issues found.
 [x] Stable - go ahead and release

 Thanks and Regards,
 Natasha

 On Fri, Jan 29, 2016 at 10:40 AM, Isuru Wijesinghe 
 wrote:

> Hi All,
>
> I've tested the following features for h2 and postgreSQL.
>
> 1.) BPMN-Explorer
> 2.) HumanTask-Explorer
> 3.) BPMN Data Publisher
>
> No issues found.
> [x] Stable - go ahead and release
>
> Thanks and Regards,
>
>
> On Thu, Jan 28, 2016 at 8:00 PM, Firzhan Naqash 
> wrote:
>
>> Hi Devs,
>>
>> This is the second release candidate of WSO2 Business Process Server
>> 3.5.1
>>
>> The vote will be open for 72 hours or as needed. Please download,
>> test the product and vote.
>>
>> ​​This release fixes the following issues:
>>
>> https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide=12625
>>
>> Binary distribution is available here:
>>
>> https://github.com/wso2/product-bps/releases/download/v3.5.1-RC2/wso2bps-3.5.1.zip
>>
>> ​​Source is available here:
>> https://github.com/wso2/product-bps/archive/v3.5.1-RC2.zip
>>
>> ​​Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-312/
>>
>> ​​The tag to be voted upon:
>> ​​https://github.com/wso2/product-bps/releases/tag/v3.5.1-RC2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> ​Thanks,
>> ​WSO2 BPS Team,
>>
>> Regards,
>> Firzhan
>>
>>
>> --
>> *Firzhan Naqash*
>> Senior Software Engineer - Integration Platform Team
>> WSO2 Inc. http://wso2.com
>>
>> email: firz...@wso2.com
>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>> blog: http://firzhanblogger.blogspot.com/
>>   *
>> *twitter: https://twitter.com/firzhan007
>>  | linked-in: 
>> **https://www.linkedin.com/in/firzhan
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Natasha Wijesekare*

 *Software Engineering Intern, WSO2  Inc:  http://wso2.com
 *
 *email  : nata...@wso2.com *
 *mobile: +94 771358651 <%2B94%20771358651>*

 

Re: [Dev] WSO2 Committers += Malintha Amarasinghe

2016-01-30 Thread Rukshan Premathunga
congratz malintha...

On Sat, Jan 30, 2016 at 6:57 PM, Isuru Wijesinghe  wrote:

> Congratzz Malintha :)
>
> On Sat, Jan 30, 2016 at 1:38 PM, Nuwan Dias  wrote:
>
>> Hi,
>>
>> It is with great pleasure we welcome Malintha Amarasinghe as a
>> WSO2 Committer. @Malintha, congratulations and keep up the good work!
>>
>> Thanks,
>> NuwanD.
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][JAGGERY] Getting Empty JSON when logging(log.info)

2016-01-30 Thread Rajeenthini Satkunam
Hi,

I have worked on writing Jaggery test for Jaggery-Product.I can observe
when we tried to log the object it always gives us empty JSON
({}).Currently the implementation goes this way when we try to log java
object.

So I was trying to get rid of this observed behavior of Jaggery.I have gone
through a solution.

*using Jackson[1] *

We can convert java object to JSON[2] and can log it.

I have shared the piece of code I have tried out with Jackson below.

*Simple POJO Student class*

public class Student {
private int age;
private String name;
private String indexNo;

public int getAge() {
return age;
}

public void setAge(int age) {
this.age = age;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getIndexNo() {
return indexNo;
}

public void setIndexNo(String indexNo) {
this.indexNo = indexNo;
}
}

*Simple class to test Jackson*

import com.fasterxml.jackson.databind.ObjectMapper;
import util.Student;
public class MyTest {
public static void main(String args[]){
Student st = new Student();
st.setIndexNo("DS001");
st.setAge(12);
st.setName("kareena");
try{
ObjectMapper mapper = new ObjectMapper();
String jsonInString = mapper.writeValueAsString(st);

System.out.println("");
System.out.println(jsonInString);

System.out.println("");

}catch(Exception e){
System.out.print("Exception caught  "+ e);
}

}
}

Actual output by above code.

{"age":12,"name":"kareena","indexNo":"DS001"}


I have added a dependency in the POM.xml


com.fasterxml.jackson.core
jackson-databind
2.6.3



IMHO we can use the same scenario in case of log JAVA object.Your help and
suggestions are more appreciated and guide me if I am wrong or I can have
better solution than this.

[1] - https://github.com/FasterXML/jackson-databind
[2] -
http://www.mkyong.com/java/how-to-convert-java-object-to-from-json-jackson/
-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

*M :+94770832823   *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Malintha Amarasinghe

2016-01-30 Thread Isuru Wijesinghe
Congratzz Malintha :)

On Sat, Jan 30, 2016 at 1:38 PM, Nuwan Dias  wrote:

> Hi,
>
> It is with great pleasure we welcome Malintha Amarasinghe as a
> WSO2 Committer. @Malintha, congratulations and keep up the good work!
>
> Thanks,
> NuwanD.
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Wijesinghe
*Software Engineer*
WSO2 inc : http://wso2.com
lean.enterprise.middleware
Mobile: 0710933706
isur...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Malintha Amarasinghe

2016-01-30 Thread Roshan Wijesena
Congratulations !

On Sat, Jan 30, 2016 at 8:34 PM, Hasunie Adikari  wrote:

> Congratz Malintha
>
> On Sat, Jan 30, 2016 at 7:03 PM, Rukshan Premathunga 
> wrote:
>
>> congratz malintha...
>>
>> On Sat, Jan 30, 2016 at 6:57 PM, Isuru Wijesinghe 
>> wrote:
>>
>>> Congratzz Malintha :)
>>>
>>> On Sat, Jan 30, 2016 at 1:38 PM, Nuwan Dias  wrote:
>>>
 Hi,

 It is with great pleasure we welcome Malintha Amarasinghe as a
 WSO2 Committer. @Malintha, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Technical Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Hasunie Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> blog http://hasuniea.blogspot.com
> Mobile:+94715139495
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Malintha Amarasinghe

2016-01-30 Thread Hasunie Adikari
Congratz Malintha

On Sat, Jan 30, 2016 at 7:03 PM, Rukshan Premathunga 
wrote:

> congratz malintha...
>
> On Sat, Jan 30, 2016 at 6:57 PM, Isuru Wijesinghe 
> wrote:
>
>> Congratzz Malintha :)
>>
>> On Sat, Jan 30, 2016 at 1:38 PM, Nuwan Dias  wrote:
>>
>>> Hi,
>>>
>>> It is with great pleasure we welcome Malintha Amarasinghe as a
>>> WSO2 Committer. @Malintha, congratulations and keep up the good work!
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Technical Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Hasunie Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
blog http://hasuniea.blogspot.com
Mobile:+94715139495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][JAGGERY] Getting Empty JSON when logging(log.info)

2016-01-30 Thread Sajith Ariyarathna
Hi Rajeenthini,

AFAIK ability to convert a POJO into JSON object does nor affect the output
of a Jaggery Log of that POJO.
To get a proper log output for a Java object, you need to implement the
"toString" method in that Java class. For example in your case,

public class Student {

...

public String toString() {

return "{name: " + this.name + ", age: " + this.age + ", indexNo: " +
this.indexNo + "}";

}

}

Now you can log a Student object in your Jaggery code as following.

log.info(studentObj.toString());


Thanks.



On Sat, Jan 30, 2016 at 9:28 PM, Rajeenthini Satkunam 
wrote:

> Hi,
>
> I have worked on writing Jaggery test for Jaggery-Product.I can observe
> when we tried to log the object it always gives us empty JSON
> ({}).Currently the implementation goes this way when we try to log java
> object.
>
> So I was trying to get rid of this observed behavior of Jaggery.I have
> gone through a solution.
>
> *using Jackson[1] *
>
> We can convert java object to JSON[2] and can log it.
>
> I have shared the piece of code I have tried out with Jackson below.
>
> *Simple POJO Student class*
>
> public class Student {
> private int age;
> private String name;
> private String indexNo;
>
> public int getAge() {
> return age;
> }
>
> public void setAge(int age) {
> this.age = age;
> }
>
> public String getName() {
> return name;
> }
>
> public void setName(String name) {
> this.name = name;
> }
>
> public String getIndexNo() {
> return indexNo;
> }
>
> public void setIndexNo(String indexNo) {
> this.indexNo = indexNo;
> }
> }
>
> *Simple class to test Jackson*
>
> import com.fasterxml.jackson.databind.ObjectMapper;
> import util.Student;
> public class MyTest {
> public static void main(String args[]){
> Student st = new Student();
> st.setIndexNo("DS001");
> st.setAge(12);
> st.setName("kareena");
> try{
> ObjectMapper mapper = new ObjectMapper();
> String jsonInString = mapper.writeValueAsString(st);
> 
> System.out.println("");
> System.out.println(jsonInString);
> 
> System.out.println("");
>
> }catch(Exception e){
> System.out.print("Exception caught  "+ e);
> }
>
> }
> }
>
> Actual output by above code.
> 
> {"age":12,"name":"kareena","indexNo":"DS001"}
> 
>
> I have added a dependency in the POM.xml
>
> 
> com.fasterxml.jackson.core
> jackson-databind
> 2.6.3
> 
>
>
> IMHO we can use the same scenario in case of log JAVA object.Your help and
> suggestions are more appreciated and guide me if I am wrong or I can have
> better solution than this.
>
> [1] - https://github.com/FasterXML/jackson-databind
> [2] -
> http://www.mkyong.com/java/how-to-convert-java-object-to-from-json-jackson/
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev