Re: Sequence problem.

John Woolsey <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
I'd say it's probably a bug. I noticed that SequenceBlock and 
SequenceSession both work fine. The jndiprefix is preset in the example 
so I was using it already.

						- bfn - JAW

public interface SequenceLocalHome
    extends javax.ejb.EJBLocalHome
{
    public static final String COMP_NAME="java:comp/env/ejb/Sequence";
    public static final String 
JNDI_NAME="middlegen.sequencegenerator.ejb.SequenceLocalHome";

    public honour.interfaces.SequenceLocal create(java.lang.String param1)
       throws javax.ejb.CreateException;

    public honour.interfaces.SequenceLocal 
findByPrimaryKey(java.lang.String pk)
       throws javax.ejb.FinderException;

}


Eivind Waaler wrote:
> Have you tried the jndiprefix attribute on the sequenceblock subtask of
> the cmp20 task?
> 
> http://boss.bekk.no/boss/middlegen/plugins/cmp20.html#sequenceblock
> 
> Seems like the problem is that both sequence beans get the same jndi name.
> Might be a bug if the jndiprefix attribute doesn't solve it..
> 
> .eivind
> 
> On Thu, 1 Jan 2004, John Woolsey wrote:
> 
> 
>>I just got further, but now the error is more obvious. It is claiming I
>>have created two Sequence objects of the same name.
>>
>>javax.management.InstanceAlreadyExistsException:
>>jboss.j2ee:jndiName=middlegen.sequencegenerator.ejb.SequenceLocalHome,service=EJB
>>already registered.
>>
>>Is there any way to fix the problem? I orginally tried to use the
>>autoincrement feature of mysql but then middlegen didn't seem to work at
>>all. Suggestions would be appreciated.
>>
>>BTW Middlegen is a great product. It really took the work out of CMP.
>>
>>							- bfn - JAW
>>
>>
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: IBM Linux Tutorials.
>>Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
>>Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>>_______________________________________________
>>middlegen-user mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/middlegen-user
>>
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 
> 



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.