Bug 3297 - pragma prefix NotifyExt.idl
Summary: pragma prefix NotifyExt.idl
Status: NEW
Alias: None
Product: TAO
Classification: Unclassified
Component: Notification Service (show other bugs)
Version: 1.6.1
Hardware: All Linux
: P3 minor
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 2008-04-16 06:10 CDT by Bogdan Jeram
Modified: 2008-04-22 02:21 CDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Jeram 2008-04-16 06:10:12 CDT
Dear TAO developer,

The idl file:
$ACE_ROOT/TAO/orbsvcs/orbsvcs/NotifyExt.idl
has empty pragma prefix.

We want to generate from this IDL files also code for Java, so we woud like to have this prefix non empty.

So We are kindly ask if you can cahnge the pragma prefix of NotifyExt.idl from empty to something more meaningful. (com.oomworks ?)


Thank you
Bogdan
Comment 1 Johnny Willemsen 2008-04-16 06:14:15 CDT
what about just making it
#pragma prefix "tao"
Comment 2 Bogdan Jeram 2008-04-16 06:19:23 CDT
Fine for me just that we do not have flat packages in Java.

Here are some more suggestion:

- if the extension was made by some people a s NotifyMonitoringExt.idl and NotificationServiceMC.idl than "sandia.gov" can be used.
- "corba.tao".
Comment 3 Simon McQueen 2008-04-21 03:57:10 CDT
Are you sure you are asking for the right thing here ?

If I remember the Java mapping correctly, the pragma prefix value does not effect the package that generated code is to be placed in. It only effects the generated repository IDs.

If you want to control what package your code is generated in you can either put it in a particular nested module scope or, more usually, use an IDL compiler flag to tell the IDL compiler to generate into a particular package.
Comment 4 Bogdan Jeram 2008-04-22 02:21:40 CDT
You are right ther is nothing about pragma prefix and pacakgin in IDL2Java mapping. However, in out project we add functionality (an option) that idl2java compiler generates package according to value of pragma prefix.
So if you can change the pragma prefix from empty to something more meaningful like corba.tao ro similar would be good, otherwise we can use other options of the compiler to put generated code in right packages.