[ 
https://issues.apache.org/jira/browse/MAHOUT-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015452#comment-13015452
 ] 

Manuel Blechschmidt commented on MAHOUT-650:
--------------------------------------------

Hello Sebastian,
actually there is nothing new about the Java EE 6 in particulat the EJB 3.1 
model. It is still like in EJB 2.1

So I have my SemRecSysDataModelBean and this bean has 2 Interfaces

1. SemRecSysDataModelLocal
2. SemRecSysDataModelRemote

The local one is used when communicating with another bean in the same VM for 
example RecommenderServiceBean. The Remote one is used when communicating with 
a remote machine. Unfortunately my test cases are running in an own virtual 
machine, which means that they must use the SemRecSysDataModelRemote interface. 
Internally this SemRecSysDataModelRemote will serialize the return type into an 
CDR (Common Data Representation) and write it to the wire. On the other side 
(in the test case) it can be unserialized.

The big advantage is that if I want I could also provide den SemRecSysDataModel 
as WebService.

/Manuel

> java.io.Serializable should be implemented by 
> org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-650
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-650
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Collaborative Filtering
>    Affects Versions: 0.4
>         Environment: Mac OS X 10.6, Java EE 6, EJB 3.1, Glassfish 3.0.1
>            Reporter: Manuel Blechschmidt
>            Assignee: Sean Owen
>            Priority: Minor
>              Labels: datamodel, ejb, taste
>         Attachments: PatchLongPrimitiveArrayIteratorSerializable.patch, 
> RecommenderServices.png, SemRecSysDataModelBean.java, 
> SemRecSysDataModelTest.java, SemanticRecommenderDataModel.pdf
>
>
> I am using Mahout in a Java EE 6 application. I implemented a DataModel as an 
> EJB 3.1 Singelton Service Bean. I wanted to write some test cases but 
> unfortunately some of the classes of Taste are not serializable.
> At the moment LongPrimitiveArrayIterator stops my test cases from working.
> See attached patch, files and images for details

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to