Jump to content
We've recently updated our Privacy Statement, available here ×

alihosseini1365

Members
  • Posts

    1
  • Joined

  • Last visited

alihosseini1365's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi I want to spray through The form remote connection to a remote JB show. What should I do? this part of the project. and This class is calling the database table values. package currencyJspClient; import ir.jnf.currency.model.currencylog.CurrencyLog;import ir.jnf.currency.service.currencylog.CurrencyLogServiceRemote; import java.util.ArrayList;import java.util.List;import java.util.Properties; import javax.naming.Context;import javax.naming.InitialContext; public List<CurrencyLog> farakh() { try { Properties properties = new Properties(); properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); Context context = new InitialContext(properties); String name = "ejb:currency-ear/currency-ejb/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceRemote"; CurrencyLogServiceRemote bean = (CurrencyLogServiceRemote) context .lookup(name); System.out.println(bean.currencyLogFindAllRemote()); currencyList = bean.currencyLogFindAllRemote(); return currencyList; } catch (Exception e) { e.printStackTrace(); } return null; } } [/code] Also, sorry that my English is very beginner's level.
×
×
  • Create New...