Hi Vikas,
You can set user information in the UnmarshallingContext, which is then
available in your methods. See the setUserContext()/getUserContext()
methods, which allow you to work with a data object defined by your
application.
There's no way to get the file path directly, since jiBX doesn't even
know you're using a file (just a Stream or Reader), but you can pass
this information through a user context object.
- Dennis
Dennis M. Sosnoski
Java SOA and Web Services Consulting <http://www.sosnoski.com/consult.html>
Axis2/CXF/Metro SOA and Web Services Training
<http://www.sosnoski.com/training.html>
Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>
On 09/29/2011 08:50 PM, vikas jadhav wrote:
Hi,
I came across a situation where in, I need to parse the input XML, but
while parsing the XML, I need other information, which is set in other
object.
I don't have any clue whether we can do this in the JIBX.
Can you please suggest the solution.
Also, is there way to get the input XML file path through the method
hooks. (May be though Unmarshalling context?)
Thanks in advance.
Vikas Jadhav
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users