[JBoss-user] [EJB/JBoss] - CMP not playing nicely with tU_table on MS SQL Server

2006-05-26 Thread wcydaip
I have a Customer table with a relationship to an EyeColorCode table.  The 
eyeColorCode is maintained on inserts and updates through Sql Server triggers.  
Both triggers do basically the same check.

Inserts behave as expected but updates aren't working.

However, if I remove the tU_Customer, the update executes successfully?  This 
is, unfortunately, not an option.

I was wondering if there is a setting that I need to flip in order for this to 
complete successfully?

The error states:

  | org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[
  | ...
  | Update failed. Expected one affected row: rowsAffected=0, id=tableid
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947024


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: CMP not playing nicely with tU_table on MS SQL Server

2006-05-26 Thread wcydaip
Looks to be the fault of the trigger.  Had some wild variation of sql.  Sorry 
for the claim.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947033


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: StatefulSession caching ejb references

2006-04-20 Thread wcydaip
Looks to be fixed at least I hope.  The packaging needs to be broken down for 
specific functions and these functions must be self contained.  The cross 
reference between the two ejb.jar files was mixing up the sfsb ejb reference.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938488


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - StatefulSession caching ejb references

2006-04-19 Thread wcydaip
Hi,

I have a stateful session bean which holds references to various ejb's and 
performs queries against them.  When I deploy the app several times one set of 
ejb's stop working.  The only way to get them to work again, randomly, is to 
change the problem ejb's, so as, I guess, to give them a different footprint.

What's the cause?

My deployment looks like the following:
app.ear
-jar1-ejb.jar
-jar1-ejb-client.jar
-jar2-ejb.jar
-jar2-ejb-client.jar
-app.war

app.war
-war/web-inf/lib/
--jar1-ejb-client.jar
--jar2-ejb-client.jar

jar2-ejb.jar's ejb-jar.xml references classes in jar1-ejb.jar, like so:


  | ejb-relation
  |  ejb-relation-nametest-site-test-price-lists/ejb-relation-name
  |  ejb-relationship-role
  | 
  | 
ejb-relationship-role-nametest-has-site-test-price-list/ejb-relationship-role-name

  | multiplicityOne/multiplicity
  | relationship-role-source 
  |ejb-nameTestEJB/ejb-name - jar2-ejb.jar
  | /relationship-role-source
  | cmr-field 
  |cmr-field-namesiteTestPriceList/cmr-field-name
  |cmr-field-typejava.util.Collection/cmr-field-type
   
  | /cmr-field
  |  /ejb-relationship-role
  |   ejb-relationship-role  
  | 
  | 
ejb-relationship-role-namesite-test-price-list-has-test/ejb-relationship-role-name
  | multiplicityMany/multiplicity
  | relationship-role-source 
  |ejb-nameSiteTestPriceListEJB/ejb-name - jar1-ejb.jar 
  | /relationship-role-source
  | cmr-field 
  |cmr-field-nametestId/cmr-field-name
  | /cmr-field
  |  /ejb-relationship-role  
  |   /ejb-relation
  | 

Checking the jmx-concolse I see that since the SiteTestPriceListEJB is listed 
in both jar's ejb-jar.xml file it is deployed twice...

I wonder if that might be causing my grief?

Thanks for any suggestions!

Graham

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938248


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - disable exploded archive deployments?

2006-03-02 Thread wcydaip
Hi,

Is it possible to deploy an app without the archive being exploded?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927559


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - classloading insanity

2006-02-17 Thread wcydaip
i know you guys are tired of the classloading woes, but, here's another one 
which i'm sure it's just because i'm missing something.

began using hibernate3 with jboss4.0.2...

using the default settings for isolated classloading

created a hibernate.cfg.xml because i'm still not quite sure how to get 
hibernate running using the mbean functionalities this resides in the root 
of the .ear

enclosed all xml config and corresponding class files in one main_jar and 
stuffed it into the .ear

i tried putting the hibernate3.jar file into the .ear file with an entry in the 
application.xml, however, jboss never finds it or ignores it or complains that 
there're multiple classloaders.

i also tried the same above approach, but, this time using a jboss-app.xml, 
but, to no avail.

then i tried putting it in the .ear, but, this time with a Manifest entry 
this time, if i'm not mistaken, a multiple class loader complaint and a could 
not find the hibernate3.jar - looking for it in the jboss/server/default/deploy 
- does it exist?  which seemed kinda odd

so, i removed it from the .ear and put it in the server/default/deploy, still, 
noclassdeffound - SecondPass

and then, i just removed it... same thing - no SecondPass

finally, i put it in the /server/default/lib, and it finally picked the classes 
up?

what am i doing wrong?  why can't i isolate classes within my own deployment?  
and, if you could, how can i deploy the cfg file as an mbean.

i've read and re-read many of the jboss wiki entries both for hibernate and 
classloading... i've scoured hibernate's user docs and forum entries  if 
possible, please try and explain it in your own terms.

many thanks

graham

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3924699


---
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=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - JBossTransactionRolledbackLocalException

2005-07-14 Thread wcydaip
Here's the story:

I have a Session bean which acts upon two different databases.

The session bean first updates db1 through an entity bean.

The session then calls upon a different SLSB which in turn updates
db2 through another entity bean.

However, do to some db constraints, the update to db2 continuously fails and 
the transaction on db1 is allowed to commit.

org.jboss.tm.JBossTransactionRolledbackLocalException: null; CausedByException 
is:
Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=localhost/40, BranchQual=, localId=40] status=STATUS_NO_TRANSACTION; - 
nested throwable: (javax.ejb.EJBException: null; CausedByException is:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]UPDATE statement 
conflicted with COLUMN REFERENCE constraint

I have set restrictions whithin the ejb-jar.xml which I hoped would alleviate 
inconsistent data:

  container-transaction
-method-
  ejb-nameDB1Administration/ejb-name
  method-nameupdateRoleByApplication/method-name
-/method-
trans-attributeRequiresNew/trans-attribute
  /container-transaction

  container-transaction
-method-
  ejb-nameDB2Administration/ejb-name
  method-nameupdateSecurityGroup/method-name
-/method-
   trans-attributeRequired/trans-attribute
  /container-transaction 

Any clues?  The status=STATUS_NO_TRANSACTION has me a little nervous.  A 
SQLTrace shows both calls to be rolled back, but, the 1st isn't.

SET IMPLICIT_TRANSACTIONS ON
exec sp_cursoropen @P1 output, N'SELECT Security
exec sp_executesql N'UPDATE Role SET 
exec sp_executesql N'UPDATE User SET
IF @@TRANCOUNT  0 ROLLBACK TRAN
IF @@TRANCOUNT  0 ROLLBACK TRAN
SET IMPLICIT_TRANSACTIONS OFF

Thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884929


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: fully confused

2005-06-16 Thread wcydaip
thanks.

i just got it to work.  and by the looks of it the structure really pays off.

402 rocks.  the jsp initial deployment rules for testing.

thanks again

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881821


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: TransactionException but no Rollback ?!?!

2005-06-15 Thread wcydaip
Try adding transaction-control to the beans using Supports.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881628


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ClassCastException during ContextInitialization using St

2005-06-15 Thread wcydaip
So, I've been patiently working through this and am getting closer to solving 
the class loading issues, but, still have a few quirks to work out.

I have read the JBossClassLoadingUseCases and found 
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration to be very 
useful.

Based on the article ClassLoadingConfiguration I have been able to Isolate my 
classes and deploy my application, however, in doing so I have lost the ability 
to interact with another .ear.

My application depends on a security.ear which holds common classes in a .jar 
file and its own ejb classes.

When I deploy my app with the security.jar file embedded in the web-inf/lib I 
get a ClassCastException.

When I deploy without the security.jar file I get a ClassNotFoundException.

I'm at a loss for what to do next...

Any suggestions appreciated.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881673


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - fully confused

2005-06-15 Thread wcydaip
now i'm really lost.

i have a web.war and an ejb.jar packaged in an ear.  everything had been 
working great until the switch to the latest class loaders.

i've been struggling with ClassCastException's and NoClassDefFoundError ever 
since.

I understand that if there are two different classes found with the same name 
then the server's going to throw a CCE.  But what I don't get is how to isolate 
the classes internally to alleviate the NCDFE

I have one object that uses a ValueObject and this object passes the 
ValueObject to an EJB.  Well, when I deploy my application on JBoss using an 
out of the box setup on 4.0.2 I get the NoClassDefFoundError.

I need to use the class in both the web arch and the ejb archive.  Where am I 
going wrong.

Grazi

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881694


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - ClassCastException during ContextInitialization using Statel

2005-06-03 Thread wcydaip
I recently upgraded to jboss-4.0.2 unsucessfully.  The problem appears to be 
during the context initialization.  


  | =DEBUG [main] (com.systemadmin.util.ContextListener:51) - 
contextInitialized(ServletContextEvent() called!)
  | =DEBUG [main] (com.systemadmin.util.ContextListener:58) - entering 
setApplicationsAndRoles(ApplicationRoleModel)
  | =ERROR [main] 
(org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/systemadmin]:3673)
 - Exception sending context initialized event to listener instance of class 
com.systemadmin.util.ContextListener
  | java.lang.ClassCastException
  | at 
com.systemadmin.ejb.AdministrationUtil.getLocalHome(AdministrationUtil.java:55)
  | at 
com.systemadmin.delegate.AdministrationDelegate.getAdministrationLocalEJB(AdministrationDelegate.java:215)
  | at 
com.systemadmin.delegate.AdministrationDelegate.findApplicationsAndRoles(AdministrationDelegate.java:68)
  | at 
com.systemadmin.util.ContextListener.setApplications(ContextListener.java:66)
  | at 
com.systemadmin.util.ContextListener.contextInitialized(ContextListener.java:54)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | 

Here's the code:

  | /* (non-Javadoc)
  |  * @see 
javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)
  |  */
  | public void contextInitialized(ServletContextEvent servletContextEvent) 
{
  | logger.debug(contextInitialized(ServletContextEvent() 
called!));
  | context = 
(ServletContext)servletContextEvent.getServletContext();
  | ApplicationRoleModel model = new ApplicationRoleModel();
  | setApplications(model);
  | context.setAttribute(Constants.MODEL_APPLICATION_ROLE,model);   

  | }
  | private void setApplications(ApplicationRoleModel model){
  | logger.debug(entering 
setApplicationsAndRoles(ApplicationRoleModel));
  | /*
  |  * 
  |  * Gets the available applications from session bean 
administration
  |  */ 
  | AdministrationDelegate delegate = new AdministrationDelegate();
  | ArrayList appsRoles;
  | try{
  | appsRoles = delegate.findApplicationsAndRoles();
  | //logger.debug(appsandroles --  +appsRoles.size());
  | model.setApplications(appsRoles);
  | }catch(ApplicationException ex){
  | logger.debug(Failed initializing application roles 
data: +ex);
  | }
  | logger.debug(leaving 
setApplicationsAndRoles(ApplicationRoleModel));
  | }   
  | 

  | public ArrayList findApplicationsAndRoles() throws ApplicationException{
  | try{
  | AdministrationLocal local = getAdministrationLocalEJB();
  | return local.findApplicationsAndRoles();
  | }catch(SystemException ex){
  | if(ex.isRecoverable()){
  | throw new 
ApplicationException(ApplicationException.RECOVERABLE_SYSTEM_EXCEPTION,ex.getMessage());
  | }else{
  | throw new 
ApplicationException(ApplicationException.UNRECOVERABLE_SYSTEM_EXCEPTION,ex.getMessage());
  | }
  | }
  | }
  | /**
  |  * getAdministrationLocalEJB
  |  * @return
  |  * @throws ApplicationException
  |  */
  | private AdministrationLocal getAdministrationLocalEJB() throws 
ApplicationException{
  | AdministrationLocal local;
  | try {   
  | // create local reference
  | AdministrationLocalHome home = 
AdministrationUtil.getLocalHome();  

 
  | local = home.create();
  | 
  |   } catch (CreateException ce) {
  | logger.debug(ce +ce.getMessage());
  |   throw new ApplicationException(ce.getMessage());
  |   } catch (NamingException ex){
  | 

[JBoss-user] [EJB/JBoss] - Re: ClassCastException during ContextInitialization using St

2005-06-03 Thread wcydaip
There's additional information in the server log after startup about MBeans 
being the root cause:

=ERROR [main] (org.jboss.deployment.scanner.URLDeploymentScanner:527) - 
Incomplete Deployment listing:
  | 
  | --- Incompletely deployed packages ---
  | [EMAIL PROTECTED] { 
url=file:/C:/jboss-4.0.2/server/default/deploy/administration.ear }
  |   deployer: [EMAIL PROTECTED]
  |   status: Deployment FAILED reason: URL 
file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp56868administration.ear-contents/system_web-exp.war/
 deployment failed
  |   state: FAILED
  |   watch: file:/C:/jboss-4.0.2/server/default/deploy/administration.ear
  |   altDD: null
  |   lastDeployed: 1117826809387
  |   lastModified: 1117826796000
  |   mbeans:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.web.deployment:id=324750195,war=system_web.war
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL 
file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp56868administration.ear-contents/system_web-exp.war/
 deployment failed
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.web.deployment:id=324750195,war=system_web.war
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL 
file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp56868administration.ear-contents/system_web-exp.war/
 deployment failed
  | 
  | 
  | =DEBUG [main] 
(org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread:151) - 
Notified that enabled: true
  | =DEBUG [main] (org.jboss.deployment.scanner.URLDeploymentScanner:300) - 
Started jboss.deployment:flavor=URL,type=DeploymentScanner
  | =DEBUG [main] (org.jboss.system.ServiceController:433) - Starting dependent 
components for: jboss.deployment:flavor=URL,type=DeploymentScanner dependent 
components: []
  | =DEBUG [main] (org.jboss.deployment.MainDeployer:971) - End deployment 
start on package: jboss-service.xml
  | =DEBUG [main] (org.jboss.deployment.MainDeployer:776) - Deployed package: 
file:/C:/jboss-4.0.2/server/default/conf/jboss-service.xml
  | =DEBUG [main] (org.jboss.web.tomcat.tc5.Tomcat5:518) - Saw 
org.jboss.system.server.started notification, starting connectors
  | = INFO [main] (org.apache.coyote.http11.Http11Protocol:188) - Starting 
Coyote HTTP/1.1 on http-0.0.0.0-8080
  | = INFO [main] (org.apache.jk.common.ChannelSocket:366) - JK: ajp13 
listening on /0.0.0.0:8009
  | = INFO [main] (org.apache.jk.server.JkMain:342) - Jk running ID=0 
time=0/250  config=null
  | = INFO [main] (org.jboss.system.server.Server:456) - JBoss (MX MicroKernel) 
[4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 2m:1s:635ms

Also, I forgot to say, I'm using j2sdk1.4.2_06.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3880214


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Design Patterns] - Re: Remote Iterator Pattern

2005-06-03 Thread wcydaip
Hey there,

The pattern works great and with a little modification you can get it to handle 
your page display as well.

I started out using stateful session beans as well, but, found that they were 
creating some Connection errors.  I couldn't figure it out so I ended up 
changing it back to HttpSession objects.

Here's some things I found creating the Iterator:

i. You need a list of lists if you want one object to handle many results

That way you can switch back and forth between pages retaining your data.

i. A possible implementation for your stateful bean is to extend a 
predetermined ListHandler.  That way you can have multiple beans using the same 
code.  Each finder method could add an entry into the list object and a generic 
getCachedValues could retrieve your subsets.

I now have about 6 httpsession client models which extend my listhandler and 
couldn't be happier with the results.  The pattern pays off in the end.

Hope it works for you.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3880226


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ClassCastException during ContextInitialization using St

2005-06-03 Thread wcydaip
I hope this doesn't come back to haunt me later, but, this article explains how 
to get the classloading back to what it was doing in 4.0.1sp1:
http://jira.jboss.com/jira/browse/JBAS-1691

Could someone help me understand the difference between the two classloaders?  
Why would one be favored over the other?

Thanks,

Graham

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3880234


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Error reconnecting SessionBean

2004-12-28 Thread wcydaip
Hi all,

I get the same error trying to recreate a Stateful Session EJBObject from a 
cached handle.

To re-read the object I use the following:

  byte[] bytes = new String(id).getBytes();
  java.io.ByteArrayInputStream io = new java.io.ByteArrayInputStream(bytes);
  java.io.ObjectInputStream os = new java.io.ObjectInputStream(io);
  
  javax.ejb.Handle handle = (javax.ejb.Handle)os.readObject();
  return handle.getEJBObject();

Is there another way to retain the reference besides sticking the object itself 
into the httpSession?

TIA,

Graham

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860059


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user