[ 
https://issues.apache.org/jira/browse/TUSCANY-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623839#action_12623839
 ] 

Raymond Feng commented on TUSCANY-2468:
---------------------------------------

Hi,

You can try this approach:

1) Create a tuscany web application (Copy from 
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/calculator-webapp)
2) In the jsp, use JNDI to look up UserTransaction and call 
UserTransaction.begin() to start a global transaction
3) Develop an EJB (Copy from 
https://svn.apache.org/repos/asf/tuscany/java/sca/tutorials/store/catalog-ejb) 
and print out the current transaction
4) Use Tuscany corba binding to talk to the EJB

Look at the following pom.xml to automate the maven build: 
http://svn.apache.org/repos/asf/tuscany/java/sca/itest/pom.xml (see the 
geronimo and webapp profile)

The build will:
1) Start geronimo
2) Deploy the EJB
3) Deploy the web app
4) Connect to the JSP to test
5) Shutdown geronimo

Similar approach can apply to security testing

> Need a new corba-host-jee module
> --------------------------------
>
>                 Key: TUSCANY-2468
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2468
>             Project: Tuscany
>          Issue Type: Wish
>          Components: Java SCA Misc Binding Extensions
>            Reporter: Jean-Sebastien Delfino
>             Fix For: Java-SCA-Next
>
>         Attachments: host-corba-jee-jira-2468-10-july.patch
>
>
> In addition to host-corba-jdk, I'd like to have a host-corba-jee module for 
> use in a JEE environment.
> That module should just get the ORB to use from JNDI, as follows:
> javax.naming.Context ctx = new javax.naming.InitialContext();
> org.omg.CORBA.ORB orb = 
> (org.omg.CORBA.ORB)javax.rmi.PortableRemoteObject.narrow(ctx.lookup("java:comp/ORB"),
>  org.omg.CORBA.ORB.class);
> This should work on all JEE servers, including JEE webapp environments.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to