Bug 3297

Summary: pragma prefix NotifyExt.idl
Product: TAO Reporter: Bogdan Jeram <bjeram>
Component: Notification ServiceAssignee: DOC Center Support List (internal) <tao-support>
Status: NEW ---    
Severity: minor CC: sm
Priority: P3    
Version: 1.6.1   
Hardware: All   
OS: Linux   

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.