[EJB 3.0] - Re: Extensions to EJB3: Message Driven POJOs
by fredc888
"bill.burke(a)jboss.com" wrote : The whole idea is to remove all the lookups and bootstrap code you have to do to obtain and send a message and receive and dispatch a JMS message. With regular JMS you have to
|
| 1) Get a connectionfactory
| 2) Get a connection
| 3) Get the destination
| 4) ... and so on.
|
| The idea with MDP's are
|
| 1) Get a producer
| 2) Invoke on producer
|
| ...
|
|
I think MD-POJO's are an excellent idea. I have one feature request though.
Is it possible to enhance the ProducerManagerImpl's open and close operation such that they can be reused. Currently
If I do
pm.open()
//do some work
pm.close()
I can't reuse the pm at a later execution, because pm.close() closes the connection objection but does not remove PM's reference to the connection, while pm.open() does not try to create a new connection (or reopen an existing connection that is closed) if PM has a reference to a connection object (regardless of the connection object's state).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966149#3966149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966149
19 years, 8 months
[Datasource Configuration] - Re: Oracle Data Source ClassCastException when getting XA Co
by newbrough
For what its worth (your post is 2 years old now, but I found it on a search so maybe someone else will find it as well...)
I am having the same problem with jboss 4.0.3. My code is almost identical -- lookup, get datasource, then ClassCastException on ds.getConnection(). My exception says "ClassCastException: com.inet.tds.TdsDriver" (the name of my JDBC driver).
However, I have created two datasources that use the same driver, but one is an XA connection and the other is not. The non-XA connection was created by modifying the jboss-4.0.3/examples/jca/mssql-ds.xml and this one works fine. The XA connection was created by modifying examples/jca/mssql-xa-ds.xml and this one gives the problem.
So I think the problem has to do with the classloading context of the connection pools in JBoss. From the XML code above, looks like the original poster also was using an XA datasource and got the same error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966147#3966147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966147
19 years, 8 months
[JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM
by trouby
Hey,
really weird, I use Seam with GlassFish, and GF comes with JSF1.2RI,
It seems to be a native JSF error message..
Here's my JSF code:
|
| <h:selectManyListbox id="setnotes" size="10" value="#{issue.notes}" required="true">
| <f:selectItems value="#{noteListForSelectbox}"/>
| <selectitems:convertEntity entityClass="edentity.entity.Note"/>
| </h:selectManyListbox>
|
| <span class="errors"><h:message for="setnotes" showDetail="true"/></span>
|
|
One thing that i'm not sure about, In the html code, I see that the generated selectbox options look like this:
| <selectitems:convertEntity entityClass="edentity.entity.Note"></selectitems:convertEntity><select id="j_id37:setnotes" name="j_id37:setnotes" multiple="multiple" size="10"> <option value="edentity.entity.Note@17585e9">Note1</option>
|
Is this is how it should be? in none-multiple selectbox I see the ID as the value option.
thanks a lot.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966143#3966143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966143
19 years, 8 months
[JBoss Seam] - Re: Is there a workable version of JBossSEAM?
by VotTak
"chuckadams" wrote : All the lib/ subdirectory is is a copy of ../lib. The lack of a lib directory suggests that either scaffold-wtp-project didn't complete, the project name wasn't provided, or seamgen wasn't installed and run from a subdirectory of a complete seam installation.
|
| You should probably paste in the text of your whole session with seam-gen, from set-properties to scaffold-wtp-project. Try it with a new eclipse project, since this one doesn't seem to have been generated right. I recommend creating the server connection first (New->Other->Server. JBoss 4.0 will appear under two menus, it doesn't matter which you use). Then when you create your new enterprise archive project, pick the server you configured, and it should add the correct libs for you.
|
|
Well... You made me to try it again... I did... and seam-gen generated the code and I was able to get to the end of guide.
Still have some questions.
When I "publish"(using Eclipse 3.2) sample.ear is being moved to $JBOSS_HOME/jboss-4.0.4.GA/server/default,all,minimal/deploy ... And when I start JBoss from $JBOSS_HOME/bin than the example is working(looks like).
If I try to start JBoss from Eclipse than I got error in console "java.lang.NoClassDefFoundError: Files/jboss-4/0/4/GA/bin////lib/endorsed"
and error window (Java Virtual Machine Lancher) "Could not find the main class. Program will exit".
Looks like configuration of JBoss in Eclipse is a bit off, or I miss something.
Any idea?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966140#3966140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966140
19 years, 8 months