[J2EE Design Patterns] - any pointers on how to automate ear versioning?
by jsimone
We have an EAR that consists of 3 eclipse projects. I would like to know if anyone has tried to "derive" some sort of version number for every build that can be applied to the ear.
Eclipse versions their IDE in an interesting way ...
Version: 3.2.2
Build id: M20070212-1330
for the IDE proper, but each feature
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330
where a version number is concatenated with a date string and then some long random key string that LOOKS autogenerated.
We could just always use the date and bump a build-number but that would always produce a new version even if the code never changed (only a recompile).
I would think its possible to create a string that is based upon all the project files (.java, .xml, .properties etc.) that reflects the current level of code.
Any ideas?
Thanks in advance,
Joe
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033367#4033367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033367
17Â years, 9Â months
[JBoss Seam] - Re: EntityQuery - framework:entity-query not bound
by javalars
... thanking you so muche. That is work good now and my screen show this datas in droplist.
Next Q from here ...
We have class Atom and class Molecule. Molecule "has a" Atom (in our codes this in real mean Molecule has atomId property). Molecule has also the another property, atom_quantity.
We want builder 1 screen with just droplist for show all atoms like original "challenge" in the an other email (the descriptives name is in a property which ptSymbol) and this the screen have also the text input field of atom_quantity.
But we have teh an other problem wit to convert Atom from droplist user-selection to a atom_id which is need must be a '"java long' in the Exception I am see now because ofcourse, table need must just id *not* all object the Atom.
Do we need convertEntity somewere to make Atom of list to being a long "id" ? I think this must simple, or ...? Is it an example on web we cannot find it ? I hope you can know the answer because we take time for the small each step forward each day :-))
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033366#4033366
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033366
17Â years, 9Â months
[JBoss Seam] - Re: @DataModel problems
by fernando_jmt
This sample works. Maybe you can see (try) what is different with your code.
| @Stateful
|
| @Scope(SESSION)
|
| @Name("messageManager")
|
| public class MessageManagerBean implements Serializable, MessageManager
|
| {
|
|
|
| @DataModel
|
| private List<Message> messageList;
|
|
|
| @DataModelSelection
|
| @Out(required=false)
|
| private Message message;
|
|
|
| @PersistenceContext(type=EXTENDED)
|
| private EntityManager em;
|
|
|
| @Factory("messageList")
|
| public void findMessages()
|
| {
|
| messageList = em.createQuery("select msg from Message msg order by msg.datetime desc").getResultList();
|
| }
|
|
|
| public void select()
|
| {
|
| if (message!=null) message.setRead(true);
|
| }
|
|
|
| public void delete()
|
| {
|
| if (message!=null)
|
| {
|
| messageList.remove(message);
|
| em.remove(message);
|
| message=null;
|
| }
|
| }
|
|
|
| @Remove @Destroy
|
| public void destroy() {}
|
|
|
| }
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033363#4033363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033363
17Â years, 9Â months
[JBoss Portal] - LDAP authentication working, but
by nollie
Hello
I'm integrating LDAP into Portal 2.4.1 on AS 4.0.5GA. At the moment I have authentication working - I can login to the portal console as a user defined in LDAP and I can see my user information on the Test tab in the Test portlet. However, clicking "Edit your profile" in the User portlet leads to this error:
2007-03-30 15:33:03,965 ERROR [org.jboss.portal.core.command.ControllerCommand] Rendering portlet window default.News.UserPortletWindow triggered the following error :
| javax.portlet.PortletException: Not user object found
| at org.jboss.portal.core.portlet.user.UserPortlet.doView(UserPortlet.java:234)
| at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:242)
| at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:229)
| at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:366)
| ...
|
It would seem that I have authentication setup correctly, but that the portal isn't using that information elsewhere ... just a guess. Any ideas about what I have missed?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033362#4033362
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033362
17Â years, 9Â months