Zip file did not go thru sending the f.aar file in .txt, rename to
web_services.aar
From: Cyril Furtado
Sent: Tuesday, August 04, 2009 6:55 PM
To: '[email protected]'
Subject: RE: MessageContext is null, is something wrong? Still not working!
Code given
Thanks
Deepal,
I am enclosing the java file (DocumentService2.java) & the web_services.aar
file , in fact I just ran the code again to re verify , same result,
MessageContext is null.
Thanks
Cyril
Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.
Thanks,
Deepal
From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: '[email protected]'
Subject: RE: MessageContext is null, is something wrong? Still not working!
Thank you Deepal
I changed my implementation class as given from the below articles
& now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
System.out.println("DocumentService2 init context ****"); // no
output
System.out.println("DocumentService2 message checking***");// no
output
}
public void destroy(ServiceContext context) {
System.out.println("DocumentService2 destroy context ****"); // no
output
}
public getRecord(int id){
System.out.println("create***static
******:"+MessageContext.getCurrentMessageContext()); // output null
return Record.getId();
}
}
my service response gets the correct info ( I have no problem here, its only
when I want to check the MessageContext)
but the ONLY sys out is create***static ******:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive
I am sorry, those methods does not work anymore. Please refer to the
following article.
https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html
Thanks,
Deepal
From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: '[email protected]'
Subject: MessageContext is null, is something wrong?
I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
// store the message contexts
System.out.println("init message called"); //
is not seen in output & inMesssage is null
this.inMessge = inMessge;
}
public void setOperationContext(OperationContext opContext){
System.out.println("setOperationContext message
called ****"); // not seen in output
}
In my method
String getRecord(int id){
System.out.println("message context ****:"+
MessageContext.getCurrentMessageContext());
}
getRecord when called from webservices
the only sys out I see is message context ****:null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril
PK
æ; META-INF/þÊ PK
å;ÖW¥\ j META-INF/MANIFEST.MFóMÌËLK-.Ñ
K-*ÎÌϳR0Ô3àårÌCq,HLÎHU %ÍAÒÎE©%©)ºN õ¦zñfºI¦
Á¥y
¾ÉEùÅÅ%©¹Å
yÉz¼\¼\ PK
t;
META-INF/com/PK
t; META-INF/com/skire/PK
t; META-INF/com/skire/webservices/PK
t; ' META-INF/com/skire/webservices/service/PK
®t; / META-INF/com/skire/webservices/service/general/PK
É;ãGVü Ä E META-INF/com/skire/webservices/service/general/DocumentService2.classVmsÛD~Îq,EVÓÔ
5RÛ´u_Ihi¾¹wY>¥²ÑKqÿ ¿ã:ÃgOü"=Iv\tZÏx÷´»÷ÜÞ³·'ýù÷o¿8y,O!÷e¬d±5ȸ,á
Ë2>úªY£2®)ØÄG®+Á²[2>ú
ºmÜpSÂ-í¶ÛÜc8¡nGóï[×vÈ[®ëiäÔt·½Ê
[Î6÷ý6g(é®×Ö}ÃÜåѵüªfºNÀ»&B6¯Å4-³f9Vpa¢Xj0¤knêÃo&÷îM,9Ý5
»axxné`×ò2û7}î=°lî...@ks{m¸fØánpíuz>-Vg8S<<å$º²ÈRJ|ÏÝêÈ<åZ×äûå:¾ÛÒâ~๲m¬ßºÃM×k1üPÔ÷fN[«å´Wÿ/KéªÂÀ²µnÇÖv¶õÍ=nSÆ9AüðT
8/Ä!.]·¹ÇP~ä5ÓNê¯ÔÝÐ3ù¦%
-UE$¡â5¼®b
K£SHÈ/é'á:î2¼5ÜÏaÊfÞ§=Q8é±°¤BÏÀ2Ì2²ZvKôÈéq#àåþoEŧh¨x'Äè3;¸G 0?0Ë,$Ñ>Wñ¾d(¾(*¾Â×
S{¡¸¹ëªøß2\úo-!Xn¤l2^8;ë}8ÝúMQºÅ± «$7Ð&ÅïÉo¤óÃç?9*¢ë2Æþ>w¨AÎþKÆLIQVGâûÏ761ÌÇ)âô
^p
¯Pk×BÏ#G]ï_æ¢<âó N§%ôã+2]ܤLy§cGÓÀa¯O§>î¼øÚrèH:âIªÙï?s{½ð½eæA[F
²èRzI¥ÄÑ'=Ivj^'éI#͵üìQV ³¨q ð&ija¢(1ù6ééüOHå&~E:1F`Ó
¹
2¥è\<1£·qÀ4N.Ñ¿LÅYÖ
²>3¯D®¤CÐÙt6¦2ãLø¥$nàSH÷CÎMõ A¶µ#ýÝô½Óä}£CΧ!ϱÌBæþè!·Éïav!óã
·Eb8KtWèà]lз*Ý
ç£\¯ÇY
rmPl%â»A¥©D;iмJDafW1ªÒhðrtVqqPÔ¥9üÌýÔ£¨r#y)Êò½ PK
;MgÀ è META-INF/services.xmlTÁrÚ0=¯ØúÌÌÐ:Ã
!ÉÔÓ24£°£-¹K¿½kYÚ´Îݤ÷ö½Ý'GoG£ÀOø*R3°
ìaVñ~µµ
×7ª·bi8%...@¯¨aitp¥¡tt,UÒj±©--%ð\#(a :úÅrϯa+ ÓáHA#ì
Ò°%*e¢ÍJ§Ä!5æ\gBæT»Úkï,¨F¢6;Q1X·^^éuÉí^ÕÞÌoß!|'¢Öôá8Tà·óO^ò=He¡6xä|N±²$U!¸L;¸7x¨ÂàÁ¨åt;/ ¶§§ÛívÖVðiÆ`¦töïÔÛEr="ÑÈ,Ðj×Zhêòf¼"U)ßÖ7í
ݨ\HE£©ç2:¸ép:©cÛzäýô 5wc
f ÄI ³$Np¯?/ïÖp?[fu|Àróåâ*^Ç˽ÝÀlñà _âÅÕFÅð¹Ò+Ú¦bv
U/¢ML?*Sa*¶"%2¯y«'Ô²
L
º¦¯!e¤Ö%Ë8ì{G£é`ÔO´xÜI*ú7I·n04BÚZQ¿ÑØ ¦24©U[¤[iL¥u{QHEMa÷t4|JjyZa\#å[Pbuä¦yç23ßãac²"r¤d±,/´àÆ\ìÇ
0]¥L÷*ØêvË%1}û]D¾ÀÚ¾¾(¿·4ª¸¦QÓTüÈýdæm½`JGºW¬ÁÏaþËQ¶ÓdW~¼;Âëtð&¢¼èî
ÛÈÑ^Þ¥³àºÞË
½éàPK
æ; íA META-INF/þÊ PK
å;ÖW¥\ j ¤+ META-INF/MANIFEST.MFPK
t;
íA¹ META-INF/com/PK
t; íAä META-INF/com/skire/PK
t; íA META-INF/com/skire/webservices/PK
t; ' íAR META-INF/com/skire/webservices/service/PK
®t; / íA META-INF/com/skire/webservices/service/general/PK
É;ãGVü Ä E ¤ä META-INF/com/skire/webservices/service/general/DocumentService2.classPK
;MgÀ è ¤C META-INF/services.xmlPK
® 6