René's URL Explorer Experiment


Title: Enabling FDC3 API within a Java App · Issue #38 · openfin/java-example · GitHub

Open Graph Title: Enabling FDC3 API within a Java App · Issue #38 · openfin/java-example

X Title: Enabling FDC3 API within a Java App · Issue #38 · openfin/java-example

Description: I'm following the example here (FDC3Example.java) in order to set up FDC3 communication for a proof of concept. I'm encountering an issue when trying to connect to the fdc3client using fdc3Client.connect (line 185 in the example). This n...

Open Graph Description: I'm following the example here (FDC3Example.java) in order to set up FDC3 communication for a proof of concept. I'm encountering an issue when trying to connect to the fdc3client using fdc3Client.c...

X Description: I'm following the example here (FDC3Example.java) in order to set up FDC3 communication for a proof of concept. I'm encountering an issue when trying to connect to the fdc3client using fdc3...

Opengraph URL: https://github.com/openfin/java-example/issues/38

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enabling FDC3 API within a Java App","articleBody":"I'm following the example [here (FDC3Example.java)](https://github.com/openfin/java-example/blob/master/src/main/java/com/openfin/desktop/demo/FDC3Example.java) in order to set up FDC3 communication for a proof of concept. I'm encountering an issue when trying to connect to the fdc3client using `fdc3Client.connect` ([line 185 in the example](https://github.com/openfin/java-example/blob/master/src/main/java/com/openfin/desktop/demo/FDC3Example.java#L185)). This never gets to either the `onSuccess` or the `onError`. I ran into the same issue when trying to run the example. I was later going through the docs [here](https://developers.openfin.co/docs/getting-started-fdc3), and I found the following wrt JS:\r\n\r\n\u003e Enabling FDC3 is as simple as adding it to your application manifest.\r\n\r\nTherefore, I created a quick test JS app, and added `\"fdc3Api\": true` to my manifest.\r\nNow my Java app works, since the FDC3 service has been launched and my Java app is able to connect to it.\r\n\r\nAs such, I am now looking for some way to enable the FDC3 service directly in the Java app. I have found references in the .NET API to enabling FDC3 ([here](http://cdn.openfin.co/docs/csharp/latest/OpenfinDesktop/html/1DF280C2.htm) and [here](http://cdn.openfin.co/docs/csharp/latest/OpenfinDesktop/html/6328E454.htm)), however have been unable to find anything of the sort for the Java API.\r\n\r\nAny help would be appreciated, thanks in advance.\r\n\r\n------------------------\r\n\r\nThe below is an excerpt of my code. Entry point is `launchOpenFin` at the bottom.\r\n\r\n```JAVA\r\n\r\n    private void setUpFDC3IntentListener(String intent, JTextField textField) {\r\n        fdc3Client.addIntentListener(intent, new IntentListener() {\r\n            @Override\r\n            public JSONObject onIntent(Context context) {\r\n                textField.setText(String.format(\"Received Intent: %s\", context.toString()));\r\n                context.put(\"comment\", \"Java rules\");\r\n                return context;\r\n            }\r\n        }, new AckListener() {\r\n            @Override\r\n            public void onSuccess(Ack ack) {\r\n                if (ack.isSuccessful()) {\r\n                    System.out.println(\"Registered intent listener\");\r\n                } else {\r\n                    System.out.println(String.format(\"Failed to register intent listener %s\", ack.getReason()));\r\n                }\r\n            }\r\n\r\n            @Override\r\n            public void onError(Ack ack) {\r\n                System.out.println(String.format(\"Failed to register intent listener %s\", ack.getReason()));\r\n            }\r\n        });\r\n    }\r\n    \r\n    void setUpFDC3() {\r\n        OpenFinJavaDemo.this.fdc3Client = FDC3Client.getInstance(OpenFinJavaDemo.this.desktopConnection);\r\n\r\n        OpenFinJavaDemo.this.fdc3Client.connect(new AckListener() {\r\n            @Override\r\n            public void onSuccess(Ack ack) {\r\n                System.out.println(String.format(\"Connected to FDC3 service\"));\r\n                setUpFDC3IntentListener(TOPIC, fdc3ReceiptTextField);\r\n            }\r\n\r\n            @Override\r\n            public void onError(Ack ack) {\r\n                System.out.println(String.format(\"Failed to Connect to FDC3 service\"));\r\n            }\r\n        });\r\n    }\r\n\r\n    void launchOpenFin() throws DesktopIOException, IOException, DesktopException {\r\n        RuntimeConfiguration runtimeConfiguration = new RuntimeConfiguration();\r\n        runtimeConfiguration.setRuntimeVersion(\"16.83.53.26\");\r\n        runtimeConfiguration.setAdditionalRuntimeArguments(\"--v=1\");\r\n        this.desktopConnection = new DesktopConnection(\"openfin-IAB-java-demo\");\r\n        this.desktopConnection.connect(runtimeConfiguration, new DesktopStateListener() {\r\n\r\n            @Override\r\n            public void onReady() {\r\n                OpenFinJavaDemo.this.openFinSystem = new OpenFinRuntime(OpenFinJavaDemo.this.desktopConnection);\r\n                try {\r\n                    openFinSystem.addEventListener(\"application-platform-api-ready\", e -\u003e {\r\n                        System.out.println(\"application-platform-api-ready: \" + e.getEventObject());\r\n                        String uuid = e.getEventObject().getString(\"uuid\");\r\n                        System.out.println(uuid);\r\n                    }, null);\r\n\r\n                    setUpFDC3();\r\n\r\n                } catch (DesktopException e) {\r\n                    e.printStackTrace();\r\n                }\r\n                SwingUtilities.invokeLater(() -\u003e {\r\n                    OpenFinJavaDemo.this.glassPane.setVisible(false);\r\n                });\r\n            }\r\n            .\r\n            .\r\n            .\r\n            .\r\n            .\r\n        });\r\n    }\r\n\r\n```","author":{"url":"https://github.com/mark-buhagiar","@type":"Person","name":"mark-buhagiar"},"datePublished":"2020-09-01T14:24:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/38/java-example/issues/38"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:16a1d48b-61eb-4adf-9c18-1642cc2e8e83
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC7E8:4A6C3:9B016:DDAB4:696F9EA3
html-safe-nonceb8e474eb5858884c5ae1b08668ec6b7f391d6f5d1de833b954c61337521af867
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0U4OjRBNkMzOjlCMDE2OkREQUI0OjY5NkY5RUEzIiwidmlzaXRvcl9pZCI6IjIwMDEyODA4MDI2NDQ1MzI4OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac52b933d68c20a0deaf87a515ffc925d841c01425758edcbb42537318f41c75ec
hovercard-subject-tagissue:690187804
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/openfin/java-example/38/issue_layout
twitter:imagehttps://opengraph.githubassets.com/667c6350e6c1f93c062da29eaab608a5f83122270f67c7428378544273a120a3/openfin/java-example/issues/38
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/667c6350e6c1f93c062da29eaab608a5f83122270f67c7428378544273a120a3/openfin/java-example/issues/38
og:image:altI'm following the example here (FDC3Example.java) in order to set up FDC3 communication for a proof of concept. I'm encountering an issue when trying to connect to the fdc3client using fdc3Client.c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemark-buhagiar
hostnamegithub.com
expected-hostnamegithub.com
None0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb
turbo-cache-controlno-preview
go-importgithub.com/openfin/java-example git https://github.com/openfin/java-example.git
octolytics-dimension-user_id1569661
octolytics-dimension-user_loginopenfin
octolytics-dimension-repository_id28981196
octolytics-dimension-repository_nwoopenfin/java-example
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id28981196
octolytics-dimension-repository_network_root_nwoopenfin/java-example
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release95f60616ce2765d1114fe6da4af405a58c6d26d2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/openfin/java-example/issues/38#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenfin%2Fjava-example%2Fissues%2F38
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenfin%2Fjava-example%2Fissues%2F38
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=openfin%2Fjava-example
Reloadhttps://patch-diff.githubusercontent.com/openfin/java-example/issues/38
Reloadhttps://patch-diff.githubusercontent.com/openfin/java-example/issues/38
Reloadhttps://patch-diff.githubusercontent.com/openfin/java-example/issues/38
openfin https://patch-diff.githubusercontent.com/openfin
java-examplehttps://patch-diff.githubusercontent.com/openfin/java-example
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fopenfin%2Fjava-example
Fork 156 https://patch-diff.githubusercontent.com/login?return_to=%2Fopenfin%2Fjava-example
Star 19 https://patch-diff.githubusercontent.com/login?return_to=%2Fopenfin%2Fjava-example
Code https://patch-diff.githubusercontent.com/openfin/java-example
Issues 1 https://patch-diff.githubusercontent.com/openfin/java-example/issues
Pull requests 4 https://patch-diff.githubusercontent.com/openfin/java-example/pulls
Actions https://patch-diff.githubusercontent.com/openfin/java-example/actions
Projects 0 https://patch-diff.githubusercontent.com/openfin/java-example/projects
Wiki https://patch-diff.githubusercontent.com/openfin/java-example/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/openfin/java-example/security
Please reload this pagehttps://patch-diff.githubusercontent.com/openfin/java-example/issues/38
Insights https://patch-diff.githubusercontent.com/openfin/java-example/pulse
Code https://patch-diff.githubusercontent.com/openfin/java-example
Issues https://patch-diff.githubusercontent.com/openfin/java-example/issues
Pull requests https://patch-diff.githubusercontent.com/openfin/java-example/pulls
Actions https://patch-diff.githubusercontent.com/openfin/java-example/actions
Projects https://patch-diff.githubusercontent.com/openfin/java-example/projects
Wiki https://patch-diff.githubusercontent.com/openfin/java-example/wiki
Security https://patch-diff.githubusercontent.com/openfin/java-example/security
Insights https://patch-diff.githubusercontent.com/openfin/java-example/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/openfin/java-example/issues/38
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/openfin/java-example/issues/38
Enabling FDC3 API within a Java Apphttps://patch-diff.githubusercontent.com/openfin/java-example/issues/38#top
https://github.com/mark-buhagiar
https://github.com/mark-buhagiar
mark-buhagiarhttps://github.com/mark-buhagiar
on Sep 1, 2020https://github.com/openfin/java-example/issues/38#issue-690187804
here (FDC3Example.java)https://github.com/openfin/java-example/blob/master/src/main/java/com/openfin/desktop/demo/FDC3Example.java
line 185 in the examplehttps://github.com/openfin/java-example/blob/master/src/main/java/com/openfin/desktop/demo/FDC3Example.java#L185
herehttps://developers.openfin.co/docs/getting-started-fdc3
herehttp://cdn.openfin.co/docs/csharp/latest/OpenfinDesktop/html/1DF280C2.htm
herehttp://cdn.openfin.co/docs/csharp/latest/OpenfinDesktop/html/6328E454.htm
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.