11.07.2015 Views

WEB-ENABLE POWERBUILDER APPS WITH SYBASE EASERVER ...

WEB-ENABLE POWERBUILDER APPS WITH SYBASE EASERVER ...

WEB-ENABLE POWERBUILDER APPS WITH SYBASE EASERVER ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ReferencesFor more information on using a custom tag library, see TagExtensions in the JSP 1.1 Specification. You can find anothercustom tag library example at www.sybase.com/detail/1,6904,1012876,00.html.For more information on Jaguar::Properties and other public EAServerinterfaces, see $JAGUAR/html/ir/index.html, where $JAGUAR maps toyour EAServer installation.AUTHOR BIOSJason Weiss is a software engineering manager for Sybase with over 12 years of real-world design anddevelopment experience. He’s a published author, and frequently lectures at industry trade shows.Diane Vezina is a software engineer for Sybase with over 18 years’ experience in software development.She’s a Certified Sybase Instructor and Certified Sybase Professional focusing on Sybase EAServer andEnterprise Portal products. ▼weissj@sybase.comvezina@sybase.comListing 1public Factory doCorbaLookup(String pack, String comp) {Factory factory = null;Try {Java.util.Properties props = new java.util.Properties();Props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");ORB orb = ORB.init((java.lang.String[])null, props);//serverinfo is actually an attribute passed in fromthe tagManager manager =ManagerHelper.narrow(orb.string_to_object(serverinfo));//logid and logpass are actually attributes passed infrom the tagSession session =manager.createSession(logid, logpass);Factory =FactoryHelper.narrow( session.lookup(pack + "/" +comp));} catch (Exception e) {e.printStackTrace();}return factory;}Listing 2Download the Code!The code listing for this article can also be located atwww.sys-con.com/ pbdj/12 PBDJ volume9 issue4www.SYS-CON.COM/pbdj/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!