[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-20 Thread waynebaylor
JNDI names with the java:/ prefix are only visible from within the same JVM. 
you'll have to bind your persistence unit to a global JNDI name to get at it 
from outside the app. server

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4138211#4138211

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4138211
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How to use configurable information

2008-03-04 Thread waynebaylor
check out env-entry tag in ejb-jar.xml

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4134104#4134104

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134104
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How to Unit Test EJB 3.0

2008-03-02 Thread waynebaylor
i would say testing in-container components outside the container is more 
trouble than it's worth. 

instead of trying to set up a simulated container with JBoss Embedded or 
something else, try using JUnitEE or Cactus, etc and do the testing in your 
production environment, i.e. in the JBoss AS.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133502#4133502

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133502
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: JNDI problem

2008-03-02 Thread waynebaylor
have you tried a JNDI lookup?

Context ctx = new InitialContext();
  | MyRemoteIfc bean = 
(MyRemoteIfc)ctx.lookup(ear-name/jar-name/bean-name/remote);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133503#4133503

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133503
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: Using mod_jk in AS 4.2.1.GA

2008-03-01 Thread waynebaylor
I'm trying to set up mod_jk on JBoss AS 5.0.0 Beta4 and cannot find any 
reference to UseJK in any config files.

The jbossweb.deployer is under the deployers directory now, and doesn't have a 
jboss-service.xml in META-INF.

I looked at UsingMod_jk1.2WithJBoss on the wiki, but that's outdated too.

Is there current documentation for AS 5.x?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133477#4133477

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133477
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: What's the best unit testing approach for JBoss/EJB3

2008-02-12 Thread waynebaylor
there's JUnitEE for in-container unit testing. i'll also throw out Ivy for 
dependency management.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128975#4128975

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128975
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-25 Thread waynebaylor
try this:

  | t.begin();
  | //queues an update from stale uNode
  | //Node mergedNode = em.merge(fromNode);
  | 
  | //refresh reads back queued model
  | em.refresh(fromNode);
  | 
  | t.commit();
  | 

i commented out the call to merge (i think this is the call that's undoing your 
changes) and changed the argument to refresh (now it's fromNode instead of 
mergedNode).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4123664#4123664

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: 2 JBoss servers pointing to 1 database

2008-01-23 Thread waynebaylor
i haven't had any problem with multiple instances pointing to the same oracle 
install.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4122871#4122871

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-17 Thread waynebaylor
for the client side: what you see is the correct behavior.

 in your removeLink method, when you execute 
fromNode = em.merge(fromNode);
  | remoteNode = em.merge(remoteNode);
you're losing the references to the client's entities uNode and zNode. so when 
you call resynch(uNode) you're merging the old state over the changes that were 
just made.

for the server side: it's hard to tell what code is being executed, but the 
behavior will be different since the entities are managed.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121156#4121156

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-14 Thread waynebaylor
entities referenced by an application client (i.e. client outside of the 
container) are not managed. the exception you're getting is probably the 
container saying that the client wants to save data that is out of date. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119795#4119795

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119795
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-13 Thread waynebaylor
my guess is that the problem lies with the @Version field. you may be 
inadvertently incrementing the entity's version, so when you try to merge 
hibernate thinks the object is out of date. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119454#4119454

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119454
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB 3.0 w/vanilla deployment descriptor

2008-01-12 Thread waynebaylor
do you mean env-entry?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119390#4119390

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119390
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: What is wrong with my local ejb JNDI lookup code (or the

2008-01-12 Thread waynebaylor
in my experience you can't do the lookup without jboss.xml. 

as far as JNDI goes, jboss.xml is used to override the default JNDI name of 
beans (which is what you did), and like jboss-web.xml it can provide the 
mapping from ENV names to the global JNDI namespace. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119389#4119389

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119389
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: JNDI look up datasource problem

2008-01-10 Thread waynebaylor
try Oracle9iDriver instead of OracleDriver

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118883#4118883

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NoInitialContextException: Can't find prope

2008-01-04 Thread waynebaylor
just for kicks, you could pass InitialContext a Hashtable with your 
jndi.properties hardcoded. if that works, then you know it's something wrong 
with your classpath.

ps. you lookup string looks funny, by default it's [ear-name/]bean-name/local

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117256#4117256

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117256
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB3 with Eclipse

2008-01-04 Thread waynebaylor
@EJB in servlets doesn't work on Jboss 4.x. you'll have to do the JNDI lookup 
manually.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117257#4117257

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117257
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Test and Production deployment

2008-01-03 Thread waynebaylor
probably not possible in jar format. you might have a chance if you assigned 
different jndi names, but then you'd have different descriptors for each 
jar--which you want to avoid i'm guessing.

if you pack each jar into an ear and use jboss's default JNDI naming (which 
includes the name of the ear), then you could do it. so, if you had 
production.jar in prod.ear and test.jar in test.ear, then your client could use 
the following to lookup the beans:
1) Production: context.lookup(prod/MyBeanName/remote);
2) Test: context.lookup(test/MyBeanName/remote);

assuming they're remote interfaces of course.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4116907#4116907

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116907
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Unable to call Stateful Session bean

2008-01-03 Thread waynebaylor
are you doing something like:
UserStateful bean = (UserStateful)new 
InitialContext().lookup(UserStatefulBean/remote);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4116913#4116913

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Em.persist in loop

2007-12-29 Thread waynebaylor
you probably want to use merge instead of persist, but it's hard to tell what 
your code is doing. maybe post a more clear example.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4116045#4116045

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116045
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Still having problems with java:comp/env lookups

2007-12-26 Thread waynebaylor
ejb-jar.xml declares the ejbs and the jboss.xml maps them to their global jndi 
name.

ejb-jar.xml:
ejb-jar version=3.0 xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd;
  | 
  |  enterprise-beans
  | 
  | session
  | ejb-nameMyBean/ejb-name
  | localcom.example.MyLocal/local
  | ejb-classcom.example.MyBean/ejb-class
  | /session
  | 
  | /enterprise-beans
  | 
  | /ejb-jar

jboss.xml:
!DOCTYPE jboss PUBLIC
  |   -//JBoss//DTD JBOSS 3.2//EN
  |   http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd;
  | jboss
  |   enterprise-beans
  | session
  | ejb-nameMyBean/ejb-name
  | local-jndi-namecom.example.MyBean/local/local-jndi-name
  | /session
  |   /enterprise-beans
  | /jboss

with these you can use the following to look up the ejb:

MyLocal bean = (MyLocal)new InitialContext().lookup(com.example.MyBean/local);
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115552#4115552

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115552
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Newbie EJB 3 JNDI question

2007-12-26 Thread waynebaylor
the jmx-console doesn't display the contents of local ENCs for EJBs. it will 
display a WAR's ENC... Anyway, it doesn't matter how the app. server injects 
the bean. entries in the ENC are just local names for the EJBs' global JNDI 
names.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115559#4115559

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115559
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Recommended testing framework

2007-12-26 Thread waynebaylor
junitee.org is another option. you're solution sounds very similar to this 
project. the only drawback i've found so far is that it uses junit 3.8.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115564#4115564

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115564
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Dependency Injection @EJB in separate jar

2007-12-26 Thread waynebaylor
you could put them in an EAR

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115571#4115571

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115571
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How to implement a

2007-12-26 Thread waynebaylor
you could try using an HA Singleton to do the db work. this is a jboss specific 
solution, if that's acceptable.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115573#4115573

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115573
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: bets practics of an ejb app initialization

2007-12-22 Thread waynebaylor
i would suggest moving the code that needs to be initialized to a stateless 
session bean. that way you're mdbs won't have a long startup time. you could 
try configuring how many of those session beans are kept in the pool.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115198#4115198

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: Possible to advise EJB3 EntityBeans?

2007-12-02 Thread waynebaylor
i remember being able to add interceptors for classes annotated with a given 
annotation. in your case, a wildcard representing any class annotated with 
@Entity. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109686#4109686

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109686
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Problems accessing remote EJB

2007-12-01 Thread waynebaylor
you're not getting a name not found exception, or connection exception? is the 
ejb application deployed to both app. servers?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109590#4109590

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109590
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Stateful bean via RMI

2007-12-01 Thread waynebaylor
if you remove the stateful bean lookup does the code still generate an 
exception?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109591#4109591

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109591
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: java:com/env not working?

2007-12-01 Thread waynebaylor
yep, but you have to put it there first :) you can use ejb-jar.xml and 
jboss.xml to accomplish this. 

ejb-jar.xml defines the lookup string (the bold part): java:comp/env/ejb/MyBean

jboss.xml will map this lookup string the global jndi name of the bean.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109592#4109592

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109592
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Using J2SE App. as the Server for an EJB3-based App.

2007-11-30 Thread waynebaylor
does your client have access to all the classes your sending on its classpath?

as another alternative you could try using JCA to communicate with the j2se app.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109487#4109487

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109487
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-30 Thread waynebaylor
have you tried using @MappedSuperclass then?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109488#4109488

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109488
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: how to check entity bean state change ?

2007-11-30 Thread waynebaylor
hibernate does most (if not all) of that for you. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109485#4109485

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109485
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-27 Thread waynebaylor
hmm, i can imagine problems with the pk. for example, say you have Document 
with its own pk. when you create SalesInvoice it inherits the pk from Document. 
if you try to add an additional field to SalesInvoice's pk, hibernate will 
probably choke because it's not properly defined as a composite pk.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108248#4108248

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108248
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-25 Thread waynebaylor
one-to-many from the subclass to the root class? why not put the ID in the 
superclass?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107620#4107620

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107620
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Problem with resource-mapping

2007-11-23 Thread waynebaylor
i would make each bean that needs a datasourse use a local jndi lookup instead 
of a global one. since you only have one jar you will only need one ejb-jar.xml 
and one jboss.xml. 

doing it this way you can keep your bean code the same, for example all lookups 
could be:DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/MyDS);
then in the jboss.xml you can map the lookup to the proper data source on a per 
bean basis.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107430#4107430

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107430
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Problem instantiating an EntityManagerFactory

2007-11-22 Thread waynebaylor
two things:

1)not sure if it matters, but use java:/DefaultDS instead of java:DefaultDS in 
persistence.xml.

2)Persistence.create* is for use outside the container. try doing a JNDI lookup 
of the factory instead.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107159#4107159

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107159
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Problem with resource-mapping

2007-11-22 Thread waynebaylor
do you mean you want to use the same deployment descriptor for each bean, or 
that you want the beans to have the same code and just change the descriptor?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107186#4107186

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107186
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Persistent unit problem

2007-11-22 Thread waynebaylor
when you get the NameNotFoundException what name does it give? are you doing a 
JNDI lookup?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107181#4107181

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Driver problems with Persistence.XML

2007-11-21 Thread waynebaylor
no oracle-ds.xml in the deploy dir?

also, are you using ojdbc14.jar?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106893#4106893

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106893
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: ManyToMany relationship do not work properly

2007-11-21 Thread waynebaylor
no exceptions thrown?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106895#4106895

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106895
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Persistent unit problem

2007-11-20 Thread waynebaylor
try using just eCMDataSource in your persistence.xml instead of prefixing 
with java:/

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106388#4106388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Need Help! encounter strange Exception:not used by any E

2007-11-20 Thread waynebaylor
i've seen this error before when i use @EJB, but don't actually invoke any 
methods on the injected instance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106387#4106387

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106387
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: ManyToMany mapping with a JoinTable having extra fields

2007-11-16 Thread waynebaylor
i agree, you should try mapping the relationship to another entity: Client 
--RelationshipEntity--Employee

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105560#4105560

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105560
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-16 Thread waynebaylor
you can monitor your MBean from the jmx-console, or do you need to use an 
application client?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105602#4105602

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105602
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-16 Thread waynebaylor
well, i'm not a JMX guru, but i had to add the following to my run.conf to 
enable remote JMX in jboss:
#added for remote access to JMX (for example Hyperic)
  | JAVA_OPTS=$JAVA_OPTS 
-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
  | JAVA_OPTS=$JAVA_OPTS -Djboss.platform.mbeanserver
  | JAVA_OPTS=$JAVA_OPTS -Dcom.sun.management.jmxremote
  | 
  | JAVA_OPTS=$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false
  | JAVA_OPTS=$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false
  | JAVA_OPTS=$JAVA_OPTS -Dcom.sun.management.jmxremote.port=3099

with that i was able to use jconsole to connect to the JMX server in jboss 
(there's nothing special about the port, i think)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105634#4105634

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105634
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-16 Thread waynebaylor
sars are okay, but MBeans aren't stored in JNDI automatically like Session 
beans.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105545#4105545

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105545
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: generating an entity bean at runtime.

2007-11-15 Thread waynebaylor
i think that would be more trouble than it's worth. why do you want dynamically 
created entities?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105032#4105032

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105032
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: constraint violation issue.

2007-11-15 Thread waynebaylor
if your transaction ends after the return response; that extra SQL could be 
clean-up from hibernate or synchronization between the DB and the persistence 
context.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105025#4105025

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Getter for LAZY property gets called on every commit

2007-11-15 Thread waynebaylor
i just looked in Enterprise JavaBeans 3.0 (page 106) and it says the fetch 
attribute of @Basic is just a hint and the persistence provider is allowed to 
eagerly load the property. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105035#4105035

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105035
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Proxy-Class

2007-11-15 Thread waynebaylor
i know it doesn't matter in your case, but you only need the @Inheritance on 
the Project class...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105046#4105046

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105046
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-15 Thread waynebaylor
what's the exception you're getting? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105261#4105261

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105261
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB 3 Required to Override equals hashCode

2007-11-15 Thread waynebaylor
go for logical equality, so if your entity has three fields:

  | @Id
  | @GeneratedValue
  | private int id;
  | 
  | private String firstName;
  | 
  | private String lastName;

then equals/hashCode should be based on first/lastName and not id.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105293#4105293

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105293
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-15 Thread waynebaylor
okay, are you deploying a jar or an ear? if you're using a jar, the name is 
BeanName/local or BeanName/remote; if you're using an ear, then the name is 
EarName/BeanName/local or EarName/BeanName/remote.

and have you checked JNDIView too see if the name is there?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105292#4105292

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105292
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Utilizing Non-Default Datsource With JBOSS 4

2007-11-12 Thread waynebaylor
you'll need ojdbc14.jar in the server's lib dir  and change oracle-ds.xml to 
use Oracle9i type-mapping.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103687#4103687

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103687
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: constraint violation issue.

2007-11-12 Thread waynebaylor
my first guess would be that the delete logic is missing something that would 
clean up this foreign key relationship.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103702#4103702

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103702
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: java.io.InvalidClassException:

2007-11-12 Thread waynebaylor
are you using two different versions of  a class? perhaps a newer and an older 
jar?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103808#4103808

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103808
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Relationship Only Saving 1 Child Object

2007-11-10 Thread waynebaylor
since you're using the mappedBy attribute your code should look something like:
Order order = ...;
  | OrderLine ol1 = ...;
  | OrderLine ol2 = ...;
  | 
  | ol1.setParentOrder(order);
  | ol2.setParentOrder(order);
  | 
  | CollectionOrderLine orderLines = order.getOrderLines();
  | orderLines.add(ol1);
  | orderLines.add(ol2);
  | 
  | order.setOrderLines(orderLines);
  | 
  | -
  | //save code
  | em.persist(order); //or em.merge(order)
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103426#4103426

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103426
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB3 ejb-local-ref not working

2007-11-10 Thread waynebaylor
you will also need a jboss-web.xml to map ejb/UserBean to the global JNDI 
name for com.website.Statefull.UserBeanLocal.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103427#4103427

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103427
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment

2007-11-09 Thread waynebaylor
when you save the sfsb are you using the same attribute name for all clients?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103296#4103296

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103296
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Setting up an EJB Client

2007-11-08 Thread waynebaylor
JBOSS/client/jbossall-client.jar has most, if not all, of what you'll need.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102960#4102960

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Client can connect to Bean before jdbc is bound

2007-11-08 Thread waynebaylor
why would you run your clients before the server is up?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103095#4103095

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103095
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: EJB3: cannot be cast

2007-11-07 Thread waynebaylor
what are your jndi properties set to? are you using a jndi.properties file?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102721#4102721

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102721
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: constraint violation issue.

2007-11-06 Thread waynebaylor
are Session and SessionRate annotated as entities or are you doing everything 
manually with SQL?

try setting this property in your persistence.xml and then check the order in 
which hibernate is executing the SQL

property name=hibernate.show_sqltrue/property

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102203#4102203

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102203
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How can I acces an ejb from java:comp/env/ejb/ ?

2007-11-06 Thread waynebaylor
yes, you have to manually bind beans to the env. 

you can accomplish this by using ejb-jar.xml and jboss.xml descriptors. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102384#4102384

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102384
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: NetBeans 5.5 + EJB3 + JBoss 4.2 == ejbLink: not used by

2007-11-05 Thread waynebaylor
i usually get that exception when i'm using @EJB, but i never invoke any of the 
injected bean's methods. 

Does the code you posted match the code you deployed?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101836#4101836

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101836
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: TransactionRequiredException: EntityManager must be acce

2007-11-05 Thread waynebaylor
have you tried setting them all to REQUIRED? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101846#4101846

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: JBoss 4.2

2007-11-01 Thread waynebaylor
it will be easier to track if you include all your info and questions in a 
single post

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100945#4100945

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100945
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: How to invoke a EJB with user and password to validate t

2007-11-01 Thread waynebaylor
have you looked at the security related annotations?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101143#4101143

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Strange - EJB3 env-entry

2007-10-31 Thread waynebaylor
could you post the env-entry xml and field annotation you're using?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100632#4100632

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100632
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Need to configure JNDI

2007-10-31 Thread waynebaylor
i just copied cluster-service.xml to my deploy dir, you can get in the 
server/all/deploy dir. if you look about halfway down it you'll see the HA-JNDI 
specific stuff.

once that was deployed, i restarted jboss with something like
C:\ run.bat -b 0.0.0.0 -g myGroupName the -b tells jboss which ip to bind to 
(0.0.0.0 means 'i don't know just figure it out'). the -g tells jboss which 
cluster group to join, the default group is DefaultPartition ( you can replace 
myGroupName with whatever you want).

you can use an application client to test this. just use the following to get a 
Context and then perfom a lookup.
Properties p = new Properties();  
  | p.put(Context.INITIAL_CONTEXT_FACTORY,   
  |   org.jnp.interfaces.NamingContextFactory);  
  | p.put(Context.URL_PKG_PREFIXES, jboss.naming:org.jnp.interfaces);  
  | p.put(Context.PROVIDER_URL, localhost:1100); // HA-JNDI port.  
  | return new InitialContext(p); 

you can also pass a list of URLsp.put(Context.PROVIDER_URL, 
server1:1100,server2:1100,server3:1100,server4:1100);

instead of specifying the servers in the group, you can just specify the 
groupp.put(jnp.partitionName, myGroupName);

hope this helps

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100655#4100655

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100655
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Need to configure JNDI

2007-10-30 Thread waynebaylor
have a look at this: 
http://docs.jboss.com/jbossas/guides/clusteringguide/r2/en/html_single/

in the process of setting up clustering you will also enable HA-JNDI. when 
starting a jboss instance you can use the -g flag to specify a cluster group 
name. JNDI lookups are slightly different too, HA-JNDI uses port 1100 by 
default. If you are passing properties to a lookup context you will also have 
the option of using the cluster group name instead of an IP/port.

hope that helps 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100225#4100225

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100225
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Access a file resource from EJB3.0

2007-10-30 Thread waynebaylor
i believe if you want to access resources that exist outside of the app. 
server's container you should use JCA.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100339#4100339

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100339
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Need to configure JNDI

2007-10-27 Thread waynebaylor
have you tried setting up HA-JNDI?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099627#4099627

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099627
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: ArrayList Mapping

2007-10-25 Thread waynebaylor
try changing ArrayList to Collection so that it matches the return type of 
getVehicles()

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099103#4099103

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Problem with transaction

2007-10-24 Thread waynebaylor
have you checked out the NotSerializableException? did you forget to implement 
Serializable the class de.kirchedlau.ponte.ejb.entities.admin.UserGroup?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098627#4098627

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098627
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Good build.xml to build the ear file

2007-10-19 Thread waynebaylor
here's one i threw together, i'll leave it to you to figure out the dir 
structure that goes along with it :)

project name=web budget default= basedir=.
  | 
  | property name=ejb.src.dir value=ejb/src/
  | property name=web.src.dir value=web/src/
  | property name=entity.src.dir value=entity/src/
  | 
  | property name=ejb.meta-inf.dir value=ejb/META-INF/
  | property name=web.web-inf.dir value=web/WEB-INF/
  | property name=entity.meta-inf.dir value=entity/META-INF/
  | property name=meta-inf.dir value=META-INF/
  | 
  | property name=build.dir value=build/
  | property name=dist.dir value=${build.dir}/dist/
  | property name=classes.dir value=${build.dir}/classes/
  | property name=archives.dir value=${build.dir}/archives/
  | 
  | property name=jboss.deploy.dir value=C:\Program 
Files\jboss-4.2.0.GA\server\default\deploy/
  | property name=jboss.lib.dir value=C:\Program 
Files\jboss-4.2.0.GA\server\default\lib/
  | 
  | target name=compile
  | mkdir dir=${classes.dir}/
  | 
  | javac destdir=${classes.dir}
  | classpath
  | fileset dir=${jboss.lib.dir} 
includes=jboss-ejb3x.jar, ejb3-persistence.jar, servlet-api.jar/
  | /classpath
  | 
  | src path=${entity.src.dir}/
  | src path=${ejb.src.dir}/
  | src path=${web.src.dir}/
  | /javac
  | copy todir=${classes.dir} flatten=true
  | fileset dir=${web.src.dir} includes=**/*.jsp/
  | /copy
  | /target
  | 
  | target name=package
  | mkdir dir=${archives.dir}/
  | mkdir dir=${dist.dir}/
  | 
  | jar destfile=${archives.dir}/entity.jar  
basedir=${classes.dir} includes=**/model/*.class
  | metainf dir=${entity.meta-inf.dir} includes=*.xml/
  | /jar
  | 
  | jar destfile=${archives.dir}/ejb.jar 
basedir=${classes.dir} includes=**/eao/*.class
  | metainf dir=${ejb.meta-inf.dir} includes=*.xml/
  | /jar
  | 
  | war destfile=${archives.dir}/web.war 
webxml=${web.web-inf.dir}/web.xml
  | webinf dir=${web.web-inf.dir} includes=*.xml 
excludes=web.xml/
  | classes dir=${classes.dir} 
includes=**/servlet/*.class/
  | fileset dir=${classes.dir} includes=**/*.jsp/
  | /war
  | 
  | ear destfile=${dist.dir}/budget.ear basedir=${archives.dir}
  | appxml=${meta-inf.dir}/application.xml
  | metainf dir=${meta-inf.dir} includes=*.xml 
excludes=application.xml/
  | /ear
  | /target
  | 
  | target name=clean
  | delete dir=${build.dir}/
  | /target
  | 
  | target name=deploy
  | copy file=${dist.dir}/budget.ear 
todir=${jboss.deploy.dir}/
  | /target
  | /project

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097101#4097101

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException whe doing jndi lookup

2007-10-19 Thread waynebaylor
i don't know much about web logic, but i imagine JBoss has a different default 
JNDI naming convention. so, you could probably share the same java code, but 
you'd still have to provide an app. server specific deployment descriptor.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097092#4097092

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Problem with Entity Manager dependency injection in JBos

2007-10-19 Thread waynebaylor
have you tried putting the persistence.xml in the META-INF dir?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097090#4097090

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: comp not bound on redeploy

2007-10-19 Thread waynebaylor
is there a separate war or jar that depends on classes in the ear?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097089#4097089

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097089
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: JNDI lookup for object in remote server returns local ob

2007-10-16 Thread waynebaylor
just to make sure, when you deploy the ear to the Master Node it is also 
deployed to other Nodes right? 

i wouldn't be suprised if when the remote lookup fails the local context is 
then checked. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095795#4095795

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095795
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: comp not bound on redeploy

2007-10-16 Thread waynebaylor
looks like your app is not completely undeployed. are you redeploying something 
that has dependencies or are there things dependent on your app that aren't 
also being redeployed?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095796#4095796

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095796
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: JNDI lookup for object in remote server returns local ob

2007-10-15 Thread waynebaylor
where is the lookup code located? application client (with a main method), in a 
servlet/jsp, etc.?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095356#4095356

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095356
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException whe doing jndi lookup

2007-10-15 Thread waynebaylor
at first glance I would guess that using the class/interface name works in 
weblogic, but doesn't in Jboss because Jboss has a different default jndi 
naming scheme.

for example:
the bean public class MyBean implements MyLocal{...}
could be bound in Jboss two ways:
1) in a jar the name name would be: MyBean/local
2) in an ear the name would be ear-name/MyBean/local

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095458#4095458

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095458
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How to connect multiple databases at same time?

2007-10-12 Thread waynebaylor

  | persistence xmlns=http://java.sun.com/xml/ns/persistence;
  |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
  |version=1.0
  |
  | persistence-unit name=example transaction-type=JTA
  | 
  | providerorg.hibernate.ejb.HibernatePersistence/provider
  | jta-data-sourcejava:/OraDS/jta-data-source
  | 
  | classcom.example./class
  | 
  | properties
  | property name=hibernate.hbm2ddl.auto 
value=create-drop/
  | property name=hibernate.cache.provider_class 
value=org.hibernate.cache.NoCacheProvider/
  | property name=hibernate.dialect 
value=org.hibernate.dialect.Oracle9Dialect/
  | 
  | /properties
  | 
  | /persistence-unit
  |
  | /persistence
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094719#4094719

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094719
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: How do I make a lookup in an ear.

2007-10-11 Thread waynebaylor
the myapp1/abcbean/local and myapp2/abcbean/local are default jndi names. 
what you should do is override them with your own jndi names. that way you can 
name your ear whatever you want and still use the same jndi lookups. 

to override the default jndi names you can use the jboss annotations 
@LocalBinding  @RemoteBinding, or you can do it in the ejb-jar.xml  jboss.xml 
descriptors.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094186#4094186

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094186
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Context

2007-10-10 Thread waynebaylor
you have to explicitly put stuff in the ejb context. this is usually done 
with web.xml and jboss-web.xml. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093492#4093492

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093492
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: hajndi lookup

2007-10-09 Thread waynebaylor
that should work, but it will first query server1. so if server1 returns the 
queue, then server2 will not be queried.

the servers will be queried in the order they are listed.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093008#4093008

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093008
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: deleted entity passed to persist:

2007-10-09 Thread waynebaylor
looks like your deleting the ArticleSupplierPrice objects from the DB, but not 
removing ArticleSupplier's references to the objects.

maybe change your code to something like:

  | public void deleteSupplierDetails() 
  | {
  | if (this.artSuppPriceList != null) 
  | {
  | ArticleSupplierPrice[] prices = this.artSuppPriceList.toArray(new 
ArticleSupplierPrice[0]);
  | for(ArticleSupplierPrice price : prices)
  | {
  | if (price.getIsChecked() != null 
  |  price.getIsChecked().equals(Boolean.TRUE)) 
  | {
  | this.atrSuppPriceList.remove(price); //remove reference cuz 
you're deleting it
  | entityManager.remove(price);
  | }
  | }
  | 
  | entityManager.flush();
  | }
  | }   
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093108#4093108

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093108
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Problems using Extended Persistence Context

2007-10-04 Thread waynebaylor
you're client is using a new session bean for each lap. try changing it to:
...
  | // lap 2
  | peliculas = proceso.listarPeliculas();
  | showPeliculas(peliculas);
  | proceso.grabar();
  | System.out.println(Lap 2 OK!); 

each time you do a lookup for a stateful bean you'll get a new one.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091593#4091593

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091593
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Problems using Extended Persistence Context

2007-10-04 Thread waynebaylor
i think the @Remove annotation means that it will be called when the bean is 
removed from the pool, not that the bean will be removed with it's called.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091700#4091700

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091700
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Remote JNDI lookup best practise.

2007-10-03 Thread waynebaylor
you could cache the objects to minimize the number of lookups

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091315#4091315

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091315
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Working example por OneToMany cascade remove?

2007-10-03 Thread waynebaylor
the above post is a working example of cascading delete.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091317#4091317

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091317
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: hibernateexception: wrong column type in entity bean

2007-10-01 Thread waynebaylor
i've used the following in Oracle:

columnDefinition = varchar2(15 char) default ''

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090231#4090231

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090231
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: hibernateexception: wrong column type in entity bean

2007-09-29 Thread waynebaylor
look at @Column's columnDefinition attribute.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089985#4089985

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089985
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: PersistentObjectException - Help me !!!

2007-09-28 Thread waynebaylor
if an entity with that id already exists in the DB then you need to use merge() 
instead of persist().

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089913#4089913

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: NameNotFoundException in Web-Application for 'java:comp/

2007-09-26 Thread waynebaylor
have you tried the env-entry tag in web.xml?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=400#400

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=400
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Entities in seperate jar files

2007-09-25 Thread waynebaylor
you can deploy each separately or package them both in an EAR and deploy the 
EAR.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088553#4088553

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088553
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-24 Thread waynebaylor
i would use a DB to store the data, even if it's not long lasting. i don't 
think it's a good idea to modify session data explicity--i would recommend the 
first web-module (W1) query for the current data.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088109#4088109

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088109
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-23 Thread waynebaylor
do you mean share state for a given session?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4087702#4087702

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4087702
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: is this a bug in EJB?

2007-09-23 Thread waynebaylor
that is the default behavior. 

Hibernate is parsing attribute info from the getter/setter methods since you 
have declared @Id on the getId() method . is*() is considered a valid getter 
for boolean, thus the resulting DB column. you can mark the is*() method with 
@Transient and it will be ignored.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4087704#4087704

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4087704
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >