Monday, November 14, 2011

GWT RPC

Hi i am very new to programming, So Plz Help with the code.
I have a code which is running fine when i am creating with java
project in eclipse.But the same code is not running with gwt web
application.

void init()
{
SessionFactory sessionFactory =SessionFactoryImpl.newInstance();

Map<String, String> parameter =new HashMap<String, String>();

// //connection setting :should DOne by Server

parameter.put(SessionParameter.USER,"xyz");
parameter.put(SessionParameter.PASSWORD, "abc");

parameter.put(SessionParameter.ATOMPUB_URL, "http://19.16.1.15:9080/
CaseManager/resources/ECM/ContentFlat
");

parameter.put(SessionParameter.BINDING_TYPE,BindingType.ATOMPUB.value());

//find all the repositories at this URL
List<Repository> repositories =new ArrayList<Repository>();
repositories = sessionFactory.getRepositories(parameter);

for(Repository r : repositories)
{
System.out.println("Found Repositroy" + getName())// should be
displayed by client
}
}

Connection should be done by the server.
and client should show the result of the request of finding the
repositories .

but I dont know what code should be written in services and client
folder in GWT.
Please Help.
Thanks in Advance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate