PowerBuilder 11: Deploying Business Logic as .NET Assemblies

Slides:



Advertisements
Similar presentations
1 VBScript Session What we learn last session?
Advertisements

Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
.NET Overview Managed Code (MSIL) Managed Code (MSIL) CLR CLR JIT Compiler JIT Compiler Multi-Platform Multi-Platform Multi-Lingual (C#, VB.NET, Perl,
Client Tools Explained EAE 3014
Copyright © 2003 Pearson Education, Inc. Slide 7-1 The Web Wizards Guide to PHP by David Lash.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Chapter 11 Separate Compilation and Namespaces. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Learning Objectives Separate Compilation.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 12 Introduction to ASP.NET.
Copyright © 2002 Pearson Education, Inc. Slide 1.
Chapter 1 The Study of Body Function Image PowerPoint
Program Verification Using the Spec# Programming System ETAPS Tutorial K. Rustan M. Leino, Microsoft Research, Redmond Rosemary Monahan, NUIM Maynooth.
1 Introduction to ASP.Net 4.0 Development David Ringsell MCSD MCT MCPD.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
4 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: Servlets.
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
3 Copyright © 2005, Oracle. All rights reserved. Basic Java Syntax and Coding Conventions.
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
PowerBuilder 11: Windows Forms and .NET Interoperability
Week 2 The Object-Oriented Approach to Requirements
Lesson 6: Configuring Servers for Remote Management
Suite Suite 2 TPF Software – Overview Binary Editor Remote Scripts zTREX Add-Ins & Project Integration with Source Control Manager.
GETTING STARTED WITH WINDOWS COMMUNICATION FOUNDATION 4.5 Ed Jones & Grey Guindon.
PowerBuilder 11: The Web Service Source DataWindow
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Campaign Overview Mailers Mailing Lists
ABC Technology Project
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
August 2012 This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
VOORBLAD.
PowerBuilder 11: .NET Web Forms
©2007 First Wave Consulting, LLC A better way to do business. Period This is definitely NOT your father’s standard operating procedure.
Template V.24, 1-Mar-2007 Creating Value with the Infor MES & QM Jay Melville Sr. Manufacturing Consultant Mike LeRoy Business Unit Manager, May 30, 2007.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Executional Architecture
Template v5 October 12, Copyright © Infor. All Rights Reserved. 1 Learn LN User interface concepts Bram Vijfhuizen Principal.
Presented by Douglas Greer Creating and Maintaining Business Objects Universes.
Enhancing Spotfire with the Power of R
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
25 seconds left…...
Services Course Windows Live SkyDrive Participant Guide.
What’s New in WatchGuard Dimension v1.2
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 15 Programming and Languages: Telling the Computer What to Do.
We will resume in: 25 Minutes.
12 January 2009SDS batch generation, distribution and web interface 1 ExESS IT tool for SDS batch generation, distribution and web interface ExESS IT tool.
PowerBuilder 11 Overview
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
From Model-based to Model-driven Design of User Interfaces.
What’s new in WebSpace Changes and improvements with Xythos 7.2 Effective June 24,
PowerBuilder.NET Guided Tour. PowerBuilder A New PowerBuilder IDE for.NET Development.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Scalable Game Development William Roberts Senior Game Engineer
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Introducing the Microsoft® .NET Framework
INF230 Basics in C# Programming
Module 1: Getting Started
Design and Consume DataWindows in Visual Studio 2005
Presentation transcript:

PowerBuilder 11: Deploying Business Logic as .NET Assemblies November 13, 2007

PowerBuilder 11: Deploying Business Logic as .NET Assemblies Steve Glagow President, International Sybase User Group

PowerBuilder 11: Deploying Business Logic as .NET Assemblies Jim O’Neil Senior Systems Consultant Sybase, Inc.

Agenda PowerBuilder roadmap PowerBuilder .NET support The “five Ds” of PowerBuilder .NET assemblies Design the business logic Define the deployment properties Deploy the NVO Develop the calling application Debug the assembly Demo: “the sixth D” Learn more about it!

PowerBuilder Roadmap Version 11 released in June 2007 Delivers on third-phase of PowerBuilder’s .NET initiative .NET Windows Forms Deployment (and Smart Client) .NET Web Forms Deployment .NET Assemblies .NET Web Services

PowerBuilder Roadmap 2007 PowerBuilder 11.1 2008 PowerBuilder 11.2 .NET incremental rebuild Informix 10 support Vista support RadControls for Web Forms Miscellaneous fixes 2008 PowerBuilder 11.2 AJAX support for Web Forms Applications EAServer .NET Client Support Miscellaneous fixes 2008 PowerBuilder 11.5 Core .NET enhancements Native DataWindow updates Updated database support Miscellaneous fixes 2009 PowerBuilder 12 .NET in IDE WPF/WCF support at design and run-time Fully managed code at deployment Complete .NET interoperability Language Independence Application Connectivity Multiple Platform Support Power And Performance

PowerBuilder 11 .NET Support PowerBuilder .NET deployment options

.NET Assembly Definition Building block of .NET applications Logical unit of functionality (a DLL in physical terms) Implementation independent Contains code – Microsoft Intermediate Language (MSIL) – executed by Common Language Runtime (CLR) Imposes boundaries for contexts of Security Type Reference scope Versioning Deployment Implications for PowerBuilder developers Immediate reuse of existing code in .NET architectures “Full citizenship” in .NET application development circles

PowerBuilder .NET Assemblies Design the business logic PowerBuilder 11 supports the deployment of non-visual objects (Custom Class User Objects) as .NET assemblies Existing NVOs can be leveraged by creating a new .NET Assembly Target that references the original target Implement methods in PowerScript as you would for a traditional PowerBuilder application Only a few caveats Proprietary PowerBuilder types (e.g., datastore, transaction, etc.) cannot be used in public method signatures Instance variables are not exposed – define your own getter/setter methods Some PowerScript constructs are not supported in .NET deployments

PowerBuilder .NET Assemblies Define the deployment properties (General) PowerBuilder project object encapsulates the details .NET Namespace Output DLL Name

PowerBuilder .NET Assemblies Define the deployment properties (Objects) .NET class name NVO list Intellisense properties .NET method NVO method

PowerBuilder .NET Assemblies Define the deployment properties (Resource Files) .INI files Text files Images

PowerBuilder .NET Assemblies Define the deployment properties (Library Files) Invocation of most types of native calls (local external functions) is supported List is initially populated by wizard based on introspection of code in the user object

PowerBuilder .NET Assemblies Define the deployment properties (Version)

PowerBuilder .NET Assemblies Define the deployment properties (Post-build) Any command recognizable by operating system Sample uses Invoke .NET obfuscator tool Copy output to staging area Send page/e-mail indicating build is complete Different actions depending on build type

PowerBuilder .NET Assemblies Define the deployment properties (Run) Specify application used to invoke assembly “Running Man” Debugger “Client” application path

PowerBuilder .NET Assemblies Deploy the NVO Use project painter or context menu on target/project to initiate deployment PowerScript Source C# translation .NET Assembly CSC deploy PBDs (DataWindow Objects) Syntax errors save/build Unsupported features PB2CS PowerBuilder System Library For .NET (managed code) DataWindow Engine Database Interfaces (unmanaged code)

PowerBuilder .NET Assemblies Post-deployment directory structure PBD file Deployment Log .NET Assembly Debug Build Required files for deployment

PowerBuilder .NET Assemblies Deployment to target environment Runtime packager System Library for .NET Other required files dependent on functionality  XCopy from /install directory OR Setup file (MSI) from project object properties

PowerBuilder .NET Assemblies Develop the calling application (Visual Studio .NET) Add reference to assembly

PowerBuilder .NET Assemblies Object Browser view Method prototype Intellisense

PowerBuilder .NET Assemblies Sample invocation using C# private void cb_Populate_Click(object sender, EventArgs e) { isug.tour07.n_prodlist productList; isug.tour07.s_prodlistitem[] products = null; String infoMsg = null; Int32 numItems; productList = new n_prodlist(); numItems = productList.retrieveProducts(ref products, ref infoMsg); items = new System.Collections.ArrayList(); foreach (s_prodlistitem t in products) items.Add(new Item(t)); dgrProducts.DataSource = items; }

PowerBuilder .NET Assemblies Debug project settings Specify test application on Run tab Specify “Debug” as build type

PowerBuilder .NET Assemblies Assembly debugging sequence Set breakpoints in PowerBuilder script view Launch “Run” application using Debug option Execution pauses when client application invokes the PowerBuilder assembly and reaches a defined breakpoint At this point, most “classic PowerBuilder” debugging options are available HELP! My breakpoints aren’t being triggered! Ensure the correct .PDB file, generated during deployment, is available (typically placed in same directory as assembly)

Demo

Learn More About It! ISUG “Leveraging PowerBuilder in the .NET World” Day-long, hands-on training event Multiple cities in North America through December Visit http://www.isug.com/pb11tour for details Sybase webcasts Six sessions over next few months Focused on new .NET features PowerBuilder 11 Overview (Nov 20th) Windows Forms and .NET Interoperability (Dec 4th) Web Forms (Dec 11th) Smart Client (Jan 15th) Web Services Deployment (Jan 29th) Web Services DataWindow (Feb 5th) PowerBuilder Videos: http://www.sybase.com/products/development/ powerbuilder/videos

Q&A