Re: [JBoss-user] [EJB 3.0] - EJB 3.0 + eclipse + jboss

2006-02-22 Thread Dennis Gesker




lmierzej:

I'm not sure I can point you to a tutorial for that specific
combination. But I have a small project going  here using that mix. (A
few EJBs, some JSF pages and a few handlers going on 4.0.4RC1)

For the EJB3 portion http://trailblazer.demo.jboss.com/EJB3Trail/
should be your first stop.

In eclipse the biggest item is having an ant script that packages your
project correctly. Also its useful to add some 'user libraries' to the
environment so that the ide has access to the required jars. However, I
think there is a jboss-ide plugin that may do this for you.

Anyway, I'm far from an expert but if you post some specific questions
I'll try help.

Dennis

lmierzej wrote:

  Hi,

does anyone knows some tutorial concerning: 
ejb3.0 + eclipse + jboss?
Anything? Thanks for your help!

lmierzej

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925644#3925644

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925644


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
  





Re: [JBoss-user] CMP, 3.2.2RC4, auto-increment

2003-09-24 Thread Dennis Gesker
g.jboss.ejb.plugins.StatelessSessionInstancePool] Starting
2003-09-24 11:07:37,312 INFO  
[org.jboss.ejb.plugins.StatelessSessionInstancePool] Started
2003-09-24 11:07:37,314 INFO  [org.jboss.ejb.StatelessSessionContainer] 
Started
2003-09-24 11:07:37,317 INFO  [org.jboss.ejb.EjbModule] Started
2003-09-24 11:07:37,319 INFO  [org.jboss.ejb.EJBDeployer] Deployed: 
file:/usr/java/jboss-3.2.2RC4/server/default/deploy/AESOP_Server.jar
2003-09-24 11:07:39,099 INFO  [org.jboss.deployment.MainDeployer] 
Deployed package: 
file:/usr/java/jboss-3.2.2RC4/server/default/deploy/AESOP_Server.jar
2003-09-24 11:07:39,122 ERROR 
[org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: 
Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
 
Incompletely deployed packages:
 
MBeans waiting for classes:
 
MBeans waiting for other MBeans:
[ObjectName: jboss.j2ee:jndiName=aesop/company,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Generation 
only supported with single PK field]





Matthew Hixson wrote:

You'll want to put this at the top of your entity bean.

 * @jboss.entity-command
 * name="postgresql-fetch-seq"
and then for your primary key getter:

/**
 * @ejb.interface-method
 * @ejb.pk-field
 * @jboss.persistence
 * auto-increment="true"
 * @ejb.persistence
 * column-name="phone_id"
 *
 * @return Integer
 */
  public abstract Integer getPhoneId();
 -M@

On Tuesday, September 23, 2003, at 04:09  PM, Dennis Gesker wrote:

Could someone post a simple (complete) CMP example using Xdoclet & 
postgresql-fetch-seq where by the database auto-increments the PK? 
I've been struggleing with this for a few hours and can't seem to get 
my EJBs to behave properly using the correct combination of @ejb and 
@jboss tags.

JBoss 3.2.2RC4 from SF
Xdoclet 1.2b3
Ant 1.5.4


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>



   
   AESOP

   

  
  
 

 companyFacade

 com.alamon.aesop.ejb.companyFacadeRemoteHome
 com.alamon.aesop.ejb.companyFacadeRemote
 com.alamon.aesop.ejb.companyFacadeSession
 Stateless
 Container

 
ejb/companyLocal
Entity
com.alamon.aesop.ejb.companyLocalHome
com.alamon.aesop.ejb.companyLocal
company
 

  

 

  
  
 

 company

 com.alamon.aesop.ejb.companyRemoteHome
 com.alamon.aesop.ejb.companyRemote
 com.alamon.aesop.ejb.companyLocalHome
 com.alamon.aesop.ejb.companyLocal

 com.alamon.aesop.ejb.companyEJB
 Container
 java.lang.Object
 false
 2.x
 company
 

index
 
 

name
 
 index

	  
  

 

  
 

   

   

   
   
 

   
  
  
  
 
 companyFacade
 LocalHome
 create
 
 
  
   
   
  
  
  
 
 companyFacade
 Home
 create
 
 
  
   

   

   

   

   
   



http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>



   

 

  
 company
 aesop/company
 companyLocal




  

  
 companyFacade
 aesop/companyFacade



  

   

   
   



http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd";>


   
 java:/aesop/AesopDS
 PostgreSQL 7.2
 true
 true
   

   

 

  
 company
 true
 true
 company

 
index
index

			

 
name
name

VARCHAR
VARCHAR(30)



	
	


  

   




[JBoss-user] CMP, 3.2.2RC4, auto-increment

2003-09-23 Thread Dennis Gesker
Could someone post a simple (complete) CMP example using Xdoclet & 
postgresql-fetch-seq where by the database auto-increments the PK? I've 
been struggleing with this for a few hours and can't seem to get my EJBs 
to behave properly using the correct combination of @ejb and @jboss tags.

JBoss 3.2.2RC4 from SF
Xdoclet 1.2b3
Ant 1.5.4


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user