[jboss-user] [EJB/JBoss] - Re: Accessing serial ports from jboss

One_Special_User do-not-reply at jboss.com
Fri Aug 4 11:09:55 EDT 2006


OK, this post is a little old :-)
Have a look at JNI (Java Native Interfaces), since you want do do some platform-specific stuff.
Write a Shared Library (*.so / *.dll) with apropriate Method-Names and use it:
public class XY {
  | 
  |     static {
  |         System.loadLibrary( "MyLibrary" );
  |     }
  | 
  |     public native byte[] getBytes() throws SomeException;
  | 
  | }

But I'm not sure if the specs allow an EJB to load Libraries... if not - write a standalone - app which subscribes to your Queue/Topic.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963219#3963219

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963219



More information about the jboss-user mailing list