且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用java将参数从flex传递到数据库

更新时间:2022-06-27 00:40:36

我认为问题是 JAVA static 方法根据 远程服务定义

I think problem is JAVA static method according to Remoting Service definition

远程服务允许客户端应用程序访问服务器端 Java 对象的方法

The Remoting Service lets a client application access the methods of server-side Java objects

并且在java/oops中静态方法关联到对象/instance它的依赖/关联到类

and in java/oops static methods are not associated to Object/instance its depends-upon/associated to class

你的方法应该是这样接受来自flex的调用

your method should be like this to accept call from flex

public String getHelloByName(String aName,String aMail,String aNumber,String aFeedback)

并在 main(java main) 中调用它,使用以下几行

and to call it in main(java main) use following lines

HelloWorldName helloWorldName = new HelloWorldName();
helloWorldName.getHelloByName(null, null, null, null);

这是 Flash-Builder BlazeDS-Remoting 示例

Here is Flash-Builder BlazeDS-Remoting sample

希望有效