[Seasar-user:20242] T2のAmf送信について

=?gb2312?B?tcCO2g==?= [E-MAIL ADDRESS DELETED]
2010年 10月 18日 (月) 11:21:19 JST


祇レと賦します。
½ñ¡¢T2¤òÃ㏊¤·¤Æ¤¤¤Þ¤¹¡£

仝sc2009autumn_s307_4_t2_hacks々の嫗仝T2 Hack with JavaFX々に歌孚し
Java¥¢¥×¥ê¤«¤éT2¤Ç¥µ©`¥Ð©`¤ËËÍÐŤ·¤Æ¤ß¤Þ¤¹¡£

¥¯¥é¥¤¥¢¥ó¥È‚È
public class AmfClient {

	public static void main(String[] args) {
		AmfConnection amf = new AmfConnection();
		amf.setDestination("/amfServer");
		amf.setOperation("sayHello");
		amf.connect("http://localhost:8080/t2-samples/t2.amf");
		String str = null;
		try {
			str = (String) amf.call("myname");
		} catch (AmfFaultException e) {
			e.printStackTrace();
		}
		System.out.println(str);	}
}

¥µ©`¥Ð©`‚È

@Page("/amfServer")
public class AmfServerPage {

	@Amf
	public Navigation sayHello(String name) {
		System.out.println("sayHello:" + name);
		return AmfResponse.to("Hello," + name);
	}
}

¥µ©`¥Ð©`‚ȤËÊܤ±È¡¤ê¤Î¥Ñ¥é¥á©`¥¿¤ÏNull¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¤É¤¦¤¤¤¦Ô­Òò¤Ç¤¹¤«£¿À§¤ê¤Þ¤·¤¿¡£
¤´Ö¸Œ§¤¤¤¿¤À¤­¤¿¤¤¤Ç¤¹¡£

¥Ð©`¥¸¥ç¥ó¡¡t2-0.6.2-ga.jar

LogÇéˆó£º

10:05:11.853 [HttpProcessor:init1] DEBUG o.t.t.f.a.a.i.AmfActionInvokerImpl
org.t2framework.t2.design - AMF宥佚のためのコンテキストオブジェクト
([E-MAIL ADDRESS DELETED])が
伏撹されました.
10:05:11 [HttpProcessor:init1] DEBUG o.t.t.f.a.a.i.AmfActionInvokerImpl -
AMF宥佚のためのコンテキストオブジェクト
([E-MAIL ADDRESS DELETED])が
伏撹されました.
10:05:11.900 [HttpProcessor:init1] INFO
o.t.t2.action.impl.ActionInvokerImpl  - ¥ê¥¯¥¨¥¹¥È¤ò„IÀí¤¹¤ëPage¥¯¥é¥¹¤ò—ʳö
しました。(Pageクラス兆:AmfServerPage).
10:05:11 [HttpProcessor:init1] INFO  o.t.t2.action.impl.ActionInvokerImpl -
¥ê¥¯¥¨¥¹¥È¤ò„IÀí¤¹¤ëPage¥¯¥é¥¹¤ò—ʳö¤·¤Þ¤·¤¿¡£(Page¥¯¥é¥¹Ãû:AmfServerPage).
10:05:11.916 [HttpProcessor:init1] DEBUG
o.t.t.a.impl.ActionInvokerFilterImpl org.t2framework.t2.lifecycle -
URL(/amfServer/sayHello)¤ËŒ¤·¤Æ¡¢¥¢¥¯¥·¥ç¥ó¥á¥½¥Ã¥É
(AmfServerPage#sayHello(null,
[E-MAIL ADDRESS DELETED]))¤òŒgÐФ·¤Þ¤¹.
10:05:11 [HttpProcessor:init1] DEBUG o.t.t.a.impl.ActionInvokerFilterImpl -
URL(/amfServer/sayHello)¤ËŒ¤·¤Æ¡¢¥¢¥¯¥·¥ç¥ó¥á¥½¥Ã¥É
(AmfServerPage#sayHello(null,
[E-MAIL ADDRESS DELETED]))¤òŒgÐФ·¤Þ¤¹.
-------------- next part --------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------


Seasar-user メーリングリストの案内