[jbosstools-issues] [JBoss JIRA] (JBIDE-12160) Seam 2 component.properties is not generated correctly
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Tue Jun 12 13:08:04 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-12160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700843#comment-12700843 ]
Alexey Kazakov commented on JBIDE-12160:
----------------------------------------
This patch fixes jndipattern, doesn't it?
{code}
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.internal.core.project.facet.SeamProjectCreator#createComponentsProperties()
+ */
+ @Override
+ protected void createComponentsProperties() {
+ File seamGenResFolder = new File(ejbProjectFolder, "ejbModule");
+// jndiPattern=java:app/app1-ejb/\#{ejbName}
+ String jndiPattern = "java:app/" + ejbProjectName + "/#{ejbName}";
+ Properties components = new Properties();
+ components.put("jndiPattern", jndiPattern); //$NON-NLS-1$ //$NON-NLS-2$
+ components.put("embeddedEjb", "false"); //$NON-NLS-1$
+ File componentsProps = new File(seamGenResFolder, "components.properties"); //$NON-NLS-1$
+ try {
+ componentsProps.createNewFile();
+ components.store(new FileOutputStream(componentsProps), ""); //$NON-NLS-1$
+ } catch (IOException e) {
+ SeamCorePlugin.getPluginLog().logError(e);
+ }
+ }
}
{code}
> Seam 2 component.properties is not generated correctly
> -------------------------------------------------------
>
> Key: JBIDE-12160
> URL: https://issues.jboss.org/browse/JBIDE-12160
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Seam 2
> Affects Versions: 3.3.0.CR1
> Reporter: Marek Novotny
> Assignee: Alexey Kazakov
> Fix For: 3.3.0.Final
>
> Attachments: org.jboss.tools.seam.core.patch
>
>
> Seam 2 EAR application is generated with components.properties in app1-ejb/ejbModule/components.properties and wrong jndiPattern
> {noformat}
> jndiPattern=app1-ear/\#{ejbName}/local
> {noformat}
> there should be instead
> {noformat}
> jndiPattern=java:app/app1-ejb/\#{ejbName}
> {noformat}
> Seam-gen this does as replacing token @ejbJndiPattern@ in time of build with java:app/${project.name}-ejb/#{ejbName}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list