Java SDK for MTConnect

Posted By ricke9999 5/15/2013 4:35:22 PM
Rated 5 stars based on 1 vote.
Add to Favorites3
Author Message
ricke9999
 Posted 5/15/2013 4:35:22 PM
Prestige User

Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)

Group: Forum Members
Last Active: 7/1/2013 3:13:57 PM
Posts: 10, Visits: 64
Is anybody working on it?

I've started reading the documentation, but i don't want to start developing anything from scratch if somebody else has already started.

In Part 1, Section 3 'Architectural Overview' it says that "MTConnect® MUST use the HTTP protocol as the underlying transport for all messages."
Should I interpret that to mean that the agent can't use a wire protocol like AMQP for publishing events instead of polling?
will
 Posted 5/16/2013 12:32:17 AM
Supreme Being

Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)

Group: Forum Members
Last Active: 10/5/2015 12:03:20 AM
Posts: 37, Visits: 141
Nobody is currently working a java agent. At one point I was thinking about writing a scala agent and then we got into discussions with Oracle about collaborating on an agent jsr to spec an extensible platform for some of their sensor stuff. Short answer, never happened.

It would be great if you would work on this. To answer your question about http. It must support the http protocol as specified. That doesn't mean you can't support additional protocols like jms, stomp, etc. Additions are fine as long as it still supports the standard and represents the data in XML as required. So, you could also support a bson representation as long as it is not only bson and no XML.

Please feel free to ask me for guidance. The protocol is pretty simple to implement starting with something like netty, but there are some gotchas in the streaming area if you want to make it respond in near-real-time.

Best,
Will

ricke9999
 Posted 5/17/2013 3:46:03 AM
Prestige User

Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)

Group: Forum Members
Last Active: 7/1/2013 3:13:57 PM
Posts: 10, Visits: 64
Great!

I'm still reading through the documentation. I haven't even looked at the cppagent code yet.

This is a bit premature, but are there any preferences for how to build it? I really like Gradle but use Ant and Maven every day, any preference?

Rick
will
 Posted 5/17/2013 6:54:19 AM
Supreme Being

Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)

Group: Forum Members
Last Active: 10/5/2015 12:03:20 AM
Posts: 37, Visits: 141
Rick,

We currently use maven for our package management and builds, but we hate it. So, we're in the process of switching to SBT since we're a Scala shop.

Gradle looks a lot like rake and I would use rake over ant and maven any day. <opinion>Writing build and config management in XML or more generally using XML to do any "script"/"programming" tasks is wrong.</opinion> Don't want to make any enemies, but I like declarative build management systems that are as terse as possible.

Looks like Gradle also ties into maven repos, so all-in-all, I would agree with Gradle as being better.

Best,
Will
ricke9999
 Posted 5/17/2013 4:44:05 PM
Prestige User

Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)

Group: Forum Members
Last Active: 7/1/2013 3:13:57 PM
Posts: 10, Visits: 64
Maven certainly does evoke strong feelings. I don't *hate* it, but the honeymoon is long over. Gradle it is.

How do you handle communication for this sort of thing, email or the forum?

Rick
DaveEdstrom
 Posted 5/19/2013 7:55:17 AM
Respected User

Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)Respected User - (1,612 reputation)

Group: Administrators
Last Active: 5/19/2013 7:54:24 AM
Posts: 2, Visits: 29

Rick,

As a 23 year veteran of Sun Microsystems, I would LOVE to see a Java agent.
In terms of communication, it would be great if the conversation could stay on the MTConnect Forum so other folks could join in as well.


Regards,
--Dave


Dave Edstrom

President and Chairman -
MTConnect Institute
http://2.bp.blogspot.com/-JxBd4axvq18/TO8ltXkAWbI/AAAAAAAAAhI/iCArZMFDlFo/s320/MTConnectLogo.jpg
MTConnect:
Different Devices, Common Connection



will
 Posted 5/20/2013 9:18:32 AM
Supreme Being

Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)

Group: Forum Members
Last Active: 10/5/2015 12:03:20 AM
Posts: 37, Visits: 141
Rick,

I would prefer to keep the project info on github; then we can manage docs and issues directly associated with the code. I assumed you're already familiar with github, do you have an account? I can create a new project and make you a committer.

Will that work for you?

Best,
Will
will
 Posted 5/20/2013 9:28:22 AM
Supreme Being

Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)

Group: Forum Members
Last Active: 10/5/2015 12:03:20 AM
Posts: 37, Visits: 141
Created a new project: https://github.com/mtconnect/java_sdk.git

Tell me if you need help with github, otherwise, send me your github id.

- W
ricke9999
 Posted 5/20/2013 11:01:26 AM
Prestige User

Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)Prestige User - (3,569 reputation)

Group: Forum Members
Last Active: 7/1/2013 3:13:57 PM
Posts: 10, Visits: 64
Will,

I've got a GitHub account, but I've never really used it: redwards

I'm more familiar with Subversion but this will give me the excuse to finally crack open one of the Git books I bought.

Rick
will
 Posted 5/20/2013 11:42:21 AM
Supreme Being

Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)Supreme Being - (22,688 reputation)

Group: Forum Members
Last Active: 10/5/2015 12:03:20 AM
Posts: 37, Visits: 141
Rick,

I've added you to the Java SDK team and you now have push/pull access to the project. I can do a first commit if you like; it will get the project setup for you so all you need to do is pull and then commit & push your changes.

Once you use git you'll never be able to go back to subversion; not to mention you'll lose your fear of branching and merging – in git, it just works. We use it for all our code, both for my company and the standard. Github has some nice tools for small project management. You can use the issues and wiki for some basic documentation. If you drop a readme.md in the project textile format, it will show that on the main project page as well.

What IDE are you using?

Tell me if you need any help,
- Will

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top

Advertisements