SYS-CON MEDIA Authors: Pat Romanski, Gary Arora, Zakia Bouachraoui, Yeshim Deniz, Liz McMillan

Blog Feed Post

Using the Sybase Hosted Relay server with SUP 2.1 Hybrid Web Container

Greetings, and a Happy 2012 to you!

You may have noticed that I’ve been rather absent from the blogosphere lately.   I’ve been focusing on my transition to the Sybase/SAP Mobility team.  That doesn’t mean I’ve abandoned my passion for PowerBuilder – that’s the tool that built my career, and it will always be a part of me.  My day-to-day responsibilities are now with the Sybase Mobility stack, which includes Sybase Unwired Platform (SUP), Afaria, and the SQL Anywhere/MobiLink/UltraLite toolset.  Therefore, the content that I publish in this blog will take a decided turn towards those tools.  This entry will cover the steps necessary to use the Sybase Hosted Relay Server with your local install of SUP 2.1.

The iAnywhere Relay Server

The iAnywhere Relay Server is an optional (but critical, IMO) component of the Sybase/SAP mobile infrastructure.  It’s essentially a reverse-proxy server that gets installed into a corporate DMZ, and implements an “inbound port” model to help insulate the server(s) inside the firewall from malicious internet traffic.   It can be used with any of our mobile solutions, including SUP, Afaria, SQL Anywhere, and MobiLink.  Mobile devices don’t need to be configured with the addresses/IPs/ports of the SUP server or farm – they only need the address and port of the Relay Server.  The SUP server(s) make an outbound connection to the Relay Server using regular HTTP/S traffic, meaning that there are no open ports through the inner corporate firewall.  Devices make an inbound connection to the Relay Server (again, HTTP/S on ports 80 or 443), and the Relay Server brokers the conversation between device and server, much like an old-time telephone operator at a switchboard.  If the Relay Server is not implemented, the only other option to get devices and servers to communicate is to open specific TCP/IP ports for the SUP server through the inner and outer firewalls, and to configure the devices with the addresses of those SUP servers.  I’ve not yet met a network admin that would readily agree to this…

Here is a white paper that outlines the Relay Server architecture in much more detail.

The Relay Server is included free-of-charge with SUP, Afaria, and SQL Anywhere, and runs inside Microsoft IIS or Apache web servers.

The Hosted Relay Server

Sybase has created a hosted implementation of the Relay Server, which is available for free to registered Sybase/SAP customers.  This is designed to allow for development and test of small mobile deployments – it’s not to be used for production implementations (for obvious reasons).  The URL for the hosted relay server is: http://relayserver.sybase.com.  The first step is to submit a registration request, which will be reviewed by Sybase.  Once approved, there are three main steps to connect a remote device to the SUP server farm.

1.  Register the SUP Farm details

At the bottom of the account details page, you’ll find the individual hyperlinks to create the different types of server farm registrations.  We’ll be creating an SUP farm.  The Relay Server communicates with an SUP server “farm”, even if there’s only a single server node registered in that farm.  This makes it easy to add and remove nodes from the farm, without having to reconfigure any of the mobile devices out in the field.

Click “Add New Sybase Unwired Platform Farm”, and this brings up the page shown in Figure 1.

Figure 1

Figure 1

I’ve placed the Relay Server registration page over the Sybase Control Center page, so it’s easier to see how to fill out the form.  Since this example will focus on the Hybrid Web Container, we’ll create a Message-based Synchronization (MBS) farm.  I’m also registering a Replication-based Sync (RBS) farm, even though this example is going to focus solely on the MBS capabilities of the Hybrid Web Container.

Give the farm a unique name.  As you can see, I’ve called mine PHoranXP.  The Relay Server will automatically append a suffix to the farm id, based on its type.  The full name of the farm is composed as Registration Name (dot) Farm ID + suffix.  Message-based farms get the letters MBS added, so its official name will be PaulHoran.PHoranXPMBS.  The Replication-based Sync farm will be named PaulHoran.PHoranXPRBS.  If I’d created a DCN farm, it would have been PaulHoran.PHoranXPDCN.  Bottom line: don’t forget the registration name or the suffix…

Lastly, enter the server node name within the farm.  This is comprised of the SUP server name that appears in the Sybase Control Center, plus the string “SUPServer1″. Mine happens to be named phoran-d630, so the server node name is phoran-d630SUPServer1.   Click Create Farm to register the details to the Relay Server, and create a long alphanumeric “token” value for each farm type.  You’ll be asked for this value in step 2 below.  If you ever forget this value (and who could be expected to remember it?), just click on the Configuration Instructions link, and you’ll be taken to a page that lists all the pertinent info for your registration.

The remaining steps are performed in the Sybase Control Center (SCC), so open a session to the SUP server now.

2.  Point SUP to the Hosted Relay Server

The SUP server establishes an outbound connection to the Relay Server through a component called the Relay Server Outbound Enabler, or RSOE.  SUP needs to know the connection details to the Relay Server, and they’re configured in the Sybase Control Center.   This is configured in the main server properties panel of SCC, in the Relay Servers tabpage.  Figure 2 shows what this looks like:

SUP server properties

Figure 2

Click the New… button to open the first screen of the registration wizard.  Fill in the following values:

  • Host:   relayserver.sybase.com
  • HTTP port:  80
  • HTTPS port: 443
  • URL suffix:   accept the default value
  • Description:  your choice…

Click the Next button to navigate to the next panel in the wizard.  This screen is a little more complicated, and is a two-step process.  Figure 3 shows both of the wizard screens, already filled out.

Figure 3

Figure 3

We’re now working in the top half of the the second screen.  Enter the full FarmID that was registered to the specific Relay Server/Type combination in step 1.  Since I’m registering a messaging server, I’ll select Messaging in the Type field, and enter PaulHoran.PHoranXPMBS as the farm ID. Enter a description, if desired.  Now click the yellow plus sign to register that combination.  To create a second registration (for a Replication or DCN type), you would simply change the Type field to the desired value, change the suffix in the farm ID, and click the yellow plus sign again.  If you make a mistake, simply select the row, and click the red X to delete it and start over.

Now we move to the bottom half of the screen, where you’re registering the server node within the farm ID and type.  Select the appropriate row in the top list (I only have one, but you might have an MBS and an RBS row registered).  Since this is a Master-Detail screen, it’s important to keep the relationships straight.   Enter the Server Node ID and the corresponding Token value for that node in the corresponding fields, then click the BOTTOM yellow plus sign.  (If it’s grayed out or disabled, make sure you have the correct row selected in the top half of the screen.)   I’ve entered phoran-d630SUPServer1, and pasted in the correct token value from the Hosted Relay Server configuration page.

When everything is done correctly, your screen should look somewhat like the right side of Figure 3 above.  Click Finish to record the registration and close the wizard.

3.  Create the RSOE details

Figure 4 below shows how to find the panel for recording the properties of the Relay Server Outbound Enabler (RSOE) process.

RSOE properties

Figure 4

Begin by clicking the yellow plus sign.  This opens a three-panel wizard dialog for entering the properties, as shown in Figure 5 below.  The good news is, this one is much easier to navigate.  Select Messaging in the Farm Type field, and all the other properties will be automatically filled in.

Figure 5

Figure 5

The only modifiable options on the first screen are the port values.  The RSOE process connects to the SUP server on port 5001, and out to the Relay server itself on port 80 or 443.   Clicking Next> allows you to provide HTTP credentials (if necessary), and specify an HTTP proxy.  The third and final screen allows for setting specific processing and logging options.  These can all be modified later if necessary, so just accept the defaults and click Finish to complete the process.

The last step is to actually start the RSOE process.  If registration was successful, a row should appear in the RSOE list.  Select it, and click the Start button.  Wait several seconds, then click the Refresh button to see the status of the RSOE process.  The Status field should show as “Running”.

Configuring the SUP Container on Mobile Devices

Registering Users in Sybase Control Center

The first step in hooking up a device to SUP through the Hosted Relay Server is to register that username in SCC.  This is done in the Application Connections tab of the Applications panel.  Figure 6 shows the registration for my iPad device.

Figure 6

Figure 6

Note that the server name is set to relayserver.sybase.com on port 80 – not the default of phoran-d630 on port 5001.  Set the Application ID to HWC to link the user to the Hybrid Web apps.  Give the user an appropriate activation code, and click OK.

Configuring the Connection Properties on the Device

The SUP Hybrid Web Container for iOS 4.x/5.x can be downloaded directly from the Apple Appstore here.  The first thing you’ll do after downloading and installing it, is configure the connection properties in the Settings app.

  • Server Name:   relayserver.sybase.com
  • Server Port:  80  (or 443, if you configured the secure HTTP connection)
  • Farm ID:  the entire farm ID, including the registration name and suffix – mine is PaulHoran.PHoranXPMBS
  • User Name/Activation Code:  the username and activation code that were registered above.
  • Password:  provide a 6-digit password, or leave this blank to force the user to reenter the HWC password each time the app is reactivated.

Once these connection properties are set, and the Hybrid Web Container is launched, a connection is made to SUP through the Relay Server to download all the registered Hybrid Web apps that have been assigned to the device user.

-Paul-

Read the original blog entry...

More Stories By Paul Horan

Paul Horan is a Senior Solution Advisor and Mobility Architect at SAP, and works with the SAP Mobile Platform and SAP Mobile Secure product lines. Paul joined SAP as part of their acquisition of Sybase in June, 2010. Prior to that, Paul worked for Sybase as a technical pre-sales architect supporting PowerBuilder, PowerDesigner, and SQL Anywhere. Paul works out of SAP's Reston VA office. A 1984 graduate of Indiana University, Paul currently resides in Arlington VA.

Latest Stories
DevOps has long focused on reinventing the SDLC (e.g. with CI/CD, ARA, pipeline automation etc.), while reinvention of IT Ops has lagged. However, new approaches like Site Reliability Engineering, Observability, Containerization, Operations Analytics, and ML/AI are driving a resurgence of IT Ops. In this session our expert panel will focus on how these new ideas are [putting the Ops back in DevOps orbringing modern IT Ops to DevOps].
While a hybrid cloud can ease that transition, designing and deploy that hybrid cloud still offers challenges for organizations concerned about lack of available cloud skillsets within their organization. Managed service providers offer a unique opportunity to fill those gaps and get organizations of all sizes on a hybrid cloud that meets their comfort level, while delivering enhanced benefits for cost, efficiency, agility, mobility, and elasticity.
Isomorphic Software is the global leader in high-end, web-based business applications. We develop, market, and support the SmartClient & Smart GWT HTML5/Ajax platform, combining the productivity and performance of traditional desktop software with the simplicity and reach of the open web. With staff in 10 timezones, Isomorphic provides a global network of services related to our technology, with offerings ranging from turnkey application development to SLA-backed enterprise support. Leadin...
Darktrace is the world's leading AI company for cyber security. Created by mathematicians from the University of Cambridge, Darktrace's Enterprise Immune System is the first non-consumer application of machine learning to work at scale, across all network types, from physical, virtualized, and cloud, through to IoT and industrial control systems. Installed as a self-configuring cyber defense platform, Darktrace continuously learns what is ‘normal' for all devices and users, updating its understa...
Enterprises are striving to become digital businesses for differentiated innovation and customer-centricity. Traditionally, they focused on digitizing processes and paper workflow. To be a disruptor and compete against new players, they need to gain insight into business data and innovate at scale. Cloud and cognitive technologies can help them leverage hidden data in SAP/ERP systems to fuel their businesses to accelerate digital transformation success.
Concerns about security, downtime and latency, budgets, and general unfamiliarity with cloud technologies continue to create hesitation for many organizations that truly need to be developing a cloud strategy. Hybrid cloud solutions are helping to elevate those concerns by enabling the combination or orchestration of two or more platforms, including on-premise infrastructure, private clouds and/or third-party, public cloud services. This gives organizations more comfort to begin their digital tr...
Most organizations are awash today in data and IT systems, yet they're still struggling mightily to use these invaluable assets to meet the rising demand for new digital solutions and customer experiences that drive innovation and growth. What's lacking are potent and effective ways to rapidly combine together on-premises IT and the numerous commercial clouds that the average organization has in place today into effective new business solutions.
Keeping an application running at scale can be a daunting task. When do you need to add more capacity? Larger databases? Additional servers? These questions get harder as the complexity of your application grows. Microservice based architectures and cloud-based dynamic infrastructures are technologies that help you keep your application running with high availability, even during times of extreme scaling. But real cloud success, at scale, requires much more than a basic lift-and-shift migrati...
David Friend is the co-founder and CEO of Wasabi, the hot cloud storage company that delivers fast, low-cost, and reliable cloud storage. Prior to Wasabi, David co-founded Carbonite, one of the world's leading cloud backup companies. A successful tech entrepreneur for more than 30 years, David got his start at ARP Instruments, a manufacturer of synthesizers for rock bands, where he worked with leading musicians of the day like Stevie Wonder, Pete Townsend of The Who, and Led Zeppelin. David has ...
Darktrace is the world's leading AI company for cyber security. Created by mathematicians from the University of Cambridge, Darktrace's Enterprise Immune System is the first non-consumer application of machine learning to work at scale, across all network types, from physical, virtualized, and cloud, through to IoT and industrial control systems. Installed as a self-configuring cyber defense platform, Darktrace continuously learns what is ‘normal' for all devices and users, updating its understa...
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Addteq is a leader in providing business solutions to Enterprise clients. Addteq has been in the business for more than 10 years. Through the use of DevOps automation, Addteq strives on creating innovative solutions to solve business processes. Clients depend on Addteq to modernize the software delivery process by providing Atlassian solutions, create custom add-ons, conduct training, offer hosting, perform DevOps services, and provide overall support services.
Contino is a global technical consultancy that helps highly-regulated enterprises transform faster, modernizing their way of working through DevOps and cloud computing. They focus on building capability and assisting our clients to in-source strategic technology capability so they get to market quickly and build their own innovation engine.
When applications are hosted on servers, they produce immense quantities of logging data. Quality engineers should verify that apps are producing log data that is existent, correct, consumable, and complete. Otherwise, apps in production are not easily monitored, have issues that are difficult to detect, and cannot be corrected quickly. Tom Chavez presents the four steps that quality engineers should include in every test plan for apps that produce log output or other machine data. Learn the ste...
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...