You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Mark Combellack (JIRA)" <tu...@ws.apache.org> on 2007/07/20 14:42:06 UTC
[jira] Created: (TUSCANY-1467) EJB Binding does not support binding
to EJB3 servers
EJB Binding does not support binding to EJB3 servers
----------------------------------------------------
Key: TUSCANY-1467
URL: https://issues.apache.org/jira/browse/TUSCANY-1467
Project: Tuscany
Issue Type: Bug
Components: Java SCA EJB Binding Extension
Affects Versions: Java-SCA-Next
Environment: Check out of Tuscany head
Using JBoss 5 as EJB 3 Server
Reporter: Mark Combellack
Fix For: Java-SCA-Next
The current EJB binding does not appear to work with EJB 3 servers such as JBoss.
The current implementation assumes that it is talking to an EJB 2 server and attempts to use the EJB Home interface to create an instance of the EJB. However, in EJB3, there is no EJB Home interface. The object returned by the lookup is actually an instance of the remote interface of the EJB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Commented: (TUSCANY-1467) EJB Binding does not support
binding to EJB3 servers
Posted by "Mark Combellack (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514192 ]
Mark Combellack commented on TUSCANY-1467:
------------------------------------------
The code in question is the binding.ejb project in the class org.apache.tuscany.sca.binding.ejb.util.EJBObjectFactory.
The createStub() method does the lookup (code shown below)
EJBLocator locator = namingEndpoint.getLocator();
Object homeObject = locator.locate(namingEndpoint.getJndiName());
/*
* The type of the object returned from the lookup is as follows: If the
* generated stub exists on the classpath, it's an instance of that
* type, otherwise, "org.omg.stub.java.rmi._Remote_Stub" or
* "org.omg.stub.javax.ejb._EJBHome_Stub"
*/
Object stub = getEJBStub(homeObject);
// Cache dynamic stub only
return stub;
For EJB3, the object returned by locator.locate() will be an instance of the EJB remote interface.
The above code calls the getEJBStub() method that attempts to use the EJBHome interface to create an instance of the EJB.
If the code in getEJBStub() is updated to do a check to see whether the homeObject is actually an instance of the EJB Remote interface then the binding will work for both EJB2 and EJB3 servers.
> EJB Binding does not support binding to EJB3 servers
> ----------------------------------------------------
>
> Key: TUSCANY-1467
> URL: https://issues.apache.org/jira/browse/TUSCANY-1467
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA EJB Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Check out of Tuscany head
> Using JBoss 5 as EJB 3 Server
> Reporter: Mark Combellack
> Fix For: Java-SCA-Next
>
>
> The current EJB binding does not appear to work with EJB 3 servers such as JBoss.
> The current implementation assumes that it is talking to an EJB 2 server and attempts to use the EJB Home interface to create an instance of the EJB. However, in EJB3, there is no EJB Home interface. The object returned by the lookup is actually an instance of the remote interface of the EJB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Assigned: (TUSCANY-1467) EJB Binding does not support
binding to EJB3 servers
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder reassigned TUSCANY-1467:
----------------------------------
Assignee: ant elder
> EJB Binding does not support binding to EJB3 servers
> ----------------------------------------------------
>
> Key: TUSCANY-1467
> URL: https://issues.apache.org/jira/browse/TUSCANY-1467
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA EJB Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Check out of Tuscany head
> Using JBoss 5 as EJB 3 Server
> Reporter: Mark Combellack
> Assignee: ant elder
> Fix For: Java-SCA-Next
>
> Attachments: EJB3Binding.patch
>
>
> The current EJB binding does not appear to work with EJB 3 servers such as JBoss.
> The current implementation assumes that it is talking to an EJB 2 server and attempts to use the EJB Home interface to create an instance of the EJB. However, in EJB3, there is no EJB Home interface. The object returned by the lookup is actually an instance of the remote interface of the EJB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1467) EJB Binding does not support binding
to EJB3 servers
Posted by "Mark Combellack (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Combellack updated TUSCANY-1467:
-------------------------------------
Patch Info: [Patch Available]
> EJB Binding does not support binding to EJB3 servers
> ----------------------------------------------------
>
> Key: TUSCANY-1467
> URL: https://issues.apache.org/jira/browse/TUSCANY-1467
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA EJB Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Check out of Tuscany head
> Using JBoss 5 as EJB 3 Server
> Reporter: Mark Combellack
> Fix For: Java-SCA-Next
>
> Attachments: EJB3Binding.patch
>
>
> The current EJB binding does not appear to work with EJB 3 servers such as JBoss.
> The current implementation assumes that it is talking to an EJB 2 server and attempts to use the EJB Home interface to create an instance of the EJB. However, in EJB3, there is no EJB Home interface. The object returned by the lookup is actually an instance of the remote interface of the EJB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1467) EJB Binding does not support binding
to EJB3 servers
Posted by "Mark Combellack (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Combellack updated TUSCANY-1467:
-------------------------------------
Attachment: EJB3Binding.patch
The following patch should allow the EJB Binding to work with both EJB2 and EJB3 servers
> EJB Binding does not support binding to EJB3 servers
> ----------------------------------------------------
>
> Key: TUSCANY-1467
> URL: https://issues.apache.org/jira/browse/TUSCANY-1467
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA EJB Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Check out of Tuscany head
> Using JBoss 5 as EJB 3 Server
> Reporter: Mark Combellack
> Fix For: Java-SCA-Next
>
> Attachments: EJB3Binding.patch
>
>
> The current EJB binding does not appear to work with EJB 3 servers such as JBoss.
> The current implementation assumes that it is talking to an EJB 2 server and attempts to use the EJB Home interface to create an instance of the EJB. However, in EJB3, there is no EJB Home interface. The object returned by the lookup is actually an instance of the remote interface of the EJB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Closed: (TUSCANY-1467) EJB Binding does not support binding
to EJB3 servers
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder closed TUSCANY-1467.
------------------------------
Resolution: Fixed
Thats fantastic, thanks a ton. Patch applied.
> EJB Binding does not support binding to EJB3 servers
> ----------------------------------------------------
>
> Key: TUSCANY-1467
> URL: https://issues.apache.org/jira/browse/TUSCANY-1467
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA EJB Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Check out of Tuscany head
> Using JBoss 5 as EJB 3 Server
> Reporter: Mark Combellack
> Assignee: ant elder
> Fix For: Java-SCA-Next
>
> Attachments: EJB3Binding.patch
>
>
> The current EJB binding does not appear to work with EJB 3 servers such as JBoss.
> The current implementation assumes that it is talking to an EJB 2 server and attempts to use the EJB Home interface to create an instance of the EJB. However, in EJB3, there is no EJB Home interface. The object returned by the lookup is actually an instance of the remote interface of the EJB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org