Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Fortran 2003 C Interop Question

807575Aug 22 2006 — edited Oct 10 2006
This is for someone in Sun's Fortran compiler group.

I just downloaded the Aug. build 2 of Sun Studio Express for Linux and was playing around with the FORTRAN/C Interoperability features. I've encountered a problem with the BIND(C) suffix that I think is a violation of the standard or at least the DRAFT standard on j3-fortran. sunf95 requires me to put a comma between the closing paren of the subroutine argument list and the BIND(C) suffix.

Example

Subroutine csub (ni, a), BIND(C)

The draft standard does not show that the comma is required (I don't think it is).
g95 doesn't allow the comma. I think Cray's X1 compiler makes it optional. So who is following the actual standard? Sun, g95, or Cray.

Also, when will the IMPORT statement appear in the Sun Studio compilers.

Thanks

Comments

450482
Hi
This constructor for Locator is if you are trying to invoke BPEL process on the same host as where orabpel application is deployed and you define your application to be child application of orabpel application. If you'd like to connect to remote host to invoke BPEL, try public Locator(java.lang.String domainId,
java.lang.String password,
java.lang.String ipAddress,
java.util.Hashtable pInitialContextProperties)

Hope this helps,
^_^
432354
Hi,

Thanks fro your answer. But it does not work ...
My demo runs on my laptop (SOA10.1.3 DP / JDeveloper 10.1.3)

This is my code:
public void test() {
String xml = "<name xmlns=\"http://samples.otn.com/helloworld\">" + "test" + "</name>";

Hashtable jndi = null;
jndi = new Hashtable();

// Change the PROVIDER_URL to your BPEL PM host...
jndi.put(Context.PROVIDER_URL, "ormi://localhost/orabpel");
jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
jndi.put(Context.SECURITY_PRINCIPAL, "admin");
jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
jndi.put("dedicated.connection", "true");


Locator locator = null;
try {
locator = new Locator("default","bpel", jndi);
} catch (ServerException e) {
e.printStackTrace();
}
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );

// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );


System.out.println(xml);
nm.addPart("payload" , xml );


try {
deliveryService.post("HelloWorld", "initiate", nm);
} catch (ServerException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
}

and that's my error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
at docsdemo.ui.XMLMessageHelper.test(XMLMessageHelper.java:62)
at docsdemo.ui.tests.Tests.<init>(Tests.java:15)
at docsdemo.ui.tests.Tests.main(Tests.java:20)

I don't understand because I created a simple JSP to invoke helloWorld process (same code), it's works !!

Any suggestion?
Cyryl
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 6 2006
Added on Aug 22 2006
5 comments
175 views